Use hatch dynamic version so that we can increment before test uploads
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
IamTheFij 2023-10-27 14:25:02 -07:00
parent 5ba06140dc
commit ff803dbc31
3 changed files with 8 additions and 1 deletions

View File

@ -50,6 +50,8 @@ upload: verify-tag-version build
# Uses twine to upload to test pypi # Uses twine to upload to test pypi
.PHONY: upload-test .PHONY: upload-test
upload-test: build upload-test: build
# Bump version to a post version based on num of commits since last tag to prevent overwriting
$(ENV)/bin/hatch version $(shell git describe --tags | sed 's/-[0-9a-z]*$$//')
$(ENV)/bin/hatch publish --repo test $(ENV)/bin/hatch publish --repo test
# Cleans all build, runtime, and test artifacts # Cleans all build, runtime, and test artifacts

View File

@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project] [project]
name = "release-gitter" name = "release-gitter"
version = "2.1.1" dynamic = ["version"]
description = "Easily download releases from sites like Github and Gitea" description = "Easily download releases from sites like Github and Gitea"
readme = "README.md" readme = "README.md"
license = "MIT" license = "MIT"
@ -34,6 +34,9 @@ release-gitter = "release_gitter:main"
[project.urls] [project.urls]
Homepage = "https://git.iamthefij.com/iamthefij/release-gitter" Homepage = "https://git.iamthefij.com/iamthefij/release-gitter"
[tool.hatch.version]
path = "release_gitter.py"
[tool.hatch.build] [tool.hatch.build]
include = ["release_gitter.py", "pseudo_builder.py"] include = ["release_gitter.py", "pseudo_builder.py"]

View File

@ -18,6 +18,8 @@ from zipfile import ZipFile
import requests import requests
__version__ = "2.1.1"
class UnsupportedContentTypeError(ValueError): class UnsupportedContentTypeError(ValueError):
pass pass