Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/CHEATSHEET.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ To make a release

* Double-check it all works, docs build, etc.

* Build your sdist and wheel: ``python setup.py sdist bdist_wheel``
* Build your sdist and wheel: ``python -m pep517.build --source --binary --out-dir dist/ .``

* Upload to PyPI: ``twine upload dist/*``

Expand Down
6 changes: 3 additions & 3 deletions {{cookiecutter.project_slug}}/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ fi

python -c "import sys, struct, ssl; print('#' * 70); print('python:', sys.version); print('version_info:', sys.version_info); print('bits:', struct.calcsize('P') * 8); print('openssl:', ssl.OPENSSL_VERSION, ssl.OPENSSL_VERSION_INFO); print('#' * 70)"

python -m pip install -U pip setuptools wheel
python -m pip install -U pip setuptools wheel pep517
python -m pip --version

python setup.py sdist --formats=zip
python -m pip install dist/*.zip
python -m pep517.build --source --out-dir dist/ .
python -m pip install dist/*.tar.gz

if [ "$CHECK_DOCS" = "1" ]; then
python -m pip install -r docs-requirements.txt
Expand Down
7 changes: 7 additions & 0 deletions {{cookiecutter.project_slug}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@ directory = "newsfragments"
underlines = ["-", "~", "^"]
# COOKIECUTTER-TRIO-TODO: fill in the URL below to point to your issue tracker:
issue_format = "`#{issue} <https://github.com/ACCOUNT/REPO/issues/{issue}>`__"

[build-system]
requires = [
"setuptools >= 50.0.3",
"wheel >= 0.35.1",
]
build-backend = "setuptools.build_meta"