-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
56 lines (51 loc) · 1.66 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
#
# setup.py
#
# Copyright (c) 2016 Trish Gillett-Kawamoto
#
# This software is released under the MIT License.
#
# http://opensource.org/licenses/mit-license.php
#
""" Package information.
"""
from setuptools import setup, find_packages
def load_requires_from_file(filepath):
""" Read a package list from a given file path.
Args:
filepath: file path of the package list.
Returns:
a list of package names.
"""
with open(filepath) as fp:
return [pkg_name.strip() for pkg_name in fp.readlines()]
setup(
name="pyqpecgen",
version="0.1.0",
description="A QPEC problem generator for Python",
long_description=(
"This package provides a Python translation of the Matlab package "
"Qpecgen which generates random MPEC test problems with quadratic "
"objective functions and affine variational inequality constraints. "
"For more information, see the paper and accompanying code by "
"Houyuan Jiang, Daniel Ralph, 1997."),
author="Trish Gillett-Kawamoto",
author_email="[email protected]",
url="https://github.com/TrishGillett/PyQPECgen",
packages=find_packages(exclude=["tests"]),
include_package_data=True,
setup_requires=[
"setuptools_scm"
],
install_requires=load_requires_from_file("requirements.txt"),
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Mathematics"
],
test_suite='tests.suite',
license="MIT"
)