-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for dependency-groups parser
- Loading branch information
1 parent
4c54fc2
commit d1bc903
Showing
69 changed files
with
355 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
BadConfigError: Unexpected top-level key 'coverage'. Only 'build-system', 'project' and 'tool' are allowed. | ||
BadConfigError: Unexpected top-level key 'coverage'. Only 'build-system', 'dependency-groups', 'project' and 'tool' are allowed. | ||
Use '--traceback' to view the full traceback. | ||
Aborted! |
1 change: 1 addition & 0 deletions
1
tests/test_cli_/test_reformat_False_COMPLETE_DEPENDENCY_GROUPS_.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Reformatting 'pyproject.toml' |
34 changes: 34 additions & 0 deletions
34
tests/test_cli_/test_reformat_False_COMPLETE_DEPENDENCY_GROUPS_.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[build-system] | ||
requires = [ "whey",] | ||
build-backend = "whey" | ||
|
||
[project] | ||
name = "whey" | ||
version = "2021.0.0" | ||
description = "A simple Python wheel builder for simple projects." | ||
keywords = [ "build", "distribution", "packaging", "pep517", "pep621", "sdist", "wheel",] | ||
dependencies = [ 'django>2.1; os_name != "nt"', 'django>2.0; os_name == "nt"', "gidgethub[httpx]>4.0.0", "httpx",] | ||
dynamic = [ "classifiers", "requires-python",] | ||
|
||
[[project.authors]] | ||
name = "Dominic Davis-Foster" | ||
email = "dominic@davis-foster.co.uk" | ||
|
||
[project.urls] | ||
Homepage = "https://whey.readthedocs.io/en/latest" | ||
Documentation = "https://whey.readthedocs.io/en/latest" | ||
"Issue Tracker" = "https://github.com/repo-helper/whey/issues" | ||
"Source Code" = "https://github.com/repo-helper/whey" | ||
|
||
[tool.whey] | ||
base-classifiers = [ "Development Status :: 4 - Beta",] | ||
python-versions = [ "3.6", "3.7", "3.8", "3.9", "3.10",] | ||
python-implementations = [ "CPython", "PyPy",] | ||
platforms = [ "Windows", "macOS", "Linux",] | ||
license-key = "MIT" | ||
|
||
[dependency-groups] | ||
test = [ "pytest", "coverage",] | ||
docs = [ "sphinx", "sphinx-rtd-theme",] | ||
typing = [ "mypy", "types-requests",] | ||
typing-test = [ { include-group = "typing" }, { include-group = "test" }, "useful-types",] |
41 changes: 41 additions & 0 deletions
41
tests/test_cli_/test_reformat_True_COMPLETE_DEPENDENCY_GROUPS_.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Reformatting 'pyproject.toml' | ||
--- pyproject.toml (original) | ||
+++ pyproject.toml (reformatted) | ||
@@ -6,18 +6,13 @@ | ||
name = "whey" | ||
version = "2021.0.0" | ||
description = "A simple Python wheel builder for simple projects." | ||
-keywords = [ "pep517", "pep621", "build", "sdist", "wheel", "packaging", "distribution",] | ||
+keywords = [ "build", "distribution", "packaging", "pep517", "pep621", "sdist", "wheel",] | ||
+dependencies = [ 'django>2.1; os_name != "nt"', 'django>2.0; os_name == "nt"', "gidgethub[httpx]>4.0.0", "httpx",] | ||
dynamic = [ "classifiers", "requires-python",] | ||
-dependencies = [ | ||
- "httpx", | ||
- "gidgethub[httpx]>4.0.0", | ||
- "django>2.1; os_name != 'nt'", | ||
- "django>2.0; os_name == 'nt'" | ||
-] | ||
|
||
[[project.authors]] | ||
+name = "Dominic Davis-Foster" | ||
email = "dominic@davis-foster.co.uk" | ||
-name = "Dominic Davis-Foster" | ||
|
||
[project.urls] | ||
Homepage = "https://whey.readthedocs.io/en/latest" | ||
@@ -32,10 +27,9 @@ | ||
platforms = [ "Windows", "macOS", "Linux",] | ||
license-key = "MIT" | ||
|
||
+[dependency-groups] | ||
+test = [ "pytest", "coverage",] | ||
+docs = [ "sphinx", "sphinx-rtd-theme",] | ||
+typing = [ "mypy", "types-requests",] | ||
+typing-test = [ { include-group = "typing" }, { include-group = "test" }, "useful-types",] | ||
|
||
-[dependency-groups] | ||
-test = ["pytest", "coverage"] | ||
-docs = ["sphinx", "sphinx-rtd-theme"] | ||
-typing = ["mypy", "types-requests"] | ||
-typing-test = [{include-group = "typing"}, {include-group = "test"}, "useful-types"] | ||
- |
34 changes: 34 additions & 0 deletions
34
tests/test_cli_/test_reformat_True_COMPLETE_DEPENDENCY_GROUPS_.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[build-system] | ||
requires = [ "whey",] | ||
build-backend = "whey" | ||
|
||
[project] | ||
name = "whey" | ||
version = "2021.0.0" | ||
description = "A simple Python wheel builder for simple projects." | ||
keywords = [ "build", "distribution", "packaging", "pep517", "pep621", "sdist", "wheel",] | ||
dependencies = [ 'django>2.1; os_name != "nt"', 'django>2.0; os_name == "nt"', "gidgethub[httpx]>4.0.0", "httpx",] | ||
dynamic = [ "classifiers", "requires-python",] | ||
|
||
[[project.authors]] | ||
name = "Dominic Davis-Foster" | ||
email = "dominic@davis-foster.co.uk" | ||
|
||
[project.urls] | ||
Homepage = "https://whey.readthedocs.io/en/latest" | ||
Documentation = "https://whey.readthedocs.io/en/latest" | ||
"Issue Tracker" = "https://github.com/repo-helper/whey/issues" | ||
"Source Code" = "https://github.com/repo-helper/whey" | ||
|
||
[tool.whey] | ||
base-classifiers = [ "Development Status :: 4 - Beta",] | ||
python-versions = [ "3.6", "3.7", "3.8", "3.9", "3.10",] | ||
python-implementations = [ "CPython", "PyPy",] | ||
platforms = [ "Windows", "macOS", "Linux",] | ||
license-key = "MIT" | ||
|
||
[dependency-groups] | ||
test = [ "pytest", "coverage",] | ||
docs = [ "sphinx", "sphinx-rtd-theme",] | ||
typing = [ "mypy", "types-requests",] | ||
typing-test = [ { include-group = "typing" }, { include-group = "test" }, "useful-types",] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/test_config_/test_dependency_groups_parser_valid_config_empty_False_.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
1 change: 1 addition & 0 deletions
1
tests/test_config_/test_dependency_groups_parser_valid_config_empty_True_.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
11 changes: 11 additions & 0 deletions
11
tests/test_config_/test_dependency_groups_parser_valid_config_full_example_False_.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
all: | ||
- foo | ||
- include-group: group-a | ||
- include-group: group-b | ||
- include-group: group-c | ||
group-a: | ||
- foo | ||
group-b: | ||
- foo>1.0 | ||
group-c: | ||
- foo<1.0 |
11 changes: 11 additions & 0 deletions
11
tests/test_config_/test_dependency_groups_parser_valid_config_full_example_True_.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
all: | ||
- foo | ||
- include-group: group-a | ||
- include-group: group-b | ||
- include-group: group-c | ||
group-a: | ||
- foo | ||
group-b: | ||
- foo>1.0 | ||
group-c: | ||
- foo<1.0 |
2 changes: 2 additions & 0 deletions
2
tests/test_config_/test_dependency_groups_parser_valid_config_one_group_False_.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
group-a: | ||
- foo |
2 changes: 2 additions & 0 deletions
2
tests/test_config_/test_dependency_groups_parser_valid_config_one_group_True_.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
group-a: | ||
- foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/test_pyproject_class_/test_custom_pyproject_class_COMPLETE_PROJECT_A_.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
build_system: null | ||
dependency_groups: null | ||
project: | ||
authors: | ||
- email: hi@pradyunsg.me | ||
|
Oops, something went wrong.