diff --git a/.devcontainer/postCreateCommand.sh b/.devcontainer/postCreateCommand.sh index 8a0bdd82..1105ebaf 100755 --- a/.devcontainer/postCreateCommand.sh +++ b/.devcontainer/postCreateCommand.sh @@ -1,4 +1,5 @@ #! /usr/bin/env bash +python -m pip install poetry-dynamic-versioning poetry config virtualenvs.in-project true --local poetry install --with cell_locations,collate,dev poetry run pre-commit install --install-hooks diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..e69de29b diff --git a/CITATION.cff b/CITATION.cff index fb6ee350..f95ae1d4 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -66,6 +66,7 @@ authors: given-names: Gregory P. orcid: https://orcid.org/0000-0002-0503-9348 title: "Reproducible processing of image-based profiling representations with Pycytominer" -version: "0.3.0" +# This version is updated using `cz bump` command +version: "0.2.0" license: BSD 3-Clause License repository-code: "https://github.com/cytomining/pycytominer" diff --git a/pycytominer/__about__.py b/pycytominer/__about__.py index 94e2242a..c76a4b74 100644 --- a/pycytominer/__about__.py +++ b/pycytominer/__about__.py @@ -1,4 +1,6 @@ __project__ = "pycytominer" -__version__ = "0.2.0" +# These version placeholders are updated during build by poetry-dynamic-versioning +__version__ = "0.0.0" +__version_tuple__ = (0, 0, 0) __license__ = "BSD 3-Clause License" __author__ = "Pycytominer Contributors" diff --git a/pyproject.toml b/pyproject.toml index 7a67ce35..cea4afcc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,7 @@ [tool.poetry] name = "pycytominer" -version = "0.3.0" +# This version is a placeholder updated during build by poetry-dynamic-versioning +version = "0.0.0" description = "Python package for processing image-based profiling data" authors = [ "Erik Serrano", @@ -80,9 +81,25 @@ furo = "^2023.9.10" mock = "^5.1.0" autodoc = "^0.5.0" -[build-system] -requires = ["poetry-core"] -build-backend = "poetry.core.masonry.api" +[tool.poetry-dynamic-versioning] +enable = true +style = "pep440" +vcs = "git" + +[tool.poetry-dynamic-versioning.substitution] +files = ["pycytominer/__about__.py"] + +[tool.commitizen] +# This version is used for changelog tracking and is updated using `cz bump` +version = "0.2.0" +name = "cz_conventional_commits" +tag_format = "v$version" +version_scheme = "pep440" +version_provider = "commitizen" +update_changelog_on_bump = true +version_files = [ + "CITATION.cff" +] [tool.black] line-length = 88 @@ -90,3 +107,7 @@ target-version = ['py39'] [tool.pytest.ini_options] testpaths = "tests" + +[build-system] +requires = ["poetry-core>=1.7.0", "poetry-dynamic-versioning>=1.1.0"] +build-backend = "poetry_dynamic_versioning.backend"