-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
34 lines (31 loc) · 982 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 setuptools import setup
from os import path
import re
def read(fname):
return open(path.join(path.dirname(__file__), fname)).read()
def get_version():
with open('CHANGELOG.rst') as changelog:
for line in changelog:
if re.match(r'^\d+\.\d+\.\d+$', line):
return line
setup(
name='py-toolbox',
version=get_version(),
author='Daniel Grießhaber',
author_email='[email protected]',
url='https://github.com/dangrie158/py-toolbox',
packages=['pytb', 'pytb.test'],
include_package_data=True,
license='MIT',
description='A collection of commonly used python snippets',
long_description=read('README.rst'),
long_description_content_type='text/markdown',
classifiers=[
'Development Status :: 1 - Planning',
'Topic :: Utilities',
'License :: OSI Approved :: MIT License',
],
entry_points = {
'console_scripts': ['pytb=pytb.__main__:main'],
}
)