Skip to content

Commit

Permalink
Merge pull request #14 from optuna/refactor-pyproject-toml
Browse files Browse the repository at this point in the history
Add version file and do dynamic versioning
  • Loading branch information
HideakiImamura authored May 15, 2024
2 parents 16d3534 + 1382fc1 commit 03bb719
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions optunahub-registry/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.1.0.dev"
12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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

Expand Down

0 comments on commit 03bb719

Please sign in to comment.