-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (33 loc) · 1.01 KB
/
setup.py
File metadata and controls
36 lines (33 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
"""
Installer for ci-yml
"""
import subprocess
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
def git_version():
try:
return subprocess.check_output('git describe --always --tags | cut -d \'-\' -f 1-2', shell=True).replace('-', '.').strip()
except:
return "0.3"
setup(
name='ci-yml',
description='A .ci.yml parser for Gitlab-CI',
long_description=open('README.rst').read(),
version=git_version(),
author='Claudio Mignanti',
author_email='c.mignanti[at]gmail[dot]com',
url='https://github.com/claudyus/ci-yml',
packages=['ci-yml'],
scripts=['bin/ci-yml'],
install_requires=['pyyaml'],
include_package_data=True,
download_url='https://github.com/claudyus/ci-yml/tarball/{}'.format(git_version()),
# extras_require={
# 'plugins': open('extras_requirements.txt').readlines(),
# },
license='MIT'
)