-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (42 loc) · 1.15 KB
/
setup.py
File metadata and controls
48 lines (42 loc) · 1.15 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
37
38
39
40
41
42
43
44
45
46
47
48
import os
from setuptools import setup
def read(fname):
"""
read the content of the specified file
"""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def version():
"""
determine version based on debian/changelog
"""
with open('debian/changelog', 'r') as changelog:
first_line = changelog.readline()
_, rest = first_line.split('(', 1)
result, _ = rest.split(')', 1)
return result
setup(
name="python-derek",
version=version(),
author="Dmitry Rozhkov",
author_email="dmitry.rojkov@gmail.com",
description="Python client for Derek",
url='https://github.com/naxuat/python-derek',
keywords="derek",
packages=['derek'],
entry_points={
'console_scripts': [
'drk=derek.cli:main'
],
'derek.commands': [
'core.repo=derek.repo',
'core.misc=derek.misc',
'core.client=derek.misc'
]
},
long_description=read('README.rst'),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: OSI Approved :: Apache Software License"
]
)