forked from araith/pyDEA
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (54 loc) · 2.03 KB
/
Copy pathsetup.py
File metadata and controls
62 lines (54 loc) · 2.03 KB
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
import os
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to pytest")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
setup(
name="pyDEA",
version="1.6",
author="Andrea Raith, Olga Perederieieva",
author_email="peredereeva@gmail.com",
description=("Package for conducting data envelopment analysis"),
license="MIT",
keywords="data envelopment analysis",
url="https://github.com/araith/pyDEA",
packages=['pyDEA', 'pyDEA.core', 'pyDEA.core.data_processing',
'pyDEA.core.gui_modules', 'pyDEA.core.models',
'pyDEA.core.utils'],
long_description=read('README.rst'),
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux"
],
install_requires=['pulp>=1.6.1', 'xlrd', 'xlwt-future', 'openpyxl'],
entry_points={
'gui_scripts': [
'pyDEA=pyDEA.main_gui:main',
],
},
include_package_data=True,
tests_require=['pytest'],
cmdclass={'test': PyTest},
test_suite='tests',
)