From 5faf99bc3a0c4064017db62b7d8e33f7b9a4feb9 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sun, 3 Mar 2024 18:02:31 -0300 Subject: Added gitlab action to upload to PyPi --- gitlab-ci.yml | 20 ++++++++++++++++++++ pyproject.toml | 13 +++++++++++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 gitlab-ci.yml diff --git a/gitlab-ci.yml b/gitlab-ci.yml new file mode 100644 index 0000000..350b74e --- /dev/null +++ b/gitlab-ci.yml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 6cbbffc..bb14682 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] 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" -- cgit v1.2.3