-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to poetry and update some versions.
This switches completely to poetry even in the travis testing. It integrates more easily with Nix and even has a built in package definition.
- Loading branch information
Showing
45 changed files
with
839 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
layout_python3 | ||
use nix | ||
watch_file nix/shell.nix | ||
watch_file nix/default.nix | ||
watch_file pyproject.toml | ||
watch_file poetry.lock | ||
|
||
pip install -r requirements.txt | ||
|
||
watch_file requirements.txt | ||
# Used by pre-commit | ||
layout python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[flake8] | ||
max-line-length = 120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
let | ||
pkgs = import <nixpkgs> {}; | ||
in | ||
pkgs.poetry2nix.mkPoetryApplication { | ||
projectDir = ../.; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
let | ||
pkgs = import <nixpkgs> {}; | ||
cron-install = import ./default.nix; | ||
in | ||
pkgs.mkShell { | ||
buildInputs = [ | ||
cron-install | ||
pkgs.poetry | ||
pkgs.python3 | ||
pkgs.python37Packages.virtualenv | ||
]; | ||
} |
Oops, something went wrong.