Skip to content

Commit

Permalink
Switch from the deprecated distutils (removed in python 3.12) to setu…
Browse files Browse the repository at this point in the history
…ptools and the build command
  • Loading branch information
mwerlen committed Mar 11, 2024
1 parent 96a782e commit 1cd895b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- run: python -m pip install --upgrade pip
- run: python -m pip install flake8 pytest
- run: python -m pip install flake8 pytest build
- run: python -m pytest -v
- run: flake8 .
- run: python setup.py sdist
- run: python -m build --sdist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v2
- run: python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import os
import re
from distutils.core import setup
from setuptools import setup

dirname = os.path.dirname(os.path.abspath(__file__))
src = open(os.path.join(dirname, '{}.py'.format(__doc__))).read()
Expand Down

0 comments on commit 1cd895b

Please sign in to comment.