Skip to content

Commit

Permalink
Merge pull request #1344 from apeschar/blinker-build
Browse files Browse the repository at this point in the history
Configure build system for blinker >= 1.6.3
  • Loading branch information
cpcloud authored Oct 21, 2023
2 parents 93197ea + 6c57768 commit 85155da
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 1 deletion.
9 changes: 8 additions & 1 deletion overrides/build-systems.json
Original file line number Diff line number Diff line change
Expand Up @@ -2288,7 +2288,14 @@
"setuptools"
],
"blinker": [
"setuptools"
{
"buildSystem": "setuptools",
"until": "1.6.3"
},
{
"buildSystem": "flit-core",
"from": "1.6.3"
}
],
"blinkpy": [
"setuptools"
Expand Down
10 changes: 10 additions & 0 deletions tests/blinker-1_6_2/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ poetry2nix, runCommand }:
let
env = poetry2nix.mkPoetryEnv {
projectDir = ./.;
};
in
runCommand "blinker-test" { } ''
${env}/bin/python -c 'import blinker'
touch $out
''
18 changes: 18 additions & 0 deletions tests/blinker-1_6_2/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/blinker-1_6_2/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tool.poetry]
name = "blinker-test"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.10"
blinker = "<1.6.3"

[build-system]
requires = ["poetry-core>=1.1"]
build-backend = "poetry.core.masonry.api"
10 changes: 10 additions & 0 deletions tests/blinker/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ poetry2nix, runCommand }:
let
env = poetry2nix.mkPoetryEnv {
projectDir = ./.;
};
in
runCommand "blinker-test" { } ''
${env}/bin/python -c 'import blinker'
touch $out
''
18 changes: 18 additions & 0 deletions tests/blinker/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/blinker/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tool.poetry]
name = "blinker-test"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.10"
blinker = "*"

[build-system]
requires = ["poetry-core>=1.1"]
build-backend = "poetry.core.masonry.api"
2 changes: 2 additions & 0 deletions tests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ in
inherit (poetry2nix) cli;

ansible-molecule = callTest ./ansible-molecule { };
blinker-1_6_2 = callTest ./blinker-1_6_2 { };
blinker = callTest ./blinker { };
bcrypt = callTest ./bcrypt { };
mk-poetry-packages = callTest ./mk-poetry-packages { };
markupsafe2 = callTest ./markupsafe2 { };
Expand Down

0 comments on commit 85155da

Please sign in to comment.