Python Starter Template
This template was inspired by pypa/sampleproject.
See setup.py
Check the package classifier here: PyPI Classifiers
Reference: Building and Distributing Packages with Setuptools
See python.yml
Check pytest --cov=package_name --cov-report=xml
in line 81, and fix it to your package name.
Implemented Jobs:
- Lint with Flake8
- Test with pytest
- Code Coverage with pytest-cov and Codecov
See Shields.io
Package Version:
[](https://pypi.org/project/package_name/)
Required Python Version:
[](https://www.python.org/)
GitHub Workflow Status:
[](https://github.com/author_name/package_name/actions)
Code Coverage with Codecov:
[](https://codecov.io/gh/author_name/package_name)
Package Downloads:
[](https://pypi.org/project/package_name/)
Package License:
[](./LICENSE)
Run pytest
$ pytest
Code Coverage with pytest-cov
$ pytest --cov=package_name
If you need the output in html format:
$ pytest --cov=package_name --cov-report=html
pip freeze > requirements.txt
Delete the original LICENSE file or change it to your license file.
$ pip install --user --upgrade setuptools wheel
$ python ./setup.py sdist bdist_wheel
$ pip install --user --upgrade twine
$ twine check dist/*
Update Package to PyPI
$ twine upload dist/*
If you want to upload the package to Test PyPI, use --repository testpypi
option.
Reference: Packaging Python Projects
Copyright (c) 2020 Seungjae Park
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Python Starter is licensed under the MIT License.