-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add automatically versioning to the release process
- Loading branch information
Showing
5 changed files
with
49 additions
and
5 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 |
---|---|---|
|
@@ -24,12 +24,16 @@ jobs: | |
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel twine | ||
pip install --upgrade pip setuptools wheel twine | ||
pip install -r requirements.txt | ||
pip install -e . | ||
- name: Build a binary wheel and a source tarball | ||
run: python setup.py sdist bdist_wheel | ||
- name: Use Python Semantic Release to prepare release | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
semantic-release publish | ||
- name: Publish distribution 📦 to Test PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
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 @@ | ||
<!--next-version-placeholder--> |
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,37 @@ | ||
[tool.poetry] | ||
name = "pynews" | ||
version = "0.2.2" | ||
description = "PyNews is a simple Python CLI to browse news from HN website" | ||
license = {text = "GNU General Public License v3 (GPLv3)"} | ||
readme = "README.rst" | ||
classifiers = [ | ||
"Intended Audience :: Developers", | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Console", | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Topic :: Utilities", | ||
"Topic :: System :: Shells", | ||
] | ||
|
||
[build-system] | ||
requires = ["setuptools>=61.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.semantic_release] | ||
version_variable = [ | ||
"setup.py:__version__", | ||
"pyproject.toml:version", | ||
] | ||
branch = "main" | ||
changelog_file = "CHANGELOG.md" | ||
dist_path = "dist/" | ||
upload_to_release = true | ||
upload_to_pypi = false | ||
remove_dist = false | ||
patch_without_tag = true |
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,3 +1,4 @@ | ||
curses-menu==0.6.7 | ||
requests==2.28.1 | ||
alive-progress==2.4.1 | ||
python-semantic-release==7.28.0 |
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