merge and refactor into plugin repository

This commit is contained in:
Robert Kaussow
2018-12-17 11:10:58 +01:00
parent 556af40865
commit 0b3c5e7bf2
45 changed files with 6819 additions and 555 deletions
-3
View File
@@ -1,3 +0,0 @@
*.egg-info/
build/
dist/
+1 -1
View File
@@ -1 +1 @@
A simple test module
Test package for Drone 0.8+ Drone-pypi plugin
+7 -23
View File
@@ -1,28 +1,12 @@
from setuptools import setup
import subprocess
def get_version():
try:
git = subprocess.Popen(
["git", "describe", "--long"],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
except Exception:
return "0.0.0"
val = git.communicate()[0]
if git.returncode != 0:
return "0.0.0"
l = val.strip().split("-")
return l[0] + "." + l[1]
setup(
name="drone-pypi",
version=get_version(),
description="Module for testing drone-pypi.",
url="http://github.com/drone-plugins/drone-pypi",
packages=["drone_pypi"],
maintainer="Drone Contributors",
maintainer_email="support@drone.io",
name='drone-pypi-testbuild',
version='0.1.0',
description='Testing drone-pypi publishes, no other purpose.',
url='https://github.com/xoxys/drone-pypi',
packages=['testdata/drone_pypi_test'],
maintainer='Robert Kaussow',
maintainer_email="xoxys@rknet.org",
)