forked from pklaus/brother_ql
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from matmair/matmair-patch-1publishing
Add publishing action
- Loading branch information
Showing
2 changed files
with
33 additions
and
2 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,31 @@ | ||
name: Release to pylint | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
env: | ||
python_version: 3.8 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Setup Python ${{ env.python_version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ env.python_version }} | ||
- name: Install Python build dependencies | ||
run: | | ||
pip install --upgrade wheel setuptools twine build | ||
- name: Build binary | ||
run: | | ||
python3 -m build | ||
- name: Publish tp PyPi | ||
run: python3 -m twine upload dist/* | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
TWINE_REPOSITORY: pypi |
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 |
---|---|---|
|
@@ -15,12 +15,12 @@ | |
LDESC = '' | ||
|
||
setup(name='brother_ql', | ||
version = '0.9.dev0', | ||
version = '1.0a0', | ||
description = 'Python package to talk to Brother QL label printers', | ||
long_description = LDESC, | ||
author = 'Philipp Klaus', | ||
author_email = '[email protected]', | ||
url = 'https://github.com/pklaus/brother_ql', | ||
url = 'https://github.com/pklaus/brother_ql-inventree', | ||
license = 'GPL', | ||
packages = ['brother_ql', | ||
'brother_ql.backends'], | ||
|