Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #61 from andrewsayre/dev
Browse files Browse the repository at this point in the history
Add pypi package workflow
  • Loading branch information
andrewsayre authored Nov 12, 2021
2 parents 0a5d6e0 + af34bf3 commit 252b067
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
tests:
name: "Run tests on ${{ matrix.python-version }}"
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
python-version: [3.8, 3.9]
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/publish.yaml
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 }}
2 changes: 1 addition & 1 deletion pysmartthings/const.py
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"
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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",
],
)

0 comments on commit 252b067

Please sign in to comment.