1
0
Fork 0

add pypi publish pipeline to ci
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Massaki Archambault 2022-11-04 17:43:26 -04:00
parent 1d3d5e3926
commit a82f72e30f
3 changed files with 29 additions and 1 deletions

View File

@ -69,4 +69,23 @@ 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

View File

@ -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]

View File

@ -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',
) )