From 1382fc16a933588a2d6e062192f143cf8fb9db0d Mon Sep 17 00:00:00 2001 From: mamu Date: Wed, 15 May 2024 18:22:36 +0900 Subject: [PATCH] Add version file and do dynamic versioning --- optunahub-registry/version.py | 1 + pyproject.toml | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 optunahub-registry/version.py diff --git a/optunahub-registry/version.py b/optunahub-registry/version.py new file mode 100644 index 00000000..a6645841 --- /dev/null +++ b/optunahub-registry/version.py @@ -0,0 +1 @@ +__version__ = "0.1.0.dev" diff --git a/pyproject.toml b/pyproject.toml index 4deb29ee..c844902e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,16 +5,17 @@ build-backend = "setuptools.build_meta" [project] name = "optunahub-registry" description = "Registry for OptunaHub" -version = "0.0.2" readme = "README.md" license = {file = "LICENSE"} authors = [ {name = "Optuna team"} ] +requires-python = ">=3.8" dependencies = [ "mdutils", "python-frontmatter", ] +dynamic = ["version"] [project.optional-dependencies] checking = [ @@ -33,9 +34,18 @@ docs = [ # "optunahub", ] +[project.urls] +homepage = "TBD" +repository = "https://github.com/optuna/optunahub-registry" +documentation = "TBD" +bugtracker = "https://github.com/optuna/optunahub-registry/issues" + [tool.setuptools.packages.find] include = ["optunahub-registry*"] +[tool.setuptools.dynamic] +version = {attr = "optunahub-registry.version.__version__"} + [tool.ruff] line-length = 99