-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
56 lines (46 loc) · 2.05 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
#!/usr/bin/env python
## -*- 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("sage -t --force-lib crystalline_obstruction")
if errno != 0:
sys.exit(1)
setup(
name="crystalline_obstruction",
author="Edgar Costa, Emre Sertoz",
author_email="[email protected]",
url="https://github.com/edgarcosta/crystalline_obstruction",
license="GNU General Public License, version 2 or 3",
description="Wrapper for computing an approximation to the crystalline obstruction map ",
long_description = readfile("README.md"), # get the long description from the README
version = readfile("VERSION"), # the VERSION file is shared with the documentation
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Mathematics',
'License :: OSI Approved :: GNU General Public License v2 or v3',
'Programming Language :: Python :: 3.7',
], # classifiers list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords = "sagemath crystalline obstruction",
setup_requires=["sagemath"], # currently useless, see https://www.python.org/dev/peps/pep-0518/
install_requires=["pycontrolledreduction@ git+https://github.com/edgarcosta/pycontrolledreduction.git@master#egg=pycontrolledreduction",
"sagemath",
"sphinx"],
packages=["crystalline_obstruction"],
include_package_data = True,
cmdclass = {'test': SageTest}, # adding a special setup command for tests
)