mirror of
https://github.com/drone-plugins/drone-pypi.git
synced 2026-06-04 18:24:00 +08:00
merge and refactor into plugin repository
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
*.egg-info/
|
||||
build/
|
||||
dist/
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
A simple test module
|
||||
Test package for Drone 0.8+ Drone-pypi plugin
|
||||
Vendored
+7
-23
@@ -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",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user