-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
45 lines (36 loc) · 1.34 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
#!/usr/bin/env python
import os
from setuptools import setup
PACKAGE_NAME = 'cenaming'
ENCODING = 'utf-8'
local_directory = os.path.abspath(os.path.dirname(__file__))
version_path = os.path.join(local_directory, PACKAGE_NAME, '_version.py')
version_ns = {}
with open(version_path, 'r', encoding=ENCODING) as f:
exec(f.read(), {}, version_ns)
def get_requirements(requirement_file):
requirements = list(open(requirement_file).read().strip().split('\r\n'))
return requirements
setup(name=PACKAGE_NAME,
packages=[PACKAGE_NAME],
include_package_data=True,
license='MIT',
version=version_ns['__version__'],
description='Company legal name normalization and shortening.',
url='https://github.com/portfoliome/cenaming',
author='Philip Martin',
author_email='[email protected]',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Utilities'
],
keywords='companies finance names',
extras_require={
'develop': get_requirements('requirements-dev.txt'),
'test': get_requirements('requirements-test.txt')
},
zip_safe=False)