Commit graph

146 commits

Author SHA1 Message Date
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
Niels Kristian Lyshøj Jensen
f5012a626e
Define setuptools-scm if it is not already defined 2021-06-03 18:43:02 +02:00
adisbladis
b471059b48
Bump version number to 1.17.0 2021-06-01 16:37:22 -05:00
adisbladis
e9c1b33aab
Merge pull request #270 from sireliah/mk-poetry-propagate-packages
Fix mkPoetryPackages: should return deps of deps
2021-03-17 18:23:00 +02:00
sireliah
d157bd2605
Extract the requiredPythonModules from current Python 2021-03-17 15:29:37 +01:00
adisbladis
48dab309bf
Bump version to 1.16.1 2021-03-16 17:08:23 +02:00
sireliah
74ab8c6274
Document dependency changes 2021-03-12 13:40:32 +01:00
sireliah
41de3f2afc
Make mkPoetryPackages return nested dependencies 2021-03-12 09:59:33 +01:00
adisbladis
2983bc401a
Add .0 suffix to version for consistency with previous releases 2021-03-04 14:32:41 +02:00
adisbladis
cf6e70cf28
Bump version to 1.16 2021-03-04 14:13:55 +02:00
adisbladis
3bacb20c61
Bump version to 1.15.5 2021-02-18 09:25:58 +01:00
adisbladis
66cb831032
Bump version to 1.15.4 2021-02-11 14:00:08 +01:00
adisbladis
acbde3ec15
Bump version to 1.15.3 2021-02-11 03:55:29 +01:00
adisbladis
597daf289a
Bump version to 1.15.2 2021-02-02 15:16:36 +01:00
adisbladis
11ad022705
Bump version to 1.15.1 2021-02-02 14:37:13 +01:00
adisbladis
20b8c9be0c
Bump version to 1.15.0 2021-02-02 14:15:46 +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
Joshua Skrzypek
a2bd638ff8 Expose functions for editable & scripts packages
The editablePackage and scriptsPackage elements of the mkPoetryEnv
function are wholly separable and really ought to be moved into the
functionality of the mkPoetryPackages function. By doing so both will
automatically be available in the mkPoetryApplication's dependencyEnv as
well.

I thought the functionality that encapsulates these might further see
potential use even outside the context of mkPoetryPackages, so I made
them top-level functions and documented them in the README.
2021-01-15 12:06:29 -05:00
adisbladis
fd0e5772e6
Bump version to 1.14.0 2020-11-30 19:54:06 +01:00
adisbladis
2acbe722a8
Bump version to 1.13.0 2020-10-01 22:51:23 +02:00
adisbladis
555c4846fe
Don't inclde build-system in mkPoetryEnv 2020-10-01 21:47:02 +02:00
adisbladis
360bfd0b80
Fix mkPoetryEnv with the new lock file structure 2020-10-01 20:52:44 +02:00
adisbladis
52a484be33
Reformat with nixpkgs-fmt 1.0.0 2020-10-01 19:08:57 +02:00
adisbladis
f218d27905
Filter packages based on python-versions 2020-10-01 19:08:04 +02:00
adisbladis
aed290dad2
Prefer the newest possible version of a package 2020-10-01 18:21:00 +02:00
adisbladis
234b0f3f4d
Fix build with separated poetry/poetry-core build systems 2020-10-01 18:21:00 +02:00
adisbladis
99cdaa7cca
mk-poetry-dep: Add pep508 evaluation to dependency selection
Poetry 1.1.0 changed the marker format in https://github.com/python-poetry/poetry/pull/2361
2020-10-01 18:20:59 +02:00
adisbladis
099b3040ec
Null out poetry in pythonPackages set when bootstrapping 2020-10-01 14:34:58 +02:00
adisbladis
230f08e403
Bump version to 1.12.0 2020-08-26 15:01:31 +02:00
adisbladis
23a969297d
mkPoetryEnv: Add scripts from pyproject.toml (if they exist) 2020-08-17 11:06:13 +02:00
adisbladis
b6f9670d56
overrides: Remove condition from wheel override 2020-08-17 05:02:19 +02:00
adisbladis
6e2a8ce9cc
Release 1.11.0 2020-07-22 16:55:35 +02:00
adisbladis
f4fbc592d7
Make overrideOverlay composable 2020-07-22 01:21:24 +02:00
adisbladis
2a907cd9a9
Make default overrides extensible in a way that's also composable 2020-07-22 01:21:24 +02:00
adisbladis
6abe06ed6c
Make default overrides reference scope
So that overrideScope' will propagate overrides properly
2020-07-22 01:10:42 +02:00
adisbladis
f9cb26ed41
Make poetry2nix entirely overridable 2020-07-21 19:54:25 +02:00