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

New updates detected with Cruft #58

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/cthoyt/cookiecutter-snekpack",
"commit": "1884310d930f56787c96d4eba45bcb4a5225f7cb",
"commit": "1928d26a0ecd415a1dce89839aa79a9564d0c760",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ Documentation = "https://bioversions.readthedocs.io"

[tool.setuptools]
package-dir = { "" = "src" }
# This fix is here as a final tombstone before getting rid of setuptools and
# replacing with uv's build backend. It appears that the setuptools team hasn't
# prioritized fixing the fully breaking bug in metadata emission described in
# https://github.com/pypa/setuptools/issues/4759. Luckily, the license
# is inferred from the trove classifier for MIT license.
license-files = []

[tool.setuptools.packages.find]
# this implicitly sets `packages = ":find"`
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ commands =
# 7. Add your token to keyring with `keyring set https://upload.pypi.org/legacy/ __token__`

[testenv:release]
description = Release the code to PyPI so users can pip install it
description = Release the code to PyPI so users can pip install it, using credentials from keyring
skip_install = true
deps =
{[testenv:build]deps}
Expand Down
21 changes: 21 additions & 0 deletions tox.ini.rej
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff a/tox.ini b/tox.ini (rejected hunks)
@@ -223,6 +223,19 @@ commands =
{[testenv:build]commands}
uv publish --username __token__ --keyring-provider subprocess --publish-url https://upload.pypi.org/legacy/

+[testenv:release-via-env]
+description = Release the code to PyPI so users can pip install it, using credentials from the environment.
+skip_install = true
+deps =
+ {[testenv:build]deps}
+ uv
+commands =
+ {[testenv:build]commands}
+ uv publish --publish-url https://upload.pypi.org/legacy/
+passenv =
+ UV_PUBLISH_USERNAME
+ UV_PUBLISH_PASSWORD
+
[testenv:finish]
description =
Run a workflow that removes -dev from the version, creates a tagged release on GitHub,