Added gitlab action to upload to PyPi
This commit is contained in:
parent
5387c348a6
commit
5faf99bc3a
20
gitlab-ci.yml
Normal file
20
gitlab-ci.yml
Normal 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
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user