-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
49 lines (39 loc) · 1.32 KB
/
setup.py
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
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from subprocess import check_output
def get_dependencies():
"""Reads the dependencies from the requirements file."""
with open('requirements.txt', 'r') as d:
dependencies = d.read()
return dependencies
def get_version():
"""Returns the version as a relative commit to a tag and version"""
return check_output(['git', 'describe', '--tags']).decode('utf-8')
def get_long_description():
with open('README.md', 'r') as f:
text = f.read()
return text
setup(
name="cmadison",
version=get_version(),
author="Billy Olsen",
author_email="[email protected]",
description=("A wrapper for rmadison including basic support for "
"Ubuntu Cloud Archive"),
long_description=get_long_description(),
long_description_content_type='text/markdown',
install_requires=get_dependencies(),
packages=find_packages(),
url='http://github.com/wolsen/cmadison',
entry_points={
'console_scripts': [
'cmadison = cmadison.cmadison:main',
]
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
]
)