Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overrides for decli and yamlfix #1806

Merged
merged 5 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion overrides/build-systems.json
Original file line number Diff line number Diff line change
Expand Up @@ -4502,6 +4502,9 @@
"cython",
"setuptools"
],
"cz-conventional-gitmoji": [
"poetry"
],
"d20": [
"setuptools"
],
Expand Down Expand Up @@ -4815,7 +4818,11 @@
"setuptools"
],
"decli": [
"setuptools"
"setuptools",
{
"buildSystem": "poetry-core",
"from": "0.6.2"
}
],
"decopatch": [
"setuptools",
Expand Down Expand Up @@ -27346,6 +27353,7 @@
"setuptools"
],
"yamlfix": [
"pdm-backend",
"pdm-pep517",
"setuptools"
],
Expand Down
11 changes: 11 additions & 0 deletions tests/commitizen/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 "commitizen-test" { } ''
${env}/bin/cz ls | grep -q "cz_gitmoji" || exit 1
touch $out
''
442 changes: 442 additions & 0 deletions tests/commitizen/poetry.lock

Large diffs are not rendered by default.

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

[tool.poetry.dependencies]
python = "^3.10"
cz-conventional-gitmoji = "*"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
11 changes: 11 additions & 0 deletions tests/decli-pre-0_6_2/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 "decli-pre-0_6_2-test" { } ''
${env}/bin/python -c 'import decli'
touch $out
''
17 changes: 17 additions & 0 deletions tests/decli-pre-0_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/decli-pre-0_6_2/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tool.poetry]
name = "decli-pre-0_6_2"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.10"
decli = "<0.6.2"

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

[tool.poetry.dependencies]
python = "^3.10"
decli = ">=0.6.2"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
3 changes: 3 additions & 0 deletions tests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,15 @@ in
cattrs = callTest ./cattrs { };
cattrs-pre-23-2 = callTest ./cattrs-pre-23-2 { };
cdk-nag = callTest ./cdk-nag { };
commitizen = callTest ./commitizen { };
arrow = callTest ./arrow { };
gitlint-core = callTest ./gitlint-core { };
gitlint = callTest ./gitlint { };
jupyter-ydoc = callTest ./jupyter-ydoc { };
mutmut = callTest ./mutmut { };
procrastinate = callTest ./procrastinate { };
decli = callTest ./decli { };
decli-pre-0_6_2 = callTest ./decli-pre-0_6_2 { };
pytest-redis = callTest ./pytest-redis { };
pylint-django = callTest ./pylint-django { };
pylint-django-pre-2-5-4 = callTest ./pylint-django-pre-2-5-4 { };
Expand Down