-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
42 lines (36 loc) · 1.35 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
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
current_dir = os.path.dirname(__file__)
# load __version__, __author__, __email__, etc variables
with open(os.path.join(current_dir,'imagepypelines_tools/version_info.py')) as f:
exec(f.read())
long_description = ''
if os.path.exists(os.path.join(current_dir,'README.rst')):
with open(os.path.join(current_dir,'README.rst'), 'r') as f:
long_description = f.read()
# load in list of requirements
requirements_path = os.path.join(current_dir,'requirements.txt')
with open(requirements_path,'r') as f:
requirements = f.read().splitlines()
setup(name='imagepypelines-tools',
version=__version__,
description=__description__,
long_description=long_description,
long_description_content_type='text/x-rst',
author=__author__,
author_email=__email__,
license=__license__,
url=__url__,
download_url=__download_url__,
maintainer=__maintainer__,
maintainer_email=__maintainer_email__,
keywords=__keywords__,
python_requires=__python_requires__,
platforms=__platforms__,
classifiers=__classifiers__,
packages=find_packages(),
include_package_data=True,
install_requires=requirements,
entry_points={'console_scripts': ['imagepypelines = imagepypelines_tools:main'],}
)