forked from charlesmartin14/emf-rbm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
107 lines (95 loc) · 3.01 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#!/usr/bin/env python
from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
version = sys.version_info
# numpy support for python3.3 not available for version > 1.10.1
if version.major == 3 and version.minor == 3:
NUMPY_VERSION = 'numpy >= 1.9.2, <= 1.10.1'
else:
NUMPY_VERSION = 'numpy >= 1.9.2'
class PyTest(TestCommand, object):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
super(PyTest, self).initialize_options()
self.pytest_args = []
def finalize_options(self):
super(PyTest, self).finalize_options()
self.test_suite = True
self.test_args = []
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
exit(pytest.main(self.pytest_args))
readme = open('README.md').read()
doclink = """
Documentation
-------------
The full documentation is at <url to be inserted>."""
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
setup(
name='emf-rbm',
version='0.1.0',
description='Some description',
long_description=readme + '\n\n' + doclink + '\n\n' + history,
author='Charles Martin',
url='https://github.com/charlesmartin14/emf-rbm',
packages=['.'],
package_dir={'emf-rbm': '.'},
include_package_data=True,
entry_points={
'console_scripts': [
]
},
setup_requires=[NUMPY_VERSION],
install_requires=[
'numpy >= 1.9.2',
'scipy',
'scikit-learn',
'matplotlib',
'h5py',
'nltk'
],
extras_require={
'dev': [
'sphinx',
'ghp-import',
'sphinxcontrib-programoutput'
]
},
tests_require=[
'pytest-cov',
'coverage',
'codecov',
'tox',
'pytest' # pytest should be last
],
license="Apache Software License 2.0",
zip_safe=False,
keywords='RBM, Deep Learning, Restricted Boltzmann Machine',
classifiers=[
'Development Status :: 4 - Beta',
"Operating System :: POSIX",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
# add additional supported python versions
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Information Analysis"
# add more topics
],
cmdclass={
'test': PyTest,
}
)