Commit graph

1135 commits

Author SHA1 Message Date
adisbladis
7b20b192a2
Use python.interpreter instead of reconstructing interpreter path 2019-12-31 22:49:39 +00:00
adisbladis
4f584835c9
Merge pull request #24 from nix-community/local-deps
Add support for local path dependencies
2019-12-29 16:58:20 +01:00
adisbladis
4acf604723
Add support for local path dependencies 2019-12-29 13:20:35 +00:00
zimbatm
53ce9bdf72
add path-deps test 2019-12-28 22:45:10 +00:00
adisbladis
b9d8584e6e
Merge pull request #23 from nix-community/cli
Add CLI to supplement git hashes
2019-12-28 23:34:44 +01:00
adisbladis
bf48f272c1
Add CLI to supplement git hashes
This is not required for private repos where builtins.fetchGit would
suffice but _is_ required for Hydra (nixpkgs) where builtins.fetchGit is not allowed.
2019-12-28 21:45:51 +00:00
adisbladis
8b06ba8c41
Merge pull request #21 from nix-community/git-deps
Git deps
2019-12-28 01:36:32 +01:00
adisbladis
235a9cec79
Run CI with git available 2019-12-28 00:32:07 +00:00
adisbladis
737ed5a372
Add Git support 2019-12-27 19:17:35 +00:00
zimbatm
46cc4c74fc
test: add git-deps 2019-12-27 19:17:35 +00:00
zimbatm
c70b658ac6
gitignore *.egg-info files 2019-12-27 19:17:35 +00:00
adisbladis
cc5ee6091b
Merge pull request #20 from nix-community/overrides-overlays
Restrucure overrides as composable overlays
2019-12-27 20:17:29 +01:00
adisbladis
908c9b8881
Restrucure overrides as composable overlays 2019-12-20 13:39:35 +00:00
adisbladis
90198afb0c
Merge pull request #18 from nix-community/manylinux-support
Add manylinux support
2019-12-18 10:30:03 +00:00
Tobias Pflug
54b43703f9 nixpkgs-fmt formatting 2019-12-17 21:16:28 +01:00
Tobias Pflug
c7ebae74a1 Update README
- Add info on mkPoetryApplication
- Add info on mkPoetryEnv
- Add info about manylinux
2019-12-17 21:16:28 +01:00
Tobias Pflug
3a1eb66fbc Improve PEP425 support
Make sure that whl files using notation such as "py2|py3|py2.py3"
and/or files using "any" in the `abi` tag are accepted as well.
2019-12-17 18:13:11 +01:00
Tobias Pflug
813175bc19 Fix override test 2019-12-17 15:06:09 +01:00
Andreas Rammhold
903b4fcd2b fix mkPoetryPython 2019-12-17 14:50:58 +01:00
Andreas Rammhold
5c76155666 add mkPoetryEnv to create poetry python environments 2019-12-17 14:19:32 +01:00
Tobias Pflug
edf06fcf6d Update lockfile for top-packages-1 test 2019-12-17 12:41:36 +01:00
Tobias Pflug
08eb9637aa Remove default values and drop src from mkPoetryPyhon
Drp `poetrylock` and `pyproject` mandatory arguments
without default values and drops `src` from `mkPoetryPyhon`.

Fix test invocations with invalid arguments.
2019-12-17 12:38:34 +01:00
Tobias Pflug
e529d26109 Disable manylinux test
The manylinux support works but needs to remain disabled until the
necessary nixpkgs changes have been merged and propagated.
2019-12-16 19:01:16 +01:00
Tobias Pflug
7a73ffdb36 Remove NIX_PYTHON_MANYLINUX
As per https://github.com/NixOS/nixpkgs/pull/75763 this environment
variable is not needed anymore. Instead python interpreters are now
assuming compatibility by default.
2019-12-16 16:47:51 +01:00
Andreas Rammhold
5741d9e59e
nixpkgs-fmt all the things 2019-12-16 15:03:49 +01:00
Andreas Rammhold
d8fde74219
split mkPoetryPackage into mkPoetryPython and mkPoetryApplication 2019-12-16 15:03:49 +01:00
Tobias Pflug
84f27ee31d
Refactoring
- Extract utility functions to ./lib.nix
- Extract buildPythonPackage to ./mk-poetry-dep.nix
- Replace some functions with existing builtin functions
- Use lib.partition for python package splitting
- Drop package filtering on the top-level and leave it to pep425.nix
2019-12-16 15:03:49 +01:00
Tobias Pflug
29c93b1dc2
Add wheel file selection according to pep425
Provides a `select` function that picks the most appropriate `.whl` file
based on platform, arch, python version and manylinux/OSX - version.

