Commit graph

88 commits

Author SHA1 Message Date
Phillip Cloud
38c2f51e85
pytest-randomly: failing test 2021-09-16 11:41:38 -04:00
Victor Engmark
9cbcc4a0e1 tests: Add in test
Tests the change in commit 203fb43910.
2021-08-30 13:43:44 +12:00
adisbladis
0039be3910
tests.git-deps-pinned: Regenerate poetry2nix overlay 2021-08-11 18:10:29 -05:00
Utku Demir
69b4b56384
Add test-case for matplotlib 2021-07-20 21:19:30 +12:00
Niels Kristian Lyshøj Jensen
aa111b9ac2
Add tests for local file packages 2021-07-10 13:40:33 +02:00
Tom Sydney Kerckhove
2938150771 remove obsolete circleci config 2021-06-26 10:01:50 +02:00
Tom Sydney Kerckhove
b66fcd00c5 Regression test 2021-06-26 10:00:05 +02:00
Antoine Eiche
28fba9f743
Add support to the legacy Pypi API
Some private repositories (such as Devpi) expose the legacy Pypi
API (https://warehouse.pypa.io/api-reference/legacy.html).

This commit adds a dedicated fetcher which basically queries this API
to get the URL pointing to the actual file.

Since Pypi still exposes this API, it has been possible to write a
test that uses this legacy API.

Fixes https://github.com/nix-community/poetry2nix/issues/277.
2021-06-01 16:25:29 -05:00
adisbladis
4b651e043e
Merge pull request #304 from andir/fetch-api
Always fallback to querying the Pypi API when the predicted URL 404s
2021-06-01 16:14:37 -05:00
sireliah
90d4c8e8a6
Allow the package extras to contain dashes in name 2021-05-27 10:56:33 +02:00
Andreas Rammhold
7113a96c35
Add MarkupSafe2 test case
This test case is what initially motivated the move towards Pypi API
based fallback fetching.
2021-05-13 21:48:04 +02:00
sireliah
d157bd2605
Extract the requiredPythonModules from current Python 2021-03-17 15:29:37 +01:00
sireliah
74ab8c6274
Document dependency changes 2021-03-12 13:40:32 +01:00
sireliah
55ae3ee9c6
Bump Python version to 3.8 in the mk-poetry-packages test 2021-03-12 12:53:39 +01:00
sireliah
3c651c6455
Reformat mk-poetry-packages test 2021-03-12 11:32:35 +01:00
sireliah
41de3f2afc
Make mkPoetryPackages return nested dependencies 2021-03-12 09:59:33 +01:00
adisbladis
b63e5e22c8
re-enable pyqt test 2021-02-21 11:57:24 +01:00
adisbladis
3ffd5f7389
Pin nixpkgs in tests
I've had enough with nixpkgs breakage affecting our tests...
2021-02-21 11:54:33 +01:00
adisbladis
c3b6684ddc
Temporarily disable pyqt test
This was broken by external changes in nixpkgs, lets disable it
temporarily to get the CI green on pull requests and then fix it.
2021-02-21 11:43:28 +01:00
K900
324cc0cb2a Fix stdenv.platform accesses for latest nixpkgs
This fixes builds being completely broken after:
* https://github.com/NixOS/nixpkgs/pull/110726
* https://github.com/NixOS/nixpkgs/pull/110544

This also fixes poetry2nix on ARM and PowerPC platforms by introducing a
mapping from Nixpkgs targets to manylinux_* machine names and using it
when matching wheels for dependencies.
2021-01-30 20:17:54 +03:00
Phillip Cloud
9321f57657 tests: enable manylinux test 2021-01-14 12:52:57 -05:00
adisbladis
18a77a95cd
!! 2020-11-30 19:28:07 +01:00
adisbladis
c0c6038262
Fix tests
Something upstream broke a lot of python37 packages and I'm not
interested in debugging this.
2020-11-30 19:27:48 +01:00
adisbladis
ba41e216a6
Fix wheel builds 2020-11-26 14:46:51 +01:00
adisbladis
360bfd0b80
Fix mkPoetryEnv with the new lock file structure 2020-10-01 20:52:44 +02:00
Matthieu Coudron
f1eb32dd75 feat: test tag/rev/branch
rev / branch was not tested.
and rename git-deps to git-deps-pinned to prevent the confusion between
2 tests
2020-09-08 16:15:09 +02:00
jschaul
c849edee3e
failing test for ansible and molecule 2020-08-24 23:11:21 +02:00
adisbladis
f648dd5099
Add test to check if default can compose 2020-07-22 01:21:24 +02:00
adisbladis
ccc3ff8a54
Add composability test to overrideOverlay test 2020-07-22 01:21:24 +02:00
adisbladis
ac533e586a
tests: Pin prefer wheel tests to python 3.7
Some wheels are not available for python 3.8 which is the default on
unstable now.
2020-07-01 10:36:07 +02:00
Silvan Mosberger
e646d6e4f0
Add currently-failing example of editable shell 2020-05-23 23:48:34 +02:00
adisbladis
db06bdd6e7
Format with nixpkgs-fmt 0.9 2020-05-19 21:06:02 +01:00
Silvan Mosberger
eb940dc9a3
Add test case for editable mkPoetryEnv 2020-05-08 23:01:13 +01:00
adisbladis
bbd264076a
Add suport for overriding the app together with dependencyEnv
And extend with support for all buildEnv args
2020-05-08 18:51:25 +01:00
Silvan Mosberger
d550dd4d99
Add test for dependencyEnv passthru 2020-05-08 18:29:19 +01:00
Raito Bezarius
330b56105c
fetchwheel: initial version 2020-05-03 10:10:09 +01:00
adisbladis
4ebbfdacd1
nixpkgs-fmt broke it's format yet again 2020-04-29 14:12:59 +01:00
Raito Bezarius
54f4afca6d
Enable global preference for wheels for top-level functions 2020-04-29 14:08:21 +01:00
Utku Demir
3b7f255d37 Add failing test for wandb package 2020-04-16 04:59:26 +00:00
adisbladis
9dfb080d3f
Add canonicalisation of module names
This shouldn't be required and I think that these are actually
packaging bugs and not something that poetry2nix should really be
concerned with.

Closes #84
2020-04-15 10:24:46 +01:00
adisbladis
f7e435407e
nixpkgs-fmt all the things (again...) 2020-03-14 23:13:51 +00:00
adisbladis
2e55b2e95a
Remove the doc attribute
It was never really used by anything and it's output is not really
useful at this moment.
2020-02-29 14:07:28 +00:00
adisbladis
bb3c2d57d5
Add a default source filter when projectDir is used
Also use the same source filter for path deps.

The default source filter currently filters:
- Filters gitignore (if it exists, non-recursive)
- Filters pycache/pyc files
- Uses cleanSourceFilter to filter out .git/.hg, .o/.so, editor backup files & nix result symlinks
2020-02-29 12:05:23 +00:00
adisbladis
b85e2a6733
Set src to lib.cleanSource projectDir by default
Ideally we'd use `nix-gitignore` but that one fails when there is no
`.gitignore` file so it's not a sensible default.
2020-02-29 12:04:36 +00:00
adisbladis
29a3282aef
tests: Create callTest function 2020-02-28 14:01:51 +00:00
Tobias Pflug
b3870576f8 Provide withDefaults and withoutDefaults
This adds the convenience functions withDefaults and
withoutDefaults which simply wrap the provided argument in a list
either with or without the default poetry overrides.

Tests have also been adapted to make use of `withDefaults` where
appropriate.
2020-02-25 14:24:48 +01:00
adisbladis
dc88082f58
Add support for python version constraints from pyproject.toml
Pep508 markers alone are not always enough, see #50

This sadly introduces a minor breakage in `mkPoetryEnv`.
2020-02-24 12:25:51 +00:00
adisbladis
1c3ab5388a
Comment pypy tests
Pypy seems to have had some recent nixpkgs breakage unrelated to poetry2nix
2020-02-23 14:37:01 +00:00
Steve Purcell
b013b7a1c9 Add failing test for two-layer inclusion of "path" dependencies 2020-02-18 15:58:17 +13:00
adisbladis
1ffabaa066
Prevent infinite recursion for setuptools-scm extras 2020-01-28 19:42:35 +00:00