Skip to content
Snippets Groups Projects
Piotr Maslanka's avatar
c807dd06

your_project

build status coverage report

This is a generic scaffold for Python projects that use:

  • GitLab CI for builds/tests/deploys
  • coverage.py for test coverage
  • nose for unit tests
  • Vagrant for environment
  • setuptools for packaging
  • git for version control

How to use

  1. git clone http://git.dms-serwis.com.pl/henrietta/py-scaffold.git
  2. delete .git directory
  3. Rename your_project_source to match your project
  4. adjust setup.py, and optionally setup.cfg
  5. adjust .coveragerc
  6. adjust license
  7. adjust or delete contribution guide
  8. adjust or delete change log
  9. adjust Vagrantfile, or remove it
  10. adjust MANIFEST.in if you have data files
  11. adjust docs
  12. adjust gitlab-ci.yml, especially if your tests require a Vagrant environment
  13. Set up a repository on GitLab
  14. Ensure you have master permission on this repository
  15. Set ^TOTAL\s+\d+\s+\d+\s+\d+\s+\d+\s+(\d+)%$ in Settings>CI/CD Pipelines>Test coverage parsing for GitLab to display test coverage data
  16. git init
  17. Add suitable remotes, commit the data, push to repo
  18. Done!