diff --git a/.gitignore b/.gitignore index 5d381cc..708cad3 100644 --- a/.gitignore +++ b/.gitignore @@ -160,3 +160,5 @@ cython_debug/ # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ +# setuptools-scm +_version.py diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..207d10c --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,36 @@ +labels: + platform: linux/amd64 + +steps: + build: + image: python + commands: + - python -m pip install hatch requests + - 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 diff --git a/README.md b/README.md index 3838f2e..280d7d2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Python Sponsorblock +[![status-badge](https://ci.elara.ws/api/badges/61/status.svg)](https://ci.elara.ws/repos/61) + python-sponsorblock logo This is a wrapper for the sponsorblock api, enabling you to get the timestamps of sponsor segments from Youtube videos. @@ -8,7 +10,7 @@ This is a wrapper for the sponsorblock api, enabling you to get the timestamps o ```bash # using this gitea repository (recommended) -pip install --index-url https://gitea.elara.ws/api/packages/music-kraken/pypi/simple/ music-kraken +pip install --index-url https://gitea.elara.ws/api/packages/music-kraken/pypi/simple/ python-sponsorblock ``` ```bash diff --git a/pyproject.toml b/pyproject.toml index 8fb4f01..40495b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/python_sponsorblock/__about__.py b/python_sponsorblock/__about__.py deleted file mode 100644 index c57bfd5..0000000 --- a/python_sponsorblock/__about__.py +++ /dev/null @@ -1 +0,0 @@ -__version__ = '0.0.0'