Skip to content

ImprolabFIT/Improutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Improutils

This repository contains Python library with useful helper functions for Machine vision and Image processing (BI-SVZ) coursework taught at FIT CTU. For more details, see main course page.

Deploy a new version

This repository uses GitLab CI/CD Pipelines to deploy improutils package either to production or test PyPI.

Deploy to production PyPI

  • Update version.py file with a new version number with respect to semantic versioning rules
  • Commit your local changes
    • git commit -m "Add awesome AI feature"
  • Create a tagged version based on version.py
    • git tag -a $(python3 setup.py --version)
  • Push tag to origin
    • git push --tags
  • Wait for the package to be deployed and then check new version at PyPI

Deploy to test PyPI

Almost same as above, but the push tag step must be skipped. Testing version is available at test PyPI.

Tests

You must run the tests from the improutils_package directory. An example command for running the test may be as follows:

python tests\test_preprocessing.py

Note: running the test from the tests directory itself will result in errors

Documentation

This project uses Sphinx for documentation. The documentation is available on Read the Docs.

Building documentation locally

pip install sphinx sphinx_rtd_theme
cd docs
make html

Browsing the documentation locally:

python3 -m http.server -d docs/html