Commit graph

191 commits

Author SHA1 Message Date
Tobias Pflug
e80f0acd83
Merge pull request #63 from nix-community/flamegraphs
Add development tool to generate flame graphs for nix-instantiate
2020-02-27 10:21:25 +01:00
adisbladis
e50b9c96db
Add flamegraph artifacts to CI 2020-02-27 08:58:12 +00:00
adisbladis
ccf5654e3c
Add .envrc for direnv 2020-02-27 08:44:43 +00:00
adisbladis
8336c5f8c6
Add development tools to generate flame graphs for nix-instantiate 2020-02-27 08:44:42 +00:00
adisbladis
6fc16e0dee
Use overlay in shell.nix 2020-02-27 08:44:38 +00:00
adisbladis
8d8d2cf050
Merge pull request #62 from Infinisil/more-overrides
Add overrides for fancycompleter and pylint
2020-02-26 18:33:26 +00:00
Silvan Mosberger
bcd9af9cfe
Add overrides for fancycompleter and pylint 2020-02-26 18:55:41 +01:00
Tobias Pflug
618fca619b
Merge pull request #58 from nix-community/add-overrides
Add more overrides
2020-02-26 15:43:08 +01:00
Tobias Pflug
df5744ebf0 Add more overrides
This adds overrides for the following python packages
- astroid
- h5py
- jupyter
- openexr
- rockset
- tensorpack
2020-02-26 15:25:07 +01:00
adisbladis
ca2c6fffc4
Merge pull request #56 from nix-community/readme-updates
Provide API documentation in README
2020-02-26 09:32:13 +00:00
Tobias Pflug
47d9dfa46a Provide API documentation in README
This provides a more complete API documetnation covering the public
interface of poetry2nix
2020-02-26 10:15:49 +01:00
Tobias Pflug
e731e88a74
Merge pull request #57 from nix-community/drop-meta
Drop `meta` attribute for mkPoetryPackages/mkPoetryEnv
2020-02-26 09:31:57 +01:00
Tobias Pflug
e1e3b90be2 Drop meta attribute for mkPoetryPackages/mkPoetryEnv
The `meta` attribute is only relevant for `mkPoetryApplication`
and can safely be dropped elsewhere.
2020-02-26 09:24:23 +01:00
adisbladis
9dae5620ea
Add projectDir parameter
Turns
```
poetry2nix.mkPoetryEnv {
    pyproject = ./pyproject.toml;
    poetrylock = ./poetry.lock;
    pwd = ./.;
    python = python3;
}
```

into
```
poetry2nix.mkPoetryEnv {
    projectDir = ./.;
    python = python3;
}
```
2020-02-25 14:40:36 +00:00
adisbladis
e416555959
Merge pull request #55 from nix-community/poetry2nix-overrides
Provide withDefaults and withoutDefaults
2020-02-25 13:43:14 +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
c2b85f104a
Remove rec keyword from override 2020-02-25 10:05:51 +00:00
adisbladis
f4110f181a
Remove poetryPkg argument from public APIs 2020-02-25 10:01:42 +00:00
adisbladis
007b726331
Add pyzmq override 2020-02-25 10:01:38 +00:00
adisbladis
cb214f8327
fix overrides formatting 2020-02-24 18:49:12 +00:00
adisbladis
2848db5993
overrides: Add pandas cython override 2020-02-24 17:34:57 +00:00
adisbladis
5691ea49bd
Bump poetry2nix version number to 1.5.0 2020-02-24 12:42:20 +00:00
adisbladis
5d902c8bab
Slightly improve evaluation performance 2020-02-24 12:41:42 +00:00
adisbladis
35d38a1b11
Merge pull request #53 from utdemir/expose-mkPoetryPython
Expose mkPoetryPackages
2020-02-24 12:39:53 +00:00
Utku Demir
f4b70664c2
Expose mkPoetryPackages 2020-02-24 12:38:15 +00:00
adisbladis
c88211d081
Merge pull request #52 from nix-community/pyproject-python-version
Add support for python version constraints from pyproject.toml
2020-02-24 12:35:33 +00:00
adisbladis
4d9bee6f81
Refactor mkPoetryPython (mkPoetryPackages)
- Renamed mkPoetryPython to mkPoetryPackages as it's more descriptive
We intend to expose this function soon so a better name is in order.

- Put TOML parsing inside mkPoetryPackages to unify parsing and avoid double parsing.
2020-02-24 12:25:55 +00: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
64f7a11c03
Merge pull request #51 from nix-community/toml-path-deps-hook
Convert TOML path dependency filtering to a setup hook
2020-02-23 15:56:27 +01: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
adisbladis
0367b93492
Turn pyproject.toml patching into a hook
We should not be setting pre/post phases as it's counter intuitive
when working with overrides.
2020-02-23 14:37:01 +00:00
adisbladis
fc6c640a12
Merge pull request #49 from purcell/two-level-path-deps
Handle two-layer inclusion of "path" dependencies
2020-02-23 15:36:50 +01:00
Steve Purcell
71cdd20018 Remove "path" dependencies in indirectly referenced packages 2020-02-18 15:58:31 +13:00
Steve Purcell
b013b7a1c9 Add failing test for two-layer inclusion of "path" dependencies 2020-02-18 15:58:17 +13:00
adisbladis
cdb1bd83a3
poetry: 1.0.2 -> 1.0.3 2020-02-01 21:56:43 +00:00
adisbladis
8504e52c27
fmt fixup 2020-01-28 20:04:44 +00:00
adisbladis
1ffabaa066
Prevent infinite recursion for setuptools-scm extras 2020-01-28 19:42:35 +00:00
max-arrival
3ca47a1220
Add uvloop overrides for MacOS builds 2020-01-23 23:24:07 +00:00
adisbladis
82166c8a49
Fix platform_python_implementation field 2020-01-22 18:33:24 +00:00
adisbladis
145fc6ce83
overrides: Dont add pytestrunner to faker
We can patch away the requirement instead, it's not _really_ required.
2020-01-22 17:40:06 +00:00
adisbladis
c8a486b894
nixpkgs-fmt fixup
A git pre-commit hook would be useful...
2020-01-22 17:21:03 +00:00
adisbladis
419304ee18
cli: Skip black build step
Black recently changed some rules and we're failing on older nixpkgs.
2020-01-22 16:25:38 +00:00
adisbladis
6d8ba34f4f
overrides: Add override to build faker 2020-01-22 16:18:58 +00:00
adisbladis
f1af96e2c5
pep508: Fix platform_python_implementation for pypy 2020-01-21 14:56:37 +00:00
adisbladis
3ade93a0e1
Assert URL actually wheel url in preferWheel test 2020-01-21 12:31:00 +00:00
adisbladis
2caffda3ef
Use the canonical name setuptools-scm
Nixpkgs calls this setuptools_scm which is a mismatch for pypi.

Create an alias so any setuptools-scm installed by a user impacts all packages.
2020-01-21 12:12:36 +00:00
adisbladis
0ec54e142b
Add peewee override 2020-01-21 12:08:21 +00:00
adisbladis
78ee08bec7
overrides: Make matplotlib override configurable 2020-01-21 11:56:14 +00:00
adisbladis
2bbc96dd6d
overrides: Make numpy BLAS implementation pluggable 2020-01-21 11:44:03 +00:00
adisbladis
59a83bbc93
overrides: Make pyqt5 override configurable 2020-01-21 11:43:44 +00:00