-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation for publishing new version.
- Loading branch information
Showing
1 changed file
with
54 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Publishing a New Version of Your Package | ||
|
||
This guide will walk you through the steps to publish a new version of your package. | ||
|
||
## Prerequisites | ||
|
||
Ensure you have the following: | ||
|
||
- Latest code changes committed and pushed to your repository. | ||
- A GitHub account with access to the repository. | ||
- A PyPI account for package distribution. | ||
|
||
## Steps | ||
|
||
1. **Update the Version Number** | ||
|
||
In your `pyproject.toml` file, update the version number to the new version. | ||
For example, if the new version is `0.0.8`, it should look like this: | ||
|
||
```toml | ||
[project] | ||
name = "firipy" | ||
version = "0.0.8" | ||
... | ||
``` | ||
|
||
2. **Commit and Push Your Changes** | ||
|
||
Commit the changes to your `pyproject.toml` file and push them to your repository. | ||
|
||
```bash | ||
git add pyproject.toml | ||
git commit -m "Bump version to 0.0.8" | ||
git push | ||
``` | ||
|
||
3. **Create a New Release on GitHub** | ||
|
||
Navigate to the "Releases" section of your GitHub repository and click "Draft a new release". | ||
Enter `0.0.8` as the tag version and title, and write a description of the changes in this release. | ||
Then click "Publish release". | ||
|
||
![GitHub Release](./images/github_release.png) | ||
|
||
## Post-Publishing | ||
|
||
After you publish the release, your GitHub Actions workflow will automatically build and publish the new version of your package to PyPI. | ||
You can check the "Actions" tab in your GitHub repository to see the progress and results of the workflow. | ||
|
||
## Troubleshooting | ||
|
||
If you encounter any issues during the publishing process, refer to the [GitHub](https://docs.github.com/en/github) and [PyPI](https://pypi.org/help/) documentation, or contact the repository maintainer. | ||
|
||
Happy coding! |