Closed akaszynski closed 2 years ago
Thanks for catching this
Oh, I wasn't even aware we were not using single source versioning... The question is what is your preference? I use setuptools_scm
on most of my things, I am happy to implement that. However, I am fine with anything else if you prefer other tools.
(setuptools_scm
having the benefit of easily adding the git-hash for non-released version, so that a version is always unique - but then it has a little initial overhead to implement.)
(
setuptools_scm
having the benefit of easily adding the git-hash for non-released version, so that a version is always unique - but then it has a little initial overhead to implement.)
Meh, I'm a fan of:
try:
import importlib.metadata as importlib_metadata
except ModuleNotFoundError: # pragma: no cover
import importlib_metadata
__version__ = importlib_metadata.version(__name__.replace(".", "-"))
I also think moving over to pyproject.toml
would be fine for this project, but we don't need to change it now.
That is fine by me @akaszynski - again, scooby is simple enough so we keep it as simple as possible. I prefer in more complicated packages to have the git hash in the dev-versions, but for scooby that is really not necessary, so I am fine with your suggestion.
That is fine by me @akaszynski - again, scooby is simple enough so we keep it as simple as possible. I prefer in more complicated packages to have the git hash in the dev-versions, but for scooby that is really not necessary, so I am fine with your suggestion.
Feel free to implement! Let's keep it simple, and actually, single source versioning will make things even easier to maintain.
Let's keep it simple, and actually, single source versioning will make things even easier to maintain.
agreed
Actually, @akaszynski , single source versioning already, sort of, is in place through bumpversion, see https://github.com/banesullivan/scooby/blob/main/.bumpversion.cfg#L1-L8 - you just didn't use it.
In this sense, @banesullivan, setuptools_scm
would simply replace the build requirement bumpversion.
Ideally we would use single source versioning. That's for another PR...