From 578444e6e55933f5c7a43e5db6c8390093cf84c6 Mon Sep 17 00:00:00 2001 From: Julian Rother <julian@jrother.eu> Date: Sat, 24 Jul 2021 00:28:48 +0200 Subject: [PATCH] Added pypi upload to .gitlab-ci.yml and updated description --- .gitlab-ci.yml | 3 ++- setup.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d47076d..2503efe 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,7 +52,8 @@ publish-pip: script: - pip install build twine - PACKAGE_VERSION="${CI_COMMIT_TAG#v}" python -m build - - python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/* + - TWINE_USERNAME="${GITLABPKGS_USERNAME}" TWINE_PASSWORD=="${GITLABPKGS_PASSWORD}" python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/* + - TWINE_USERNAME="${PYPI_USERNAME}" TWINE_PASSWORD=="${PYPI_PASSWORD}" python -m twine upload dist/* rules: - if: '$CI_COMMIT_TAG =~ /v[0-9]+[.][0-9]+[.][0-9]+.*/' diff --git a/setup.py b/setup.py index 3c83100..9d22c88 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setuptools.setup( version=os.environ.get('PACKAGE_VERSION', 'local'), author='Julian Rother', author_email='python-ldapserver@jrother.eu', - description='LDAP server request handler', + description='Library to implement special-purpose LDAP servers', long_description=long_description, long_description_content_type='text/markdown', url='https://git.cccv.de/uffd/python-ldapserver', -- GitLab