Commit graph

181 commits

Author SHA1 Message Date
adisbladis
289efb1871 Bump version to 1.36.0 2022-10-28 13:58:39 +13:00
K900
2c5c418746 fix: pull in hooks directly instead of sneaking them in through pythonPackages
This does technically break people that override hooks, but they deserve it.
2022-10-28 00:40:18 +03:00
Federico Ravasio
0bc09f58e7 fix: eval error on poetry 1.2 when a dev dependency is from git 2022-10-20 08:55:38 +00:00
adisbladis
d62ba59f1e bump version to 1.35.0 2022-10-11 15:28:30 +13:00
adisbladis
d29aad97ee Add forwards compatibility with Poetry lock version 2.0
Most notably this version moves files from metadata.files to being per
package entry in the lock.
2022-10-11 11:59:13 +13:00
adisbladis
98a03a25fb Bump version to 1.34.1 2022-10-10 18:29:24 +13:00
adisbladis
5821dfe589 Bump version to 1.34.0 2022-10-10 16:40:28 +13:00
Phillip Cloud
e59e1b7c6a
add support for specifying dependency groups that are checkPhase only 2022-10-09 07:34:47 -04:00
K900
673ba1f7cc treewide: another pile of assorted changes
- update pinned nixpkgs used for tests
- fix the rest of the setuptools fallout
- add and test some scientific packages
2022-10-09 11:33:01 +13:00
adisbladis
583b4ddef7 bump version to 1.33.0 2022-10-08 11:22:13 +13:00
adisbladis
e285ac8ece bump version to 1.32.1 2022-10-07 18:10:02 +13:00
adisbladis
617d7a421c take non-existing dependency groups into account
closes #741
2022-10-07 18:01:12 +13:00
adisbladis
ac02aa0eca bump version to 1.32.0 2022-10-07 17:52:10 +13:00
K900
33db1f30d0 feat: big messy refactoring
- normalize package names to match PEP-503
- don't assume build dependencies on setuptools{,-scm}
- automatically generate overrides for setuptools{,-scm}
- pull known build systems directly from nixpkgs
- fix a bunch of mostly unrelated warnings

Co-authored-by: Phillip Cloud <417981+cpcloud@users.noreply.github.com>
2022-10-06 19:54:08 +03:00
adisbladis
2081943793 Add support for Poetry >=1.2.0 dependency groups 2022-09-22 16:23:08 +12:00
adisbladis
865bdda37a Implement support for dev dependencies on Poetry 1.2.0+
This still doesn't implement the full dependency group feature, but
it's a step towards making Poetry2nix fully compatible with 1.2.0+.
2022-09-22 16:13:13 +12:00
Samuel Cormier-Iijima
5ae5d85e56 Fix determining sourceSpec for git dependencies in pyproject.toml
Fixes #702
2022-09-08 16:02:32 -04:00
64d8615983 fix poetry replacing underscores with hyphens 2022-08-30 10:59:05 +02:00
adisbladis
9deeedd086 Bump version to 1.31.0 2022-07-09 18:25:23 +08:00
adisbladis
73fc21abbe Bump version to 1.30.0 2022-06-05 07:27:10 +08:00
adisbladis
88ffae91c6 Bump version to 1.29.1 2022-05-14 17:44:35 +12:00
adisbladis
c28987aa1e Bump version to 1.29.0 2022-05-13 21:43:36 +12:00
adisbladis
b00b6b6ef8 Bump version to 1.28.0 2022-05-05 09:34:55 +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
adisbladis
405b05a0ab Bump version to 1.27.1 2022-04-01 22:16:28 +12:00
adisbladis
e0d2c505e7 Bump version to 1.27.0 2022-04-01 21:03:37 +12:00
adisbladis
e6433fee56 overrides.nix: Move into overrides/default.nix
I will implement some automation around creating these which will have supplementary files that shouldn't pollute the project root.
2022-01-21 10:19:04 +12:00
adisbladis
9b5fba1b71 Fix cross compilation and add cross test 2022-01-19 04:35:12 +12:00
adisbladis
230e4fbb48 Remove __isBootstrap hack
Since #466 was merged we don't need it anymore.
2022-01-19 02:20:37 +12:00
adisbladis
504dc068bb Add overlay that disables checks for packages inherited from nixpkgs
This is a more principled fix to #510 that will hopefully prevent this entire class of errors.
2022-01-17 22:24:06 +12:00
adisbladis
f07f509004 Bump version to 1.26.0
I think revived Python2 compat warrants a release!
2022-01-12 20:16:23 +13:00
adisbladis
dc8b983f3f Bump version to 1.25.0 2022-01-12 17:51:53 +13:00
adisbladis
97acfb6aa0 Allow unsetting editable package sources by explicitly setting them to null
With the recent addition of develop=true being installed as editable by default we need a way to opt out of installing sources as editable.
This is done by explicitly passing an attrset with null as the path value.
2022-01-06 05:47:50 +13:00
adisbladis
e74bb4c3f5 Add path dependencies where develop=true as editable packages by default
Closes #265
Closes #284
2022-01-06 05:47:50 +13:00
adisbladis
3a9ac250e2 Prevent editable package from being built when in nix-shell environment
They are not useful and will will fail to build in some cases, like the case where they depend on another package also being added as an editable source.
2022-01-05 08:12:44 +00:00
adisbladis
85bb626d83 Create a dummy null package for the current project in case any dependencies depend on the root project
Closes #307
2022-01-05 07:43:59 +00:00
adisbladis
f3f70444b7 Don't filter sources where the projectDir is the output of a derivation
This allows for IFD style projectDir.

Closes #435
2022-01-01 22:38:02 -08:00
adisbladis
4a13d29ad2 Bump version to 1.24.1 2021-12-27 20:26:26 -08:00
adisbladis
8f07b30add Bump version to 1.24.0 2021-12-27 20:23:32 -08:00
adisbladis
0985711b0b mkPoetryEnv: Add an extraPackages argument
This is a function taking a Python package set and returning a list of extra packages to include in the environment. This is intended for packages deliberately not added to `pyproject.toml` that you still want to include. An example of such a package may be `pip`.
2021-12-27 16:49:26 -08:00
adisbladis
25066da911 Bump version to 1.23.0 2021-12-26 02:48:52 -08:00
adisbladis
2c63047ee1 Run nixpkgs-fmt after the nixpkgs bump 2021-12-25 21:55:18 -08:00
adisbladis
f84d464f41
Bump version to 1.22.0 2021-11-16 12:49:11 -06:00
Phillip Cloud
2fed7bc910
pip: remove restriction 2021-11-08 08:07:04 -05:00
adisbladis
aee8f04296
Bump version to 1.21.0 2021-09-29 21:31:49 -05:00
adisbladis
8cba73cb68
Explicitly pass pos to stdenv.mkDerivation
So `meta.position` will resolve to where the package is defined
instead of pointing to Poetry2nix internals.
2021-09-29 21:21:37 -05:00
adisbladis
44fb8d2a22
Bump version to 1.20.0 2021-09-23 02:59:36 -05:00
adisbladis
89b2ae420e
Bump version to 1.19.0 2021-08-19 17:01:37 -05:00
Antoine Eiche
e2a00b1e09 Bump version to 1.18.0 2021-08-11 23:52:40 +02:00
adisbladis
92350882ed
Bump version to 1.17.1 2021-06-08 08:47:31 -05:00