Commit graph

76 commits

Author SHA1 Message Date
adisbladis
2758358d60 Allow insecure packages in tests 2022-09-22 16:13:15 +12:00
adisbladis
02593b5345 Add test for package/env generated with Poetry 1.2.0 2022-09-22 16:13:15 +12:00
Phillip Cloud
030b9522dc
shapely: add test 2022-05-13 07:31:18 -04:00
adisbladis
2b56b8b77f overrides.pyqt5: Fix build with more recent QT versions 2022-05-13 20:18:18 +12:00
adisbladis
bcbeb8d0c4 tests.uwsgi: Comment out flaky test 2022-05-10 08:14:08 +12:00
adisbladis
c22f70a140 nixops_unstable: Skip test on darwin
It's broken in upstream nixpkgs, not our problem.
2022-05-05 07:52:28 +12:00
adisbladis
226ad319e6 tests: Set allowAliases = false
We don't want to accidentally end up with aliases in the code base
that then breaks nixpkgs when it's eventually incorporated.
2022-05-05 01:50:51 +12:00
Jairo Llopis
1baca43506
fix: support nullified editablePackageSources in mkPoetryEnv
See these docs: 99c7956835/README.md (L86)

They say that any dependency passed as `null` is forced to be non editable, even if it is marked as `develop = true` in `pyproject.toml`.

However, this was not being the case.

Added a test to prove the need for the fix.

@moduon MT-83
2022-04-14 09:29:55 +01:00
Sem Mulder
40e199d9d2 Disable PEP 600 test on MacOS
Because there is no open3d build for MacOS.
2022-03-29 09:59:19 +02:00
Sem Mulder
d687e93cb9 Add test for PEP 600 2022-03-28 23:49:29 +02:00
adisbladis
b6b02d7fc2 Add test for utf8 (emoji) in pyproject.toml 2022-02-05 18:38:57 +12:00
adisbladis
c667bfa529 Skip failing tests on darwin
And fix scikit-learn on darwin.
2022-01-22 20:01:07 +12:00
adisbladis
f4dcab7362 Add assorted-pkgs test
I intend to add smaller test cases here that are not big enough to warrant their own tests.
2022-01-20 10:04:25 +12:00
adisbladis
a032307edd Add extended cross test 2022-01-19 18:59:50 +12:00
adisbladis
9b5fba1b71 Fix cross compilation and add cross test 2022-01-19 04:35:12 +12:00
adisbladis
d214b36911 Inherit test cases from nixpkgs
These packages uses poetry2nix and we can use them for regression testing.
2022-01-18 22:18:00 +12:00
adisbladis
6e5bdfb5b1 tests: Add test for IFD projectDir 2022-01-11 10:16:02 +13:00
Phillip Cloud
2fde8725f6
test: add failing aiopath test 2021-12-29 12:34:32 -05:00
adisbladis
d5f756b8e5 Break out awscli to it's own separate test
Solving the test environment for common-pkgs-2 is taking forever, we
can make it a lot easier by splitting out awscli to it's own test.
2021-12-25 22:25:51 -08:00
adisbladis
2c63047ee1 Run nixpkgs-fmt after the nixpkgs bump 2021-12-25 21:55:18 -08:00
Phillip Cloud
3cbe79b23e
test: actually run the test 2021-12-22 14:03:59 -05:00
Phillip Cloud
2fed7bc910
pip: remove restriction 2021-11-08 08:07:04 -05:00
Alex Chalk
cf08f95e1e
test: Call tests 2021-10-04 16:22:11 -05:00
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
Niels Kristian Lyshøj Jensen
aa111b9ac2
Add tests for local file packages 2021-07-10 13:40:33 +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
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
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
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
360bfd0b80
Fix mkPoetryEnv with the new lock file structure 2020-10-01 20:52:44 +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
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
Silvan Mosberger
d550dd4d99
Add test for dependencyEnv passthru 2020-05-08 18:29:19 +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
29a3282aef
tests: Create callTest function 2020-02-28 14:01:51 +00:00