opencv / open_vision_capsules

A set of libraries for encapsulating smart vision algorithms
Other
130 stars 48 forks source link

Replace setuptools_scm with our own solution #12

Closed velovix closed 4 years ago

velovix commented 4 years ago

Unfortunately, setuptools_scm can't work with repositories that have multiple packages right now. Relevant issue: https://github.com/pypa/setuptools_scm/issues/357

Instead, we'll use a workflow that pulls the semver from each package's setup.py with a "dev{revision}" suffix. The revision number is retrieved from git describe --tags using the same process that setuptools_scm uses. When a commit has a tag associated with it, there will be no "dev{revision}" suffix applied.

This means we need to remember to increment the setup.py version number after each full release. If someone forgets to do this, pre-releases will be made for the previous version. Not ideal, but it won't break the existing stable release.