Skip to content

Commit

Permalink
Merge pull request #1883 from WilldooIT/overrides_click
Browse files Browse the repository at this point in the history
overrides: update build system for click
  • Loading branch information
Nebucatnetzer authored Jan 6, 2025
2 parents 537bca2 + 13348ae commit a495865
Show file tree
Hide file tree
Showing 8 changed files with 120 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 @@ -3681,7 +3681,14 @@
"setuptools"
],
"click": [
"setuptools"
{
"buildSystem": "setuptools",
"until": "8.1.8"
},
{
"buildSystem": "flit-core",
"from": "8.1.8"
}
],
"click-aliases": [
"poetry-core"
Expand Down
11 changes: 11 additions & 0 deletions tests/click-pre-8_1_8/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{ poetry2nix, python310, runCommand }:
let
env = poetry2nix.mkPoetryEnv {
projectDir = ./.;
python = python310;
};
in
runCommand "click-pre-8_1_8-test" { } ''
${env}/bin/python -c 'import click'
touch $out
''
31 changes: 31 additions & 0 deletions tests/click-pre-8_1_8/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/click-pre-8_1_8/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tool.poetry]
name = "click-pre-8_1_8"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.10"
click = "<8.1.8"

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

[tool.poetry.dependencies]
python = "^3.10"
click = ">=8.1.8"

[build-system]
requires = ["poetry-core"]
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 @@ -67,6 +67,8 @@ in
blinker-1_6_2 = callTest ./blinker-1_6_2 { };
blinker = callTest ./blinker { };
bcrypt = callTest ./bcrypt { };
click-pre-8_1_8 = callTest ./click-pre-8_1_8 { };
click = callTest ./click { };
color-operations = callTest ./color-operations { };
cryptography-43 = callTest ./cryptography-43 { };
cryptography = callTest ./cryptography { };
Expand Down

0 comments on commit a495865

Please sign in to comment.