-
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.
Add GitHub Action for publishing Python packages to PyPI (#5)
* Add publish PyPI github action * Bump version to 1.0.0 * Update long_description attribute to use README.md file
- Loading branch information
1 parent
989bca3
commit d094ab1
Showing
3 changed files
with
33 additions
and
7 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,29 @@ | ||
name: publish | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
publish-tag: | ||
name: Build and publish Python distributions to PyPI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Build source and wheel distributions | ||
run: | | ||
python -m pip install --upgrade build twine | ||
python -m build | ||
twine check dist/* | ||
- name: Publish distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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 |
---|---|---|
|
@@ -32,6 +32,3 @@ jobs: | |
run: tox -c tox.ini -e check-formatting,lint | ||
- name: Run Test Suite | ||
run: tox -c tox.ini -e py312 | ||
|
||
|
||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[project] | ||
name = "micrograd" | ||
version = "0.0.1" | ||
description = "Backprogation from scratch" | ||
version = "1.0.0" | ||
description = "Backpropagation from scratch" | ||
keywords = [] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
|
@@ -24,7 +24,8 @@ author_email = "[email protected]" | |
maintainer = "Lorenzo Del Signore" | ||
maintainer_email = "[email protected]" | ||
url = "https://github.com/lorenzo-delsignore/micrograd" | ||
long_description = "Backprogation from scratch" | ||
long_description = { file = "README.md" } | ||
long_description_content_type = "text/markdown" | ||
license = { file = "LICENSE" } | ||
|
||
[tool.setuptools.packages.find] | ||
|
@@ -62,4 +63,3 @@ requires = [ | |
"setuptools==69.5.1", | ||
"wheel", | ||
] | ||
|