diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..dcebefa --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,36 @@ +name: Deploy + +on: + push: + branches: + - master + tags: + - "*" + +jobs: + deploy: + runs-on: ubuntu-20.04 + if: startsWith(github.ref, 'refs/tags/') + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - name: Install dependencies + run: python -m pip install --upgrade setuptools wheel twine + - name: Build and check + run: | + python setup.py sdist bdist_wheel + python -m twine check dist/* + - name: Deploy to PyPI + uses: pypa/gh-action-pypi-publish@v1.4.1 + with: + user: __token__ + password: ${{ secrets.PYPI_TOKEN }} + - name: Create a release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false diff --git a/.github/workflows/python-package.yml b/.github/workflows/tests.yml similarity index 98% rename from .github/workflows/python-package.yml rename to .github/workflows/tests.yml index 71c0714..bfe573a 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/tests.yml @@ -1,7 +1,7 @@ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions -name: Python package +name: Tests on: push: diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 59c365b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -dist: xenial -language: python -python: -- '3.5' -- '3.6' -- '3.7' -install: pip install tox-travis -script: tox -after_success: -- coveralls -deploy: - provider: pypi - username: "__token__" # mshriver - password: - secure: rkAp2vVtLyQJLWc0OtJhL/YYbdYKCwUEnx5ABw8YLn2B5RY5wHs65NVHWBoeJFWlTE/v0SCDZNdTqJgcouEtVCUwqWnjEteuhDuhS0XGtbVoGK8vym2soIL6lSGTc6PfMJhKNxT7zht44qKuOpcC7nZP8ccs7qWmD3aOeS1/rz3rVls943Zqnq3il7/tlWulbOSjoxT2iIyaJNcrGesmDpYUrs4OFxTwDvKvUbYVlRZF3H1zku5nv5/KK2xbCloMyKnT8kCdbPl3W7Op5gV4XgFGQ78oBVzr8aoF8tnp/AO6GeWezlbjfJ8UTB5ykZJ3DERCVXMss//zeXyFW/Afu3nb5v7ztK5VWIscHXh4iLHzjzBaHQeOTzKGf3gw9H+daqpyUIgAWSef0hQYhkLvomCVC5fUUY9P7aWixwjAMKB1Dr1muVMc2Gmlxw02r6eYeJgYuKHsUpwWmfWggtCyW3wNf6SJyCi6OpRtFiCJ2JWGX58PESmPbf9pCwfLv1W0221OhKVovscxnGsS1EiG5E/RVJpqDUxJREM/CY71zheynVCP5fAVUiYfAQEOaaJIK23nU4IDAOLy8uyoAut+oyRzmHzl+Jh/G8iCx1PTiRRt77ybBE3WxYWVnXIuayQ0XY4Sn4Uw3XYvbyVt381KDvqwAcajhCQ2qMWz6gMeWXs= - skip_existing: true - distributions: sdist bdist_wheel - on: - tags: true - repo: RedHatQE/wait_for diff --git a/setup.cfg b/setup.cfg index 9a2fbda..bbb1c8a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -15,6 +15,7 @@ classifier = Programming Language :: Python :: 3.5 Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 Topic :: Utilities keywords = setup