diff --git a/src/howard/CHANGELOG.md b/src/howard/CHANGELOG.md new file mode 100644 index 0000000..670b5d2 --- /dev/null +++ b/src/howard/CHANGELOG.md @@ -0,0 +1,18 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a +Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to +[Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [0.1.0-howard] - 2021-03-26 + +### Added + +- Draft realisation certificate issuer + +[unreleased]: https://github.com/openfun/marion/compare/v0.1.0-howard...master +[0.1.0-howard]: https://github.com/openfun/marion/compare/090add7...v0.1.0-howard diff --git a/src/howard/howard/__init__.py b/src/howard/howard/__init__.py index e69de29..d908344 100644 --- a/src/howard/howard/__init__.py +++ b/src/howard/howard/__init__.py @@ -0,0 +1,23 @@ +"""Howard, FUN documents.""" + +import importlib.metadata +from pathlib import Path + +from setuptools.config import read_configuration + + +def _get_version(): + """Get version from installed package with a fallback to the setup.cfg version + string. + + """ + + try: + return importlib.metadata.version("marion-howard") + except importlib.metadata.PackageNotFoundError: + return read_configuration(Path(__file__).parent / ".." / "setup.cfg")[ + "metadata" + ]["version"] + + +__version__ = _get_version() diff --git a/src/howard/setup.cfg b/src/howard/setup.cfg index cafb761..98c8b6c 100644 --- a/src/howard/setup.cfg +++ b/src/howard/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = marion-howard -version = 0.0.1 +version = 0.1.0 description = FUN documents for Marion, the documents factory long_description = file:README.md long_description_content_type = text/markdown @@ -22,7 +22,7 @@ classifiers = [options] include_package_data = True install_requires = - marion==0.0.1 + marion>=0.1.0 package_dir = =. packages = find: