|
3 | 3 |
|
4 | 4 | import sys |
5 | 5 | import platform |
| 6 | +import os.path as osp |
6 | 7 | from setuptools import setup, find_namespace_packages |
7 | 8 |
|
8 | 9 | # Ensure user has the correct Python version |
9 | | -if sys.version_info < (3, 6): |
10 | | - print("Mathics support Python 3.6 and above; you have %d.%d" % sys.version_info[:2]) |
| 10 | +if sys.version_info < (3, 8): |
| 11 | + print("Mathics support Python 3.8 and above; you have %d.%d" % sys.version_info[:2]) |
11 | 12 | sys.exit(-1) |
12 | 13 |
|
| 14 | + |
| 15 | +def get_srcdir(): |
| 16 | + filename = osp.normcase(osp.dirname(osp.abspath(__file__))) |
| 17 | + return osp.realpath(filename) |
| 18 | + |
| 19 | + |
| 20 | +def read(*rnames): |
| 21 | + return open(osp.join(get_srcdir(), *rnames)).read() |
| 22 | + |
| 23 | + |
13 | 24 | # stores __version__ in the current namespace |
14 | 25 | exec(compile(open("pymathics/hello/version.py").read(), "version.py", "exec")) |
| 26 | +long_description = read("README.rst") + "\n" |
15 | 27 |
|
16 | 28 | is_PyPy = platform.python_implementation() == "PyPy" |
17 | 29 |
|
18 | 30 | setup( |
19 | 31 | name="pymathics-hello", |
20 | 32 | maintainer="Mathics Group", |
21 | 33 | maintainer_email="[email protected]", |
| 34 | + long_description=long_description, |
| 35 | + long_description_content_type="text/x-rst", |
22 | 36 | version=__version__, # noqa |
23 | 37 | packages=find_namespace_packages(include=["pymathics.*"]), |
24 | 38 | install_requires=["Mathics3>=7.0.0.dev0"], |
|
0 commit comments