-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
45 lines (41 loc) · 1.5 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
from setuptools import setup, find_packages
def read(*filenames, **kwargs):
import io
from os.path import join, dirname
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(join(dirname(__file__), filename), encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
setup(
name='os-docid',
version=read('src/os_docid/VERSION'),
packages=find_packages(where='src'),
package_dir={'': 'src'},
include_package_data=True,
license='MIT License',
description='DocID for fun.',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author='Ozzy',
author_email='[email protected]',
url='https://github.com/cfhamlet/os-docid',
install_requires=open('requirements/requirements.txt').read().split('\n'),
python_requires='>=2.7',
zip_safe=False,
entry_points={
'console_scripts': ['os-docid = os_docid.cmdline:execute']
},
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
])