Commit Graph

300 Commits

Author SHA1 Message Date
dusk
98c1c2e934
fix(rust-cargo-vendor): patch manifest attributes that use workspace.package aswell (#1082) 2024-12-20 21:13:37 +00:00
dusk
bf02c10f6d
fix(rust-cargo-lock): remove leading period prefix from any workspace member relative paths (#1081) 2024-12-20 20:21:55 +00:00
phaer
c554f54834 pdm: sort extras before making the key
...otherwise we seem to get them in the order they are
declared in in pyproject.toml, which seemingly might not
be the same as in the lock file where they are sorted
2024-11-21 19:41:49 +01:00
dusk
91bec8a085
feat(rust-crane): expose the crane lib that is created from craneSource as a read-only option (#1074) 2024-11-20 14:31:51 +00:00
dusk
607c99076d
feat(rust-crane): add options for changing build, check and test cargo subcommands (#1072) 2024-11-17 21:08:10 +00:00
dusk
44d4141168
refactor(rust): deduplicate vendor and utils code (#1054)
* refactor(rust): consolidate the separated vendoring code into rust-cargo-vendor

* refactor(rust): move the utility code in utils.nix to rust-cargo-lock and rust-cargo-vendor

* fix(rust-crane): add the necessary dependencies to config.deps for devshell

* refactor(rust-cargo-vendor): remove unnecessary mkMerge

* fix(rust-crane): override cargo in config.deps with our toolchain so that rust-cargo-vendor uses it too
2024-11-12 18:09:27 +03:00
dusk
432bdc6f94
fix(rust-crane): add mkRustToolchain to interface options, define a proper default, pass toolchain to vendor and devshell (#1070) 2024-11-12 00:28:26 +00:00
dusk
51943fca6b
refactor(rust-crane): don't overlay the pkgs for crane, use the overrideToolchain api instead (#1069) 2024-11-04 15:33:07 +03:00
purepani
993ca8de94 Adds uv resolver for pdm 2024-10-25 22:14:10 -05:00
DavHau
94db134353 add module arg pkgs
This change adds a `pkgs` arguments to the module args.

Accessing packages from nixpkgs becomes easier as the user is not forced to go through `config.deps` anymore.

`config.deps` can still be used to override packages from `pkgs`.
2024-10-07 15:05:20 +07:00
DavHau
c7cb1c48c3 add module buildPythonPackage-mixin
Like buildPythonPackage, but has all options at the toplevel for improved usability.
2024-10-07 14:54:26 +07:00
DavHau
daf1d40952 add new module mkDerivation-mixin:
Like mkDerivation, but has all options at the toplevel for improved usability.
2024-10-07 14:54:26 +07:00
dusk
3f10812e1e
feat(rust-crane): update crane version to 0.19.0 (#1053)
fix(rust-crane): override cranePkgs cargo with dream2nix supplied cargo

style(rust-crane): format
2024-10-04 05:06:14 +03:00
phaer
19b6a4a4a2 drop vendored mkdocs-awesome-pages-plugin
...as we have meanwhile upstreamed it and the vendored version
doesn't work with the latest mkdocs while the one in nixpkgs
has been fixed.
2024-08-22 12:12:42 +02:00
phaer
601b7dfd2b editables: fix path ordering, remove relics...
...of the former feature which linked sources in .dream2nix/editables.
This was sadly uncleanly removed before
2024-07-29 18:26:02 +02:00
DavHau
8eee49cb1f reference-docs: fix option rendering issue
remove tree-style preprocessing since it is not needed anymore
2024-07-29 13:22:22 +02:00
phaer
3c78e8aca3 docs: add description to editables(ShellHook) 2024-07-29 13:22:22 +02:00
phaer
74da0c5158 pip: update flattenDependencies description 2024-07-29 13:22:22 +02:00
phaer
ae6386794f docs: fix devshell 2024-07-29 13:22:22 +02:00
DavHau
101123ba55 website: ensure CNAME file doesn't get removed 2024-07-29 10:37:19 +00:00
phaer
e24cee1b7e update outdated x86_64-linux lock files 2024-07-26 18:26:46 +02:00
phaer
78abc70f53 fixup: pip default version in pip module 2024-07-26 16:52:00 +02:00
phaer
1fbbe9efcb buildPythonPackage: support pythonRelaxDeps 2024-07-25 17:05:21 +02:00
phaer
2aec0c89fd lock: expose lock.isValid...
this is useful to figure out which lock scripts to run
in package collections.
2024-07-23 13:57:51 +02:00
DavHau
4e9fd61a12 reference-docs: fix option rendering issue
remove tree-style preprocessing since it is not needed anymore
2024-07-18 15:30:23 +00:00
phaer
80cfb95ffc eval examples on x86_64-linux & aarch64-darwin
quick & easy way to reduce ci run-time and overhead from
platform-specific lock files in the repo while letting
us catch errors on two OSes as well as architectures.
2024-07-13 16:40:01 +02:00
phaer
65bf5d43b1 adapt lock file path in pip tests 2024-07-13 16:40:01 +02:00
phaer
49a1961faa pip: set sys-specific default for paths.lockFile 2024-07-13 15:47:28 +02:00
DavHau
a3751775d9 docs: fix broken links 2024-07-11 14:47:28 +00:00
DavHau
d639e70caf reference website: categorize into released/experimental/internal 2024-07-11 14:41:18 +00:00
Travis A. Everett
d887642ae7 pdm: support additional index/source URLs
pdm supports extra indexes in tool.pdm.source blocks and we can also
pass a list of urls to fetchFromLegacy, so this aggregates URLs from
the source blocks and passes them.

I think this will unblock simple cases like getting a package that is
not on pypi.org from some other index, but I imagine that there are
more complex cases that will require refining this support.
2024-07-09 15:58:14 +02:00
Paul Haerle
c674abab6d
Drop mitmproxy, pypiSnapshotDate (#1011)
* drop mitm-proxy & pypi snapshot date

* add warning if pypiSnapshotDate is used

* tree-wide: remove pypiSnapshotDate

* pip/tests/packages: support all platforms

* re-lock examples

* apache-airflow: fix override after re-lock

* pip/tests: remove other platforms again

...don't want to maintain 4 lock files per test
2024-07-09 15:51:13 +07:00
phaer
faf08c4c44 WIP-spago: fix build on darwin 2024-06-28 22:52:01 +02:00
phaer
72d2689551 WIP-spago: remove breakpointHook 2024-06-28 21:05:33 +02:00
phaer
42282329b0 tree-wide: make examples eval on all platforms...
all 4 default platforms of nixpkgs that is.
2024-06-28 21:05:33 +02:00
phaer
9c38c4fe41 fix default for format/pyproject in pip and pdm 2024-06-27 12:41:00 +02:00
phaer
1dda463e0b pdm: remove config.deps.python
because the default from buildPythonPackage already says
config.deps.python = pkgs.python3
2024-06-27 12:26:08 +02:00
phaer
97d181ccd8 treewide: format = "pyproject" -> pyproject = true
It's important to get the default in our PDM module fixed,
because upstream documentation recommends using pyproject = true;
and ships an assertion assertion '((pyproject != null) -> (format ==
null))' that fails with the current default in pdm.
2024-06-27 12:26:08 +02:00
Paul Haerle
5423ffd502
Merge branch 'main' into yorickvp/pkgs-fetchurl 2024-06-27 11:18:30 +02:00
DavHau
ef04683222 fix: nix flake show requiring IFD 2024-06-27 08:24:28 +00:00
phaer
35e13f912a docs/buildPythonPackage: reformat 2024-06-26 19:05:13 +02:00
phaer
00ccd3da76 docs/pip: Add intro to README 2024-06-26 19:05:13 +02:00
Paul Haerle
a7ebf95ad4
Merge branch 'main' into docs 2024-06-26 19:01:47 +02:00
purepani
cbe72c89ba
python-editables: Exports environment variables for python whether
.dream2nix needs updating or not (editables.py)
2024-06-23 15:20:56 -05:00
phaer
2bf5e20f23 docs: add note regarding upstream PR
for mkdocs-awesome-pages-plugin
2024-06-18 10:46:46 +02:00
phaer
361f402625 docs: s/reference(Docs)?/optionsReference/ 2024-06-14 14:27:49 +02:00
phaer
ea02037ba9 docs: force symlinks for src/reference 2024-06-14 13:40:08 +02:00
phaer
a35e43c84c docs: add missing readmes
(auto generated)
2024-06-13 15:47:32 +02:00
phaer
9dba824ae8 docs: add reference header 2024-06-13 15:47:07 +02:00
Yorick van Pelt
54f0cdc35d
pip: use pkgs.fetchurl instead of builtins.fetchurl
This resolves
error: store path 'nypj2b7h41zsrmyfsiww97zb6va445gn-torch-2.0.1%2Bcpu-cp310-cp310-linux_x86_64.whl' contains illegal character '%'
2024-06-13 14:32:07 +02:00