Skip to content

Commit db0ab1f

Browse files
committed
Instruction to remove old dist files on release + order URLs
Add a last `rm` to remove files from the `dist/` folder after release, otherwise PyPI will keep uploading old releases you have locally forever whenever you do a new release. Also order URLs in `pyproject.toml`. It's better, and also PyPI orders them in its sidebar anyway.
1 parent fc42ca0 commit db0ab1f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

docs/development.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,8 @@ Rye uses [Ruff](https://github.com/astral-sh/ruff) under the hood for code forma
8484
8585
git tag $VERSION
8686
git push --tags
87+
88+
rm dist/* # or else PyPI will keep uploading old versions forever
8789
```
88-
4. Cut a new GitHub release by visiting [new release](https://github.com/riverqueue/riverqueue-python/releases/new), selecting the new tag, and copying in the version's `CHANGELOG.md` content as the release body.
90+
91+
4. Cut a new GitHub release by visiting [new release](https://github.com/riverqueue/riverqueue-python/releases/new), selecting the new tag, and copying in the version's `CHANGELOG.md` content as the release body.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ requires = ["hatchling"]
1717
build-backend = "hatchling.build"
1818

1919
[project.urls]
20-
Homepage = "https://riverqueue.com"
20+
Changelog = "https://github.com/riverqueue/riverqueue-python/blob/master/CHANGELOG.md"
2121
Documentation = "https://riverqueue.com/docs"
22-
Repository = "https://github.com/riverqueue/riverqueue-python.git"
22+
Homepage = "https://riverqueue.com"
2323
Issues = "https://github.com/riverqueue/riverqueue-python/issues"
24-
Changelog = "https://github.com/riverqueue/riverqueue-python/blob/master/CHANGELOG.md"
24+
Repository = "https://github.com/riverqueue/riverqueue-python.git"
2525

2626
[tool.rye]
2727
managed = true

0 commit comments

Comments
 (0)