ci: add pipeline #1
36
.woodpecker.yml
Normal file
36
.woodpecker.yml
Normal 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
|
@ -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"
|
||||
|
16
python_sponsorblock/_version.py
Normal file
16
python_sponsorblock/_version.py
Normal 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')
|
Loading…
Reference in New Issue
Block a user