Skip to content

Commit

Permalink
Release: Add versioningit
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Aug 23, 2023
1 parent aaaa613 commit baf9e05
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@

# Derived from https://peps.python.org/pep-0621/

[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=42", # At least v42 of setuptools required.
"versioningit",
]

[tool.versioningit.vcs]
method = "git"
default-tag = "0.0.0"

[project]
name = "aika"
version = "0.0.0"
description = "Date- and time-range parsing utilities for multiple languages"
readme = "README.md"
requires-python = ">=3.8"
Expand Down Expand Up @@ -52,6 +62,10 @@ dependencies = [
"DateRangeParser<1.4",
]

dynamic = [
"version",
]

[project.optional-dependencies]
develop = [
"black<24",
Expand Down Expand Up @@ -195,7 +209,6 @@ build = { cmd = "python -m build" }
check = ["lint", "test"]

release = [
{ cmd = "minibump bump --relax patch" },
{ cmd = "python -m build" },
"build",
{ cmd = "twine upload --skip-existing dist/*.tar.gz dist/*.whl" },
]

0 comments on commit baf9e05

Please sign in to comment.