This repository has been archived by the owner on Jun 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
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 #10 from ReagentX/feat/cs/pypi-deploy
Feat/cs/pypi deploy
- Loading branch information
Showing
6 changed files
with
107 additions
and
36 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,26 @@ | ||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* |
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,15 @@ | ||
|
||
.vscode/* | ||
venv/* | ||
# Generated files | ||
*.pyc | ||
cache.sqlite | ||
puepleair_api.egg-info/* | ||
purpleair_api.egg-info/* | ||
Purple_Air_API.egg-info/* | ||
purpleair.egg-info/* | ||
build/* | ||
dist/* | ||
|
||
# Requests cache | ||
cache.sqlite | ||
|
||
# Dev env | ||
venv/* | ||
.vscode/* |
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
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 |
---|---|---|
@@ -1,11 +1,28 @@ | ||
from setuptools import setup | ||
from setuptools import setup, find_packages | ||
|
||
with open("README.md", "r") as fh: | ||
LONG_DESCRIPTION = fh.read() | ||
|
||
setup( | ||
name='purpleair_api', | ||
version='1.0', | ||
description='A Python 3.7 PurpleAir API Class.', | ||
name='purpleair', | ||
version='1.0.1', | ||
description='Python API Client to get and transform PurpleAir data.', | ||
long_description=LONG_DESCRIPTION, | ||
long_description_content_type="text/markdown", | ||
author='Christopher Sardegna', | ||
author_email='[email protected]', | ||
scripts=['scripts/run.py'] | ||
url='https://github.com/ReagentX/purple_air_api/', | ||
packages=find_packages(), | ||
install_requires=['requests', 'requests_cache', 'thingspeak', 'geopy', 'pandas'], | ||
python_requires='>=3.6', | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', | ||
'Natural Language :: English', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 3.8', | ||
'Intended Audience :: Science/Research', | ||
'Topic :: Scientific/Engineering :: Information Analysis', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
] | ||
) |