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
adisbladis
eb420068d2
semver: Fix wildcard match regex
2019-11-27 20:25:49 +00:00
adisbladis
0fa9f38f64
wheel: Add override breaking cycle
2019-11-27 20:25:35 +00:00
adisbladis
e194dd6590
Add empty license
...
poetry.lock does not contain licenses but it's sometimes expected by nixpkgs.
2019-11-27 20:25:05 +00:00
adisbladis
b20a61bed5
Make dependency attribute lookp case insensitive
...
And dependencies & dev-dependencies fields are both optional
2019-11-27 17:04:39 +00:00
adisbladis
097014c931
!fxuip
2019-11-27 17:04:32 +00:00
Tobias Pflug
6af7670bea
Add first test
2019-11-27 17:41:22 +01:00
adisbladis
d1866d8fe0
Merge pull request #8 from gilligan/fix-fetchPypi
...
Fixes pypi fetching
2019-11-27 16:34:24 +00:00
Tobias Pflug
67602e51e1
Fixes pypi fetching
...
- The first letter path segment in the url needs to be lowercased
https://files.pythonhosted.org/packages/source/S/sqlalchemy/SQLAlchemy-1.3.11.tar.gz
vs
https://files.pythonhosted.org/packages/source/s/sqlalchemy/SQLAlchemy-1.3.11.tar.gz
- Rename fetchPypi to fetchFromPypi just to make it clear that we are
not using fetchPypi from nixpkgs
2019-11-27 17:20:04 +01:00
adisbladis
3ffc6ecc6b
Merge pull request #4 from FRidh/fetchpypi
...
simplify fetchPypi, remove need for overrides
2019-11-27 15:56:39 +00:00
Frederik Rietdijk
cb67c624e5
simplify fetchPypi, remove need for overrides
...
We already have the name of the file that we need, so let's fetch it
directly instead of breaking it apart first, passing it to the Nixpkgs
fetchPypi, which would then put it together again.
2019-11-27 15:53:52 +00:00
adisbladis
3f576471a2
Add more setuptools overrides
2019-11-19 22:42:43 +00:00
adisbladis
82f108588e
Add informative readme
2019-11-19 22:09:02 +00:00
adisbladis
21cd90e820
Add nix flake
2019-11-19 20:00:38 +00:00
adisbladis
eb2255ebaf
Add overlay files
2019-11-19 16:34:50 +00:00
adisbladis
6a45f49aae
Remove outdated example project
2019-11-18 23:39:44 +00:00
adisbladis
95d3407bdb
Make build-system conditional
...
And other minor bug fixes
2019-11-18 23:39:20 +00:00
adisbladis
ac58f8b9aa
Update README
...
Pep508 markers are now supported
2019-11-16 19:31:06 +00:00
adisbladis
d5a2bce5ec
pep508: Fix incorrect evaluation of groups
2019-11-16 19:28:21 +00:00
adisbladis
17cfb71c37
pep508: Also return ungrouped expressions
2019-11-16 17:50:26 +00:00
adisbladis
ff8d58af7d
Add PEP508 marker support
...
This is still experimental and may contain bugs
2019-11-16 12:57:43 +00:00
adisbladis
be7dab861a
Update README
...
The lock file situation has been resolved.
2019-10-16 15:40:16 +01:00
adisbladis
4d56dcce71
Add support for the python-versions field from poetry.lock
2019-10-16 15:36:52 +01:00
adisbladis
49055769cf
poetry2nix can now build poetry itself
2019-10-16 11:04:24 +01:00
adisbladis
d485a1ab4a
Support new upstream lock format
2019-10-15 17:56:18 +01:00
adisbladis
f7f9c1fcc9
Add django capitalise override
2019-10-15 16:37:34 +01:00
adisbladis
6f40e8507e
Pass self to python override
...
Fixes passthru attribute
f1ff85e61d
2019-07-05 13:14:14 +01:00