Demonstrates how to create a tested Python package using the latest Python testing and linting tooling
Example Python project that demonstrates how to create a tested Python package using the latest
Python testing and linting tooling. The project contains a fact
package that provides a simple
implementation of the factorial algorithm (fact.lib
)
and a command line interface (fact.cli
).
Requirements
Python 3.6+.
Note
Because Python 2.7 support ended January 1, 2020, new projects
should consider supporting Python 3 only, which is simpler than trying to support both. As a
result, support for Python 2.7 in this example project has been dropped.
Windows Support
Summary: On Windows, use py
instead of python3
for many