Skip to content

Commit

Permalink
dynamic version
Browse files Browse the repository at this point in the history
  • Loading branch information
lesnik512 committed Aug 31, 2024
1 parent 3f1ac50 commit 98dff38
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 26 deletions.
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ tasks:
publish:
cmds:
- rm -rf dist/*
- uvx --from build pyproject-build --installer uv
- uv tool run --from build python -m build --installer uv
- uv tool run twine check dist/*
- uv tool run twine upload dist/* --username __token__ --password $PYPI_TOKEN
30 changes: 20 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,34 +1,48 @@
[project]
name = "fast-version"
version = "1.3.1"
description = "Fastapi versioning package with accept header"
authors = [
{ email = "[email protected]" },
{ name = "Artur Shiriev"}
]
readme = "README.md"
requires-python = ">=3.10,<4"
homepage = "https://github.com/modern-python/fast-version"
license = "MIT"
keywords = ["fastapi", "versioning", "accept-header"]
classifiers = [
"Development Status :: 4 - Beta",
"Natural Language :: English",
"Programming Language :: Python :: Implementation :: CPython",
"Typing :: Typed",
]
dynamic = ["version"]
dependencies = [
"fastapi>=0.100",
]
packages = [
{ include = "fast_version" },
]

[project.optional-dependencies]
test = [
[project.urls]
repository = "https://github.com/modern-python/fast-version"

[tool.uv]
dev-dependencies = [
"httpx",
"pytest",
"pytest-cov",
"pytest-asyncio",
]
lint = [
"ruff",
"mypy",
]

[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[tool.hatch.version]
source = "vcs"

[tool.mypy]
python_version = "3.10"
strict = true
Expand Down Expand Up @@ -57,7 +71,3 @@ isort.no-lines-before = ["standard-library", "local-folder"]
addopts = "--cov=. --cov-report term-missing"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
30 changes: 15 additions & 15 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 98dff38

Please sign in to comment.