Skip to content

Commit 98dff38

Browse files
committed
dynamic version
1 parent 3f1ac50 commit 98dff38

File tree

3 files changed

+36
-26
lines changed

3 files changed

+36
-26
lines changed

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ tasks:
3333
publish:
3434
cmds:
3535
- rm -rf dist/*
36-
- uvx --from build pyproject-build --installer uv
36+
- uv tool run --from build python -m build --installer uv
3737
- uv tool run twine check dist/*
3838
- uv tool run twine upload dist/* --username __token__ --password $PYPI_TOKEN

pyproject.toml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,48 @@
11
[project]
22
name = "fast-version"
3-
version = "1.3.1"
43
description = "Fastapi versioning package with accept header"
54
authors = [
65
{ email = "me@shiriev.ru" },
76
{ name = "Artur Shiriev"}
87
]
98
readme = "README.md"
109
requires-python = ">=3.10,<4"
11-
homepage = "https://github.com/modern-python/fast-version"
1210
license = "MIT"
11+
keywords = ["fastapi", "versioning", "accept-header"]
12+
classifiers = [
13+
"Development Status :: 4 - Beta",
14+
"Natural Language :: English",
15+
"Programming Language :: Python :: Implementation :: CPython",
16+
"Typing :: Typed",
17+
]
18+
dynamic = ["version"]
1319
dependencies = [
1420
"fastapi>=0.100",
1521
]
1622
packages = [
1723
{ include = "fast_version" },
1824
]
1925

20-
[project.optional-dependencies]
21-
test = [
26+
[project.urls]
27+
repository = "https://github.com/modern-python/fast-version"
28+
29+
[tool.uv]
30+
dev-dependencies = [
2231
"httpx",
2332
"pytest",
2433
"pytest-cov",
2534
"pytest-asyncio",
26-
]
27-
lint = [
2835
"ruff",
2936
"mypy",
3037
]
3138

39+
[build-system]
40+
requires = ["hatchling", "hatch-vcs"]
41+
build-backend = "hatchling.build"
42+
43+
[tool.hatch.version]
44+
source = "vcs"
45+
3246
[tool.mypy]
3347
python_version = "3.10"
3448
strict = true
@@ -57,7 +71,3 @@ isort.no-lines-before = ["standard-library", "local-folder"]
5771
addopts = "--cov=. --cov-report term-missing"
5872
asyncio_mode = "auto"
5973
asyncio_default_fixture_loop_scope = "function"
60-
61-
[build-system]
62-
requires = ["hatchling"]
63-
build-backend = "hatchling.build"

uv.lock

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)