- Adds unit tests for pep425
- Adds test for manylinux support
- Fixes overrides: `passhtru` must be extended, not overwritten
- Don't strip python packages: this screws up manylinux binaries
2019-12-16 15:02:41 +01:00
zimbatm
7e35cf30d5
Merge pull request #17 from nix-community/ci-checks
CI checks
2019-12-16 10:53:54 +00:00
zimbatm
7c2f93a690
ci: test on 19.09 and unstable
Only test the trivial test on 19.09 for now to make sure that the basis
is working. Some other test is failing and needs to be debugged.
2019-12-13 18:35:18 +01:00
zimbatm
2d916a5255
ci: add nix code formatting check 2019-12-13 18:35:18 +01:00
zimbatm
3f1af1a94f
tests: enable trivial test
Fixes a bug logic that was aliasing the trivial name to the override
test
2019-12-13 18:35:18 +01:00
zimbatm
4dcee62396
tests: unique names for each
This makes it easier to see which test has failed
2019-12-13 18:35:18 +01:00
adisbladis
fd4a1c7df9
poetry: 1.0.0b9 -> 1.0.0 2019-12-13 12:53:27 +00:00
adisbladis
b2d6900e9e
Merge pull request #15 from nix-community/nixpkgs-fmt
nixpkgs-fmt: format all the nix code
2019-12-11 18:02:31 +00:00
zimbatm
13b54b8636
poetry: 1.0b8 -> 1.0b9 2019-12-11 14:13:39 +01:00
zimbatm
1528d54851
handle intreehooks buildsystem
This is necessary for the next version of poetry
2019-12-11 14:13:39 +01:00
zimbatm
310282154c
nixpkgs-fmt: format all the nix code 2019-12-11 13:31:22 +01:00
adisbladis
4c024740b2
Merge pull request #14 from zimbatm/nix-shell
add shell.nix
2019-12-11 12:26:21 +00:00
zimbatm
a051e38eef
add shell.nix
I wanted to have the latest poetry to work on the tests
2019-12-11 13:19:30 +01:00
adisbladis
df82c7d72c
Update README pipeline url 2019-11-30 11:47:18 +00:00
Tobias Pflug
2ac0a48c00
Merge pull request #12 from nix-community/gitlab-ci
Add gitlab ci config
2019-11-29 12:36:11 +01:00
adisbladis
7fa845f230
Add gitlab ci config 2019-11-29 10:54:08 +00:00
adisbladis
59119f0f66
Merge pull request #11 from gilligan/sort-overrides
Sort overrides by python package
2019-11-29 10:27:12 +00:00
Tobias Pflug
9ac2dd41c5 Sort overrides by python package 2019-11-29 11:24:53 +01:00
Tobias Pflug
1bfd3d192b
Add more tests
This adds the following new tests:

- trivial:           minimaltest case
- override-support:  verify overriding
- common-pkgs-1/2:   verify commonly downloaded pypi pkgs can be built

Also adds some overrides as needed by some of the
tested packages.
2019-11-29 10:07:06 +00:00
adisbladis
22d70435f9
poetry: 1.0.0b5 -> 1.0.0b8 2019-11-28 10:59:01 +00:00
adisbladis
86ee5ec79f
Add more overrides 2019-11-28 10:32:24 +00:00
adisbladis
d93dcd803c
Add empty dummy test package 2019-11-28 10:25:55 +00:00
adisbladis
c0d10a691e
Add more overrides 2019-11-28 02:24:33 +00:00