Exercises
Now that you have reached the end of the book, there are many things to try, of course. You can build and publish your own applications and libraries, or extend existing libraries and applications.
While trying out the examples in this chapter, be careful not to accidentally publish packages to PyPI if that was not your intention. It just takes a single twine
command to accidentally register and upload a package, and PyPI is already too crowded with packages that do nothing useful.
For some practical exercises:
- Create a
setuptools
command to bump the version in your package - Extend the version bumping command by interactively asking for a major, minor, or patch upgrade
- Try and convert existing projects from
setup.py
to apyproject.toml
structure
Example answers for these exercises can be found on GitHub: https://github.com/mastering-python/exercises. You are encouraged to submit your own solutions and learn about alternative...