Added gitlab action to upload to PyPi

This commit is contained in:
Roger Gonzalez 2024-03-03 18:02:31 -03:00
parent 5387c348a6
commit 5faf99bc3a
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6
2 changed files with 31 additions and 2 deletions

20
gitlab-ci.yml Normal file
View File

@ -0,0 +1,20 @@
image: python:latest
lint:
stage: test
before_script:
- pip install poetry
- poetry install --no-root
script:
- poetry run ruff check ./src
- poetry run ruff format --check ./src
deploy_to_pypi:
stage: deploy
only:
- master
before_script:
- pip install poetry
- poetry install --no-root
script:
- POETRY_PYPI_TOKEN_PYPI=$PYPI_PASSWORD poetry publish --build

View File

@ -1,13 +1,22 @@
[tool.poetry]
name = "subscleaner"
version = "0.1.0"
version = "0.1.1"
description = "Remove advertisements from subtitle files"
authors = ["Roger Gonzalez <roger@rogs.me>"]
license = "GPL-3.0-or-later"
# readme = "README.md"
readme = "README.md"
packages = [
{ include = "subscleaner", from = "src" },
]
homepage = "https://gitlab.com/rogs/subscleaner/"
repository = "https://gitlab.com/rogs/subscleaner/"
documentation = "https://gitlab.com/rogs/subscleaner/-/blob/master/README.md"
keywords = ["subtitles", "subs"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
]
[tool.poetry.dependencies]
python = "^3.9"