diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f96b7e4..cb60226 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,11 +19,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install build twine - name: Build and publish env: TWINE_USERNAME: "__token__" TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} run: | - python setup.py sdist bdist_wheel + python -m build --outdir dist . twine upload dist/* diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2ec0fb4..59afca1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,7 +5,7 @@ To create a development environment and install the development dependencies, ru ```bash python3 -m venv venv . venv/bin/activate -pip install --upgrade pip setuptools +pip install --upgrade pip pip install '.[dev]' pre-commit install --install-hooks ``` diff --git a/pyproject.toml b/pyproject.toml index 4112bd1..0745f79 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,7 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + [tool.black] line-length = 88 target-version = ['py36', 'py37', 'py38', 'py39', 'py310', 'py310']