Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (46 loc) · 1.58 KB
/
Copy pathsetup.py
File metadata and controls
50 lines (46 loc) · 1.58 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
## -*- encoding: utf-8 -*-
"""
SageMath package for computing various moduli spaces invariants.
"""
import os
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
from codecs import open
# 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 msinvar")
sys.exit(errno)
setup(
name = 'msinvar',
version = '0.1',
description='SageMath package for computing various moduli spaces invariants',
long_description = readfile("README.rst"),
# long_description = readfile("README.md"),
# long_description_content_type="text/markdown",
url='https://github.com/smzg/msinvar',
author='Sergey Mozgovoy',
author_email='mozhov@gmail.com',
license='GPLv2+',
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Topic :: Software Development :: Build Tools',
'Topic :: Scientific/Engineering :: Mathematics',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Programming Language :: Python :: 3.7',
],
keywords = 'SageMath moduli spaces invariants',
packages = ['msinvar'],
install_requires = [],
cmdclass = {'test': SageTest}, # adding a special setup command for tests
)