Skip to content

Commit

Permalink
Merge pull request #1318 from apeschar/procrastinate-build-system
Browse files Browse the repository at this point in the history
Add poetry-core build system for procrastinate
  • Loading branch information
cpcloud authored Sep 22, 2023
2 parents 406a978 + 36d56bb commit 100a361
Show file tree
Hide file tree
Showing 5 changed files with 284 additions and 0 deletions.
3 changes: 3 additions & 0 deletions overrides/build-systems.json
Original file line number Diff line number Diff line change
Expand Up @@ -11994,6 +11994,9 @@
"process-tests": [
"setuptools"
],
"procrastinate": [
"poetry-core"
],
"proglog": [
"setuptools"
],
Expand Down
1 change: 1 addition & 0 deletions tests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ in
gitlint = callTest ./gitlint { };
jupyter-ydoc = callTest ./jupyter-ydoc { };
mutmut = callTest ./mutmut { };
procrastinate = callTest ./procrastinate { };
rasterio = callTest ./rasterio { };
scientific = callTest ./scientific { };
scipy1_9 = callTest ./scipy1_9 { };
Expand Down
12 changes: 12 additions & 0 deletions tests/procrastinate/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{ poetry2nix
, runCommand
,
}:
let
env = poetry2nix.mkPoetryEnv {
projectDir = ./.;
};
in
runCommand "procrastinate-test" { } ''
${env}/bin/procrastinate --version > $out
''
255 changes: 255 additions & 0 deletions tests/procrastinate/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions tests/procrastinate/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tool.poetry]
name = "procrastinate-test"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.8"
procrastinate = "*"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 100a361

Please sign in to comment.