| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f86f09e commit 5343aa0
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,6 +15,8 @@ release: clean | |||
| 15 | 15 | make force_release | |
| 16 | 16 | ||
| 17 | 17 | force_release: clean | |
| 18 | + # IF we're in a virtual environment, add build tools | ||
| 19 | + test -z "$$VIRTUAL_ENV" || pip install -U build twine | ||
| 18 | 20 | python3 -m build --sdist --wheel | |
| 19 | 21 | twine upload dist/* | |
| 20 | 22 | git push --tags origin main | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -188,13 +188,15 @@ Please have a look at the [contributions file][contributing]. | |||
| 188 | 188 | ||
| 189 | 189 | ### How to make a new release | |
| 190 | 190 | ||
| 191 | - - Update/verify the **version** in the `VERSION` file | ||
| 192 | - - Update/verify that the `doc/source/changes.rst` changelog file was updated | ||
| 193 | - - Commit everything | ||
| 194 | - - Run `git tag -s <version>` to tag the version in Git | ||
| 195 | - - Run `make release` | ||
| 191 | + - Update/verify the **version** in the `VERSION` file. | ||
| 192 | + - Update/verify that the `doc/source/changes.rst` changelog file was updated. | ||
| 193 | + - Commit everything. | ||
| 194 | + - Run `git tag -s <version>` to tag the version in Git. | ||
| 195 | + - _Optionally_ create and activate a [virtual environment](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/#creating-a-virtual-environment) using `venv` or `virtualenv`.\ | ||
| 196 | + (When run in a virtual environment, the next step will automatically take care of installing `build` and `twine` in it.) | ||
| 197 | + - Run `make release`. | ||
| 196 | 198 | - Close the milestone mentioned in the _changelog_ and create a new one. _Do not reuse milestones by renaming them_. | |
| 197 | - - Got to [GitHub Releases](https://github.com/gitpython-developers/GitPython/releases) and publish a new one with the recently pushed tag. Generate the changelog. | ||
| 199 | + - Go to [GitHub Releases](https://github.com/gitpython-developers/GitPython/releases) and publish a new one with the recently pushed tag. Generate the changelog. | ||
| 198 | 200 | ||
| 199 | 201 | ### How to verify a release (DEPRECATED) | |
| 200 | 202 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,4 @@ | |||
| 1 | 1 | black | |
| 2 | - build | ||
| 3 | 2 | coverage[toml] | |
| 4 | 3 | ddt>=1.1.1, !=1.4.3 | |
| 5 | 4 | mypy | |
| Back | FazBrowse Home | New Git URL |
0 commit comments