forked from mkoeppe/cutgeneratingfunctionology
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (59 loc) · 3.06 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
## -*- encoding: utf-8 -*-
import os
import sys
from setuptools import setup
from codecs import open # To open the README file with proper encoding
from setuptools.command.test import test as TestCommand # for tests
# Get information from separate files (README, VERSION)
def readfile(filename):
with open(filename, encoding='utf-8') as f:
return f.read()
# For the tests
class SageTest(TestCommand):
def run_tests(self):
errno = os.system("make check")
if errno != 0:
sys.exit(1)
setup(
name = "cutgeneratingfunctionology",
description='Python code for computation and experimentation with cut-generating functions',
long_description = readfile("README.rst"), # get the long description from the README
long_description_content_type='text/x-rst', # https://packaging.python.org/guides/making-a-pypi-friendly-readme/
url='https://github.com/mkoeppe/cutgeneratingfunctionology',
author='Matthias Koeppe, Yuan Zhou, Chun Yu Hong, Jiawei Wang, with contributions by undergraduate programmers',
author_email='mkoeppe@math.ucdavis.edu', # choose a main contact email
license='GPLv2+', # This should be consistent with the LICENCE file
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Mathematics',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
], # classifiers list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords = "integer programming, cutting planes",
packages = ['cutgeneratingfunctionology', 'cutgeneratingfunctionology.igp', 'cutgeneratingfunctionology.multirow', 'cutgeneratingfunctionology.dff', 'cutgeneratingfunctionology.spam', 'cutgeneratingfunctionology.igp.subadditivity_slack_diagrams', 'cutgeneratingfunctionology.igp.procedures'],
include_package_data=True, # to install the .sage files too
cmdclass = {'test': SageTest}, # adding a special setup command for tests
install_requires = ['sage>=8', 'sage-package', 'sphinx', 'sphinxcontrib-bibtex'],
setup_requires = ['sage-package', 'setuptools_scm'],
use_scm_version={
'write_to': 'version.txt',
'version_scheme': 'post-release',
'local_scheme': 'dirty-tag'
},
project_urls = {
'Documentation': "http://mkoeppe.github.io/cutgeneratingfunctionology/doc/html/",
'Source': 'https://github.com/mkoeppe/cutgeneratingfunctionology',
'Issue Tracker': 'https://github.com/mkoeppe/cutgeneratingfunctionology/issues',
'Demo on mybinder.org': 'https://mybinder.org/v2/gh/mkoeppe/cutgeneratingfunctionology/master?filepath=demo.ipynb'
}
)