diff --git a/.drone.yml b/.drone.yml index 207113e..653b632 100644 --- a/.drone.yml +++ b/.drone.yml @@ -69,4 +69,23 @@ steps: depends_on: - build-arm64 - - build-amd64 \ No newline at end of file + - build-amd64 +--- +kind: pipeline +type: kubernetes +name: publish-pypi + +trigger: + branch: + - master + event: + - tag + +steps: +- name: publish pypi + image: plugins/pypi + settings: + username: + from_secret: pypi_username + password: + from_secret: pypi_username \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 781e939..ed55387 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,11 @@ [metadata] name = ecommerce-exporter +description = ecommerce-exporter is a prometheus exporter that export the price of products in e-commerce site as prometheus metrics. author = badjware author_email = marchambault.badjware.dev +licence = MIT Licence +classifers = + Programming Language :: Python platform = any [options] diff --git a/setup.py b/setup.py index ec1a7fe..3480e0b 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,12 @@ from setuptools import setup from setuptools import find_packages +with open('README.md') as f: + readme = f.read() + setup( use_scm_version=True, packages=find_packages(), + long_description=readme, + long_description_content_type='text/markdown', )