diff options
-rw-r--r-- | .github/PULL_REQUEST_TEMPLATE/release.md | 4 | ||||
-rw-r--r-- | .github/workflows/ci.yml | 11 | ||||
-rwxr-xr-x | ci/deploy.sh | 4 |
3 files changed, 6 insertions, 13 deletions
diff --git a/.github/PULL_REQUEST_TEMPLATE/release.md b/.github/PULL_REQUEST_TEMPLATE/release.md index 64fdc674..6225f551 100644 --- a/.github/PULL_REQUEST_TEMPLATE/release.md +++ b/.github/PULL_REQUEST_TEMPLATE/release.md @@ -18,8 +18,8 @@ python -m venv source venv/bin/activate python -m pip install -U pip - python -m pip install -U twine setuptools wheel - python setup.py sdist bdist_wheel + python -m pip install -U twine setuptools wheel build + python -m build twine check dist/* # Inspect the output to make sure it looks right diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e77d577d..6399f52f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,8 +21,8 @@ jobs: cache: pip - name: Check packages run: | - python3 -m pip install -U pip setuptools wheel twine rstcheck; - python3 setup.py sdist bdist_wheel; + python3 -m pip install -U pip setuptools wheel build twine rstcheck + python3 -m build rstcheck README.rst CHANGES.rst python3 -m twine check dist/* test: @@ -72,13 +72,6 @@ jobs: python-version: ${{ matrix.python-version }} cache: pip - - name: Set Up Python - ${{ matrix.python-version }} - uses: actions/setup-python@v2 - if: "!endsWith(matrix.python-version, '-dev')" - with: - python-version: ${{ matrix.python-version }} - cache: pip - - name: Set Up Python (Development version) - ${{ matrix.python-version }} uses: deadsnakes/action@v2.0.2 if: endsWith(matrix.python-version, '-dev') diff --git a/ci/deploy.sh b/ci/deploy.sh index 503f0723..322ca26f 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -2,6 +2,6 @@ set -exo pipefail -python3 -m pip install --upgrade twine wheel -python3 setup.py sdist bdist_wheel +python3 -m pip install --upgrade twine wheel build +python3 -m build python3 -m twine upload dist/* -u $PYPI_USERNAME -p $PYPI_PASSWORD --skip-existing |