This repository has been archived by the owner on May 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
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 #61 from andrewsayre/dev
Add pypi package workflow
- Loading branch information
Showing
4 changed files
with
41 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
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,35 @@ | ||
name: Publish to Pypi | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: ["published"] | ||
|
||
jobs: | ||
lint: | ||
name: "Package and Publish" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('test-requirements.txt') }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt -r test-requirements.txt --upgrade --upgrade-strategy eager | ||
pip install setuptools wheel twine --upgrade --upgrade-strategy eager | ||
- name: Build | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
- name: Deploy | ||
run: | | ||
python3 -m twine upload dist/* | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
"""Define consts for the pysmartthings package.""" | ||
|
||
__title__ = "pysmartthings" | ||
__version__ = "0.7.6" | ||
__version__ = "0.7.7" |
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,8 +24,8 @@ | |
author_email="[email protected]", | ||
license="ASL 2.0", | ||
packages=find_packages(exclude=("tests*",)), | ||
install_requires=["aiohttp>=3.5.1,<4.0.0"], | ||
tests_require=["tox>=3.5.0,<4.0.0"], | ||
install_requires=["aiohttp>=3.8.0,<4.0.0"], | ||
tests_require=[], | ||
platforms=["any"], | ||
keywords="smartthings", | ||
zip_safe=False, | ||
|
@@ -36,7 +36,7 @@ | |
"Operating System :: OS Independent", | ||
"Topic :: Software Development :: Libraries", | ||
"Topic :: Home Automation", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
], | ||
) |