Thanks for using cookiecutter-trio! This is your project now; you can customize it however you like. Here's some reminders of things you might want to do to get started:
- Check this into source control (
git init .; git add .; git commit -m "Initial commit") - Add a CODE_OF_CONDUCT.md
- Add a CONTRIBUTING.md
- Search the source tree for COOKIECUTTER-TRIO-TODO to find other places to fill in.
{%- if cookiecutter._license_info[cookiecutter.license].slug == "other" %}
- Since you selected an "other" license: remove LICENSE-IS-MISSING and
add a LICENSE file, and update
setup.pyandREADME.rstto tell people your license choice.
{%- endif %}
Enable Read the Docs. (Note: this project contains a
.readthedocs.ymlfile that should be enough to get things working.)Set up continuous integration: Currently, this project is set up to test on Linux, MacOS, and Windows using Github Actions, and to test some additional Python versions on Linux (PyPy and nightly) using Travis.
If that's what you want, then go to Travis and Github Actions and enable testing for your repo.
If that's not what you want, then you can trim the list by modifying (or deleting)
.travis.yml,.github/workflows/ci.yml,ci.sh.Enable Codecov for your repo.
If you want to use static typing (mypy) in your project:
- Update
install_requiresinsetup.pyto include"trio-typing"(assuming you use it). - Uncomment the dependency on
mypyintest-requirements.txt. - Uncomment the mypy invocation in
check.sh. - Create an empty
{{cookiecutter.package_name}}/py.typedfile, and add"include {{cookiecutter.package_name}}/py.typed"toMANIFEST.in.
- Update
File bugs or pull requests on cookiecutter-trio reporting any problems or awkwardness you ran into (no matter how small!)
Delete this checklist once it's no longer useful
- Install requirements:
pip install -r test-requirements.txt(possibly in a virtualenv) - Actually run the tests:
pytest {{cookiecutter.package_name}}
- Show what changes black wants to make:
black --diff setup.py {{cookiecutter.package_name}} - Apply all changes directly to the source tree:
black setup.py {{cookiecutter.package_name}}
- Update the version in
{{cookiecutter.package_name}}/_version.py - Run
towncrierto collect your release notes. - Review your release notes.
- Check everything in.
- Double-check it all works, docs build, etc.
- Build your sdist and wheel:
python -m pep517.build --source --binary --out-dir dist/ . - Upload to PyPI:
twine upload dist/* - Use
git tagto tag your version. - Don't forget to
git push --tags.