ci: add pipeline

This commit is contained in:
Elara 2024-04-25 19:43:08 -07:00
parent 2080c21898
commit 03e094a497
3 changed files with 62 additions and 1 deletions

36
.woodpecker.yml Normal file
View File

@ -0,0 +1,36 @@
labels:
platform: linux/amd64
steps:
build:
image: python
commands:
- python -m pip install hatch
- python -m unittest
- hatch build
when:
- event: manual
- event: tag
publish-gitea:
image: gitea.elara.ws/music-kraken/plugin-twine
settings:
repository_url: "https://gitea.elara.ws/api/packages/music-kraken/pypi"
username:
from_secret: gitea_username
password:
from_secret: gitea_password
when:
- event: manual
- event: tag
publish-pypi:
image: gitea.elara.ws/music-kraken/plugin-twine
settings:
username:
from_secret: pypi_username
password:
from_secret: pypi_password
when:
- event: manual
- event: tag

View File

@ -12,7 +12,16 @@ include = ["python_sponsorblock/*.py", "python_sponsorblock/**/*.py" ]
packages = ["python_sponsorblock"]
[tool.hatch.version]
path = "python_sponsorblock/__about__.py"
source = "vcs"
path = "python_sponsorblock/_version.py"
fallback-version = "0.0.0"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
[tool.hatch.build.hooks.vcs]
version-file = "python_sponsorblock/_version.py"
[project]
name = "python-sponsorblock"

View File

@ -0,0 +1,16 @@
# file generated by setuptools_scm
# don't change, don't track in version control
TYPE_CHECKING = False
if TYPE_CHECKING:
from typing import Tuple, Union
VERSION_TUPLE = Tuple[Union[int, str], ...]
else:
VERSION_TUPLE = object
version: str
__version__: str
__version_tuple__: VERSION_TUPLE
version_tuple: VERSION_TUPLE
__version__ = version = '0.1.dev15'
__version_tuple__ = version_tuple = (0, 1, 'dev15')