add pypi publish pipeline to ci
This commit is contained in:
parent
1d3d5e3926
commit
a82f72e30f
19
.drone.yml
19
.drone.yml
|
@ -70,3 +70,22 @@ steps:
|
||||||
depends_on:
|
depends_on:
|
||||||
- build-arm64
|
- build-arm64
|
||||||
- build-amd64
|
- 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
|
|
@ -1,7 +1,11 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
name = ecommerce-exporter
|
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 = badjware
|
||||||
author_email = marchambault.badjware.dev
|
author_email = marchambault.badjware.dev
|
||||||
|
licence = MIT Licence
|
||||||
|
classifers =
|
||||||
|
Programming Language :: Python
|
||||||
platform = any
|
platform = any
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
|
|
5
setup.py
5
setup.py
|
@ -1,7 +1,12 @@
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
from setuptools import find_packages
|
from setuptools import find_packages
|
||||||
|
|
||||||
|
with open('README.md') as f:
|
||||||
|
readme = f.read()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
use_scm_version=True,
|
use_scm_version=True,
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
|
long_description=readme,
|
||||||
|
long_description_content_type='text/markdown',
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue