-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(python): switch Python spec from poetry to uv
- Loading branch information
Showing
13 changed files
with
65 additions
and
103 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,8 @@ | |
"__project_slug": "{{cookiecutter.project_name|lower|replace(' ', '-')}}", | ||
"__package_name": "{{cookiecutter.project_name|lower|replace(' ', '_')|replace('-', '_')}}", | ||
"short_description": "", | ||
"author": "Mozilla Release Engineering <[email protected]>", | ||
"author_name": "Mozilla Release Engineering", | ||
"author_email": "[email protected]", | ||
"github_slug": "mozilla-releng/{{cookiecutter.__project_slug}}", | ||
"__github_org": "{{cookiecutter.github_slug[:cookiecutter.github_slug.find('/')]}}", | ||
"__github_project": "{{cookiecutter.github_slug[cookiecutter.github_slug.find('/')+1:]}}", | ||
|
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
8 changes: 0 additions & 8 deletions
8
reps/templates/python/{{cookiecutter.__project_slug}}/taskcluster/scripts/poetry-setup
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
reps/templates/python/{{cookiecutter.__project_slug}}/taskcluster/scripts/pyenv-setup
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -26,7 +26,6 @@ def test_generated_files(reps_new): | |
"docs/reference/index.rst", | ||
"docs/tutorials/index.rst", | ||
"pyproject.toml", | ||
"poetry.lock", | ||
f"src/{name}/__init__.py", | ||
"taskcluster/config.yml", | ||
"taskcluster/docker/fetch/Dockerfile", | ||
|
@@ -36,17 +35,16 @@ def test_generated_files(reps_new): | |
"taskcluster/kinds/fetch/kind.yml", | ||
"taskcluster/kinds/test/kind.yml", | ||
"taskcluster/scripts/codecov-upload.py", | ||
"taskcluster/scripts/pyenv-setup", | ||
"taskcluster/scripts/poetry-setup", | ||
"test/conftest.py", | ||
f"test/test_{name}.py", | ||
"tox.ini", | ||
"uv.lock", | ||
] | ||
|
||
project = reps_new(name, "python") | ||
|
||
actual = [] | ||
ignore = ("__pycache__", ".git/", ".pyc") | ||
ignore = ("__pycache__", ".git/", ".pyc", ".venv") | ||
for path in project.rglob("*"): | ||
if path.is_dir() or any(i in str(path) for i in ignore): | ||
continue | ||
|
@@ -64,7 +62,8 @@ def test_generated_files(reps_new): | |
"__project_slug": "my-package", | ||
"__package_name": "my_package", | ||
"short_description": "", | ||
"author": "Mozilla Release Engineering <[email protected]>", | ||
"author_name": "Mozilla Release Engineering", | ||
"author_email": "[email protected]", | ||
"github_slug": "mozilla-releng/my-package", | ||
"min_python_version": "3.8", | ||
"__min_tox_python_version": "38", | ||
|