-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
44 lines (37 loc) · 1.29 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
import os
import sys
import unittest
from setuptools import setup
_here = os.path.abspath(os.path.dirname(__file__))
if sys.version_info[0] < 3:
with open(os.path.join(_here, 'README.md')) as f:
long_description = f.read()
else:
with open(os.path.join(_here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
def test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test*.py')
return test_suite
setup(
name='Vose-Alias-Method',
version='1.2.1',
description=('Python implementation of Vose\'s alias method, an efficient algorithm for sampling from a discrete probability distribution.'),
long_description=long_description,
long_description_content_type='text/markdown',
author='asmith26',
url='https://github.com/asmith26/Vose-Alias-Method.git',
license='Apache-2.0',
data_files = [('', ['LICENSE'])],
packages=['vose_sampler'],
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 3.6'
],
entry_points={
'console_scripts': ['vose-sampler=vose_sampler.vose_sampler:main'],
},
test_suite='setup.test_suite',
)