From 71a04e4e7b1bf14ef4ae78ca65e48c188cdd8eb3 Mon Sep 17 00:00:00 2001 From: Tyler Barrus Date: Tue, 22 Dec 2020 21:57:05 -0500 Subject: [PATCH] version bump --- .github/workflows/publish.yml | 32 +++++++++++++++++++++++++ README.rst | 2 +- omdb/__init__.py | 2 +- requirements/python => requirements.txt | 0 setup.py | 7 +++--- 5 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/publish.yml rename requirements/python => requirements.txt (100%) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..f4f0d1a --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,32 @@ +# This workflows will upload a Python Package using Twine when a release is created +# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries + +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@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + 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/* diff --git a/README.rst b/README.rst index 450cd9e..9f36d5f 100644 --- a/README.rst +++ b/README.rst @@ -40,7 +40,7 @@ To install ``pyomdbapi``, simply clone the `repository on GitHub $ python setup.py install -`pyomdbapi` supports python versions 3.4 - 3.7 +`pyomdbapi` supports python versions 3.5 - 3.9 Quickstart diff --git a/omdb/__init__.py b/omdb/__init__.py index 4af1379..7cd0293 100644 --- a/omdb/__init__.py +++ b/omdb/__init__.py @@ -12,7 +12,7 @@ __maintainer__ = "Tyler Barrus" __email__ = "barrust@gmail.com" __license__ = "MIT" -__version__ = "0.2.0" +__version__ = "0.2.1" __url__ = "https://github.com/barrust/pyomdbapi" __bugtrack_url__ = "{0}/issues".format(__url__) __all__ = [ diff --git a/requirements/python b/requirements.txt similarity index 100% rename from requirements/python rename to requirements.txt diff --git a/setup.py b/setup.py index 4704faa..f6655cc 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ def read_file(filepath): url=__url__, download_url='{0}/tarball/v{1}'.format(__url__, __version__), bugtrack_url=__bugtrack_url__, - install_requires=read_file('./requirements/python').splitlines(), + install_requires=read_file("requirements.txt").splitlines(), packages=['omdb'], long_description=read_file('README.rst'), classifiers=[ @@ -40,9 +40,10 @@ def read_file(filepath): 'License :: OSI Approved', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7' + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', ] )