-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
45 lines (41 loc) · 1.51 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-fast-reservoir',
version=read('src/os_fast_reservoir/VERSION'),
packages=find_packages(where='src'),
package_dir={'': 'src'},
include_package_data=True,
license='MIT License',
description='Python implementation of fast approximation reservioir sampling.',
long_description=open('README.md').read(),
author='Ozzy',
author_email='cfhamlet@gmail.com',
url='https://github.com/cfhamlet/os-fast-reservoir',
zip_safe=False,
entry_points={
'console_scripts': [
'os-fast-reservoir = os_fast_reservoir.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 :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
])