-
Notifications
You must be signed in to change notification settings - Fork 90
feat: Use pyproject.toml instead of setup.cfg + pinned dependencies + ruff as linter. #1325
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
Merged
PabloHiro
merged 2 commits into
ansible:devel
from
PabloHiro:feature/receptorctl-dependencies
May 30, 2025
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,17 @@ | ||
[project] | ||
name = "receptor-python-worker" | ||
authors = [{name = "Red Hat", email = "info@ansible.com"}] | ||
description = "The receptor-python-worker command is called by Receptor to supervise the operation of a Python worker plugin." | ||
readme = "README.md" | ||
license = "Apache-2.0" | ||
dynamic = ["version"] | ||
|
||
[build-system] | ||
requires = ["setuptools"] | ||
requires = ["setuptools", "setuptools-scm"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
fallback_version = "0.0.0" | ||
|
||
[project.scripts] | ||
receptor-python-worker = "receptor_python_worker:run" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,6 +1,3 @@ | ||
recursive-include receptorctl *.py | ||
include .VERSION | ||
exclude .gitignore | ||
exclude noxfile.py | ||
exclude build-requirements.txt | ||
exclude test-requirements.txt |
This file contains hidden or 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 hidden or 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 hidden or 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,6 +1,51 @@ | ||
[project] | ||
name = "receptorctl" | ||
authors = [{name = "Red Hat", email = "info@ansible.com"}] | ||
description = "Receptorctl is a front-end CLI and importable Python library that interacts with Receptor over its control socket interface." | ||
readme = "README.md" | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"python-dateutil>=2.8.1", | ||
"click>=8.1.3, <8.2.0", | ||
"PyYAML>=5.4.1", | ||
] | ||
|
||
[project.license] | ||
text = "Apache-2.0" | ||
|
||
[project.urls] | ||
Homepage = "https://ansible.readthedocs.io/projects/receptor/" | ||
Documentation = "https://ansible.readthedocs.io/projects/receptor/en/latest/" | ||
Repository = "https://github.com/ansible/receptor" | ||
Issues = "https://github.com/ansible/receptor/issues" | ||
|
||
[build-system] | ||
requires = ["setuptools"] | ||
requires = ["setuptools>=75.3.2", "setuptools-scm>=7.1.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.black] | ||
exclude = "(build|.eggs)" | ||
[tool.setuptools_scm] | ||
fallback_version = "0.0.0" | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"coverage", | ||
"pip-tools>=7", | ||
"pytest", | ||
"pytest-cov", | ||
"ruff", | ||
] | ||
|
||
[project.scripts] | ||
receptorctl = "receptorctl:run" | ||
|
||
[tool.ruff] | ||
line-length = 100 | ||
|
||
[tool.pip-tools] | ||
resolver = "backtracking" | ||
allow-unsafe = true | ||
strip-extras = true | ||
quiet = true | ||
|
||
[tool.coverage.run] | ||
omit = ["tests/*"] |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.