Compare commits

..

12 Commits

Author SHA1 Message Date
64c95aabfa Merge pull request 'ci: add pipeline' (#8) from ci/add-pipeline into experimental
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Reviewed-on: #8
2024-04-16 17:56:47 +00:00
329aa39271 ci: disable local version in config
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/manual/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
2024-04-16 10:39:15 -07:00
4367c2274d ci: change version format because pypi won't allow local versions
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/manual/woodpecker Pipeline failed
2024-04-16 10:30:06 -07:00
5e04c480bd docs: add readme status badge
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/manual/woodpecker Pipeline failed
2024-04-16 10:09:10 -07:00
eab19304e1 ci: make step names more clear
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-04-16 10:07:26 -07:00
d0fe0c3f86 ci: fix indentation
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/manual/woodpecker Pipeline failed
2024-04-16 10:02:16 -07:00
9dbe34de88 ci: publish to pypi
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/manual/woodpecker Pipeline failed
2024-04-16 10:01:15 -07:00
9783e3f24e ci: use new twine plugin
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/manual/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2024-04-15 13:30:31 -07:00
eb94a328c7 ci: fix secret names
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/manual/woodpecker Pipeline failed
2024-04-15 12:48:56 -07:00
2f4a9f9801 ci: remove unstable suffix from experimental and add stable suffix to tagged builds 2024-04-15 12:45:10 -07:00
92a03355c3 ci: add _version.py to gitignore 2024-04-15 12:42:57 -07:00
2f29ad2415 ci: add pipeline 2024-04-15 11:44:19 -07:00
6 changed files with 67 additions and 5 deletions

3
.gitignore vendored
View File

@ -18,3 +18,6 @@ venv
windows
.env
# setuptools_scm
_version.py

51
.woodpecker.yml Normal file
View File

@ -0,0 +1,51 @@
labels:
platform: linux/amd64
steps:
build-stable:
image: python
commands:
- sed -i 's/name = "music-kraken"/name = "music-kraken-stable"/' pyproject.toml
- 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:
- python -m pip install -r requirements-dev.txt
- python3 -m build
when:
- event: manual
- event: push
branch: experimental
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
- event: push
branch: experimental
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
- event: push
branch: experimental

View File

@ -1,5 +1,7 @@
# Music Kraken
[![Woodpecker CI Status](https://ci.elara.ws/api/badges/59/status.svg)](https://ci.elara.ws/repos/59)
<img src="assets/logo.svg" width=300 alt="music kraken logo"/>
- [Music Kraken](#music-kraken)

2
build
View File

@ -45,4 +45,4 @@ then
exit
fi
twine upload dist/music_kraken*
twine upload dist/music_kraken*

View File

@ -9,8 +9,6 @@ from rich.console import Console
from .utils.shared import DEBUG, DEBUG_LOGGING
from .utils.config import logging_settings, main_settings, read_config
__version__ = "1.15.0"
read_config()
console: Console = Console()

View File

@ -1,5 +1,5 @@
[build-system]
requires = ["hatchling", "hatch-requirements-txt" ]
requires = ["hatchling", "hatch-requirements-txt", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.build]
@ -15,7 +15,15 @@ packages = ["music_kraken"]
music-kraken = "music_kraken.__main__:cli"
[tool.hatch.version]
path = "music_kraken/__init__.py"
source = "vcs"
path = "music_kraken/_version.py"
fallback-version = "0.0.0"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
[tool.hatch.build.hooks.vcs]
version-file = "music_kraken/_version.py"
[project]
name = "music-kraken"