diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..3b89f89 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,36 @@ +--- +name: PyPI Release + +on: + release: + types: + - created + +jobs: + release: + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: [3.8, 3.9, 3.10] # Add or remove Python versions as needed + + steps: + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Check out code + uses: actions/checkout@v2 + + - name: Install dependencies + run: pip install -r requirements.txt + + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + pip install twine + twine upload dist/* diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f3d7ce4..fd76e42 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: ["3.7", "3.8", "3.9"] + python: ["3.8", "3.9", "3.10"] steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 diff --git a/setup.cfg b/setup.cfg index f132b4b..dbda075 100644 --- a/setup.cfg +++ b/setup.cfg @@ -14,9 +14,9 @@ classifier = Operating System :: POSIX Programming Language :: Python Programming Language :: Python :: 3 - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 keywords = remote resource