Commit graph

202 commits

Author SHA1 Message Date
adisbladis
52850e7d53 Auto-release using a date-based tag on master push 2023-07-07 23:49:48 +12:00
adisbladis
4157878ffe Bump version to 1.42.1 2023-06-30 12:16:31 +12:00
adisbladis
76393d0888 Bump version to 1.42.0 2023-06-29 11:51:23 +12:00
Bob van der Linden
960d99b6ee
mkPoetryEnv: add checkGroups
Currently it is not possible to remove the "dev" group when using mkPoetryEnv: the "dev" group is still built because it is part of the `checkGroups`. To be able to avoid this, I opted to add `checkGroups` to `mkPoetryEnv`, just like what you would be able to in `mkPoetryApplication` and `mkPoetryPackages`.
2023-04-26 11:40:03 +02:00
adisbladis
585f19cce3 Bump version to 1.41.0 2023-04-06 12:30:11 +12:00
K900
47e42a4cf1 fix: always build poetry with current poetry2nix
So nothing leaks through from nixpkgs
2023-04-05 10:47:20 +03:00
K900
e60afe781c overrides: remove more dead code 2023-04-05 10:47:17 +03:00
K900
fb135081ec fix(flake): build poetry with correct poetry2nix 2023-04-05 10:06:33 +03:00
adisbladis
3313ab3740 Bump version to 1.40.1 2023-03-24 14:33:23 +13:00
adisbladis
bf63fce1f7 Bump version to 1.40.0 2023-03-24 13:57:41 +13:00
Ryan Swart
a1b220f20a fix: trio fix 2023-03-24 13:30:56 +13:00
Robert Schütz
0150dd59f2
don't use poetry from nixpkgs
This was applied in nixpkgs in 17c15cc3ff
2023-02-27 12:02:21 -08:00
Phillip Cloud
f36ad45f17 fix: reorder overlays 2023-02-27 14:44:10 +13:00
Phillip Cloud
d6687ddbe7
fix: add nativeCheckInputs for new nixpkgs 2023-01-25 14:53:32 -05:00
Robert Hensing
31e6d68d59 feat: Show lock location in package errors
Tested by temporarily setting `meta.broken = true;` in
`mk-poetry-dep.nix`, and then

    $ nix-build tools -A env
    error: Package ‘python3.9-click-8.1.3’ in /home/user/h/poetry2nix/tools/poetry.lock:0 is marked as broken, refusing to evaluate.

       a) To temporarily allo[...]

As you can see, the location of the lock file is reported, which
is especially useful in Nixpkgs, which contains multiple lockfiles.

This used to be just the location of a generic python builder, which
is generally not what the user wants.

I've exposed the `poetrylockPos` variable as a parameter that callers
may set. This is intended as a contingency more so than a feature that
is useful to users. That's why I've decided not to document it,
because it would just add noise.
2023-01-03 16:38:09 +01:00
Phillip Cloud
6ecbca98ad
feat: add ability to specify optional dependencies 2022-12-20 10:20:40 -05:00
adisbladis
bb7f4e1d04 Bump version to 1.39.1 2022-12-11 03:16:55 +13:00
adisbladis
f27dae13de Bump version to 1.39.0 2022-12-10 22:07:53 +13:00
adisbladis
dbbf4c83e0 Bump version to 1.38.0 2022-12-07 18:29:51 +13:00
Sem Mulder
9dc514d294 Fix infinite recursion for aliases in pkgs/top-level/python-aliases.nix
This fixes #750.
2022-12-05 10:37:33 +01:00
adisbladis
3a965c8dd6 Bump version to 1.37.0 2022-12-01 22:06:20 +13:00
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