ci: add pipeline
This commit is contained in:
parent
92495f73fd
commit
2f29ad2415
39
.woodpecker.yml
Normal file
39
.woodpecker.yml
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
labels:
|
||||||
|
platform: linux/amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
build:
|
||||||
|
image: python
|
||||||
|
commands:
|
||||||
|
- python -m pip install -r requirements-dev.txt
|
||||||
|
- python3 -m build
|
||||||
|
environment:
|
||||||
|
- SETUPTOOLS_SCM_PRETEND_VERSION=${CI_COMMIT_TAG}
|
||||||
|
when:
|
||||||
|
- event: tag
|
||||||
|
|
||||||
|
build-dev:
|
||||||
|
image: python
|
||||||
|
commands:
|
||||||
|
- sed -i 's/name = "music-kraken"/name = "music-kraken-unstable"/' pyproject.toml
|
||||||
|
- python -m pip install -r requirements-dev.txt
|
||||||
|
- python3 -m build
|
||||||
|
when:
|
||||||
|
- event: manual
|
||||||
|
- event: push
|
||||||
|
branch: experimental
|
||||||
|
|
||||||
|
publish-gitea:
|
||||||
|
image: plugins/pypi
|
||||||
|
settings:
|
||||||
|
skip_build: true
|
||||||
|
repository: "https://gitea.elara.ws/api/packages/music-kraken/pypi"
|
||||||
|
username:
|
||||||
|
from_secret: gitea-username
|
||||||
|
password:
|
||||||
|
from_secret: gitea-password
|
||||||
|
when:
|
||||||
|
- event: manual
|
||||||
|
- event: tag
|
||||||
|
- event: push
|
||||||
|
branch: experimental
|
2
build
2
build
@ -45,4 +45,4 @@ then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
twine upload dist/music_kraken*
|
twine upload dist/music_kraken*
|
||||||
|
@ -9,8 +9,6 @@ from rich.console import Console
|
|||||||
from .utils.shared import DEBUG, DEBUG_LOGGING
|
from .utils.shared import DEBUG, DEBUG_LOGGING
|
||||||
from .utils.config import logging_settings, main_settings, read_config
|
from .utils.config import logging_settings, main_settings, read_config
|
||||||
|
|
||||||
__version__ = "1.15.0"
|
|
||||||
|
|
||||||
read_config()
|
read_config()
|
||||||
|
|
||||||
console: Console = Console()
|
console: Console = Console()
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = ["hatchling", "hatch-requirements-txt" ]
|
requires = ["hatchling", "hatch-requirements-txt", "hatch-vcs"]
|
||||||
build-backend = "hatchling.build"
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
[tool.hatch.build]
|
[tool.hatch.build]
|
||||||
@ -15,7 +15,12 @@ packages = ["music_kraken"]
|
|||||||
music-kraken = "music_kraken.__main__:cli"
|
music-kraken = "music_kraken.__main__:cli"
|
||||||
|
|
||||||
[tool.hatch.version]
|
[tool.hatch.version]
|
||||||
path = "music_kraken/__init__.py"
|
source = "vcs"
|
||||||
|
path = "music_kraken/_version.py"
|
||||||
|
fallback-version = "0.0.0"
|
||||||
|
|
||||||
|
[tool.hatch.build.hooks.vcs]
|
||||||
|
version-file = "music_kraken/_version.py"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "music-kraken"
|
name = "music-kraken"
|
||||||
|
Loading…
Reference in New Issue
Block a user