-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
34 lines (29 loc) · 931 Bytes
/
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
# from distutils.core import setup
from setuptools import setup, find_packages
import re
with open('requirements.txt', 'r') as f:
required = f.read().splitlines()
# taken from https://github.com/kennethreitz/requests/blob/master/setup.py
version = ''
with open('src/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
setup(
name='debsnapshot-cli',
version=version,
packages=find_packages(),
url='https://github.com/dimr/debsnapshot-cli',
license='',
author='Dimitris Rongotis',
author_email='[email protected]',
description='',
install_requires=required,
entry_points={
'console_scripts': [
'debsnapshot-cli=src.cli:main'
]
}
# scripts=['bin/debsnapshot-cli']
)