-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
48 lines (43 loc) · 1.64 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
## -*- encoding: utf-8 -*-
"""
A semantic handle GAP interface for SageMath
"""
import os
import sys
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
# To use a consistent encoding
from codecs import open
here = os.path.abspath(os.path.dirname(__file__))
# Get the long description from the README file
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
class SageTest(TestCommand):
def run_tests(self):
errno = os.system("/opt/sage-git2/sage -t --force-lib mygap.py mmt.py categories/")
sys.exit(errno)
setup(
name='sage-gap-semantic-interface',
version='0.1.0',
description='Sage-Gap semantic interface',
long_description=long_description,
url='https://github.com/nthiery/sage-gap-semantic-interface',
author='Nicolas M. Thiéry',
author_email='[email protected]',
license='GPLv2+',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research'
'Topic :: Software Development :: Build Tools',
'Topic :: Scientific/Engineering :: Mathematics',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Programming Language :: Python :: 2',
#'Programming Language :: Python :: 3',
],
keywords='SageMath, GAP',
py_modules=['mygap','categories.objects'],
install_requires=['recursive-monkey-patch',
'sage-semantic-annotations @ git+https://github.com/nthiery/sage-semantic-annotations.git#egg=dev'], # 'Sage'
cmdclass = {'test': SageTest},
)