|
1 | 1 | #!/usr/bin/env python |
2 | 2 | from setuptools import setup, find_packages |
3 | | -import os |
| 3 | +from os import path |
4 | 4 |
|
5 | | -version_path = os.path.join('galgebra', '_version.py') |
6 | | -exec(open(version_path).read()) |
| 5 | +this_directory = path.abspath(path.dirname(__file__)) |
7 | 6 |
|
8 | | -LONG_DESCRIPTION = """ |
9 | | -Symbolic Geometric Algebra/Calculus package for SymPy. BSD License. |
10 | | -""" |
| 7 | +with open(path.join(this_directory, 'galgebra', '_version.py'), encoding='utf-8') as f: |
| 8 | + exec(f.read()) |
11 | 9 |
|
12 | | -setup(name='galgebra', |
13 | | - version=__version__, # noqa: F821 |
14 | | - description='Symbolic Geometric Algebra/Calculus package for SymPy.', |
15 | | - author='Alan Bromborsky', |
16 | | - |
17 | | - url='https://github.com/pygae/galgebra', |
18 | | - license='BSD', |
19 | | - packages=find_packages(), |
20 | | - package_dir={'galgebra': 'galgebra'}, |
21 | | - install_requires=['sympy'], |
22 | | - python_requires='>=3.5.*', |
23 | | - long_description=LONG_DESCRIPTION, |
24 | | - classifiers=[ |
25 | | - 'Development Status :: 4 - Beta', |
26 | | - 'Environment :: Console', |
27 | | - 'Intended Audience :: Science/Research', |
28 | | - 'License :: OSI Approved :: BSD License', |
29 | | - 'Natural Language :: English', |
30 | | - 'Operating System :: OS Independent', |
31 | | - 'Programming Language :: Python :: 3.5', |
32 | | - 'Programming Language :: Python :: 3.6', |
33 | | - 'Programming Language :: Python :: 3.7', |
34 | | - 'Programming Language :: Python :: 3.8', |
35 | | - 'Topic :: Scientific/Engineering :: Mathematics', |
36 | | - 'Topic :: Scientific/Engineering :: Physics']) |
| 10 | +with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: |
| 11 | + long_description = f.read() |
| 12 | + |
| 13 | +setup( |
| 14 | + name='galgebra', |
| 15 | + version=__version__, # noqa: F821 |
| 16 | + description='Symbolic Geometric Algebra/Calculus package for SymPy.', |
| 17 | + author='Alan Bromborsky', |
| 18 | + maintainer='Hugo Hadfield', |
| 19 | + maintainer_email='[email protected]', |
| 20 | + url='https://github.com/pygae/galgebra', |
| 21 | + license='BSD', |
| 22 | + packages=find_packages(), |
| 23 | + package_dir={'galgebra': 'galgebra'}, |
| 24 | + install_requires=['sympy'], |
| 25 | + python_requires='>=3.5.*', |
| 26 | + long_description=long_description, |
| 27 | + long_description_content_type='text/markdown', |
| 28 | + classifiers=[ |
| 29 | + 'Development Status :: 4 - Beta', |
| 30 | + 'Environment :: Console', |
| 31 | + 'Intended Audience :: Science/Research', |
| 32 | + 'License :: OSI Approved :: BSD License', |
| 33 | + 'Natural Language :: English', |
| 34 | + 'Operating System :: OS Independent', |
| 35 | + 'Programming Language :: Python :: 3.5', |
| 36 | + 'Programming Language :: Python :: 3.6', |
| 37 | + 'Programming Language :: Python :: 3.7', |
| 38 | + 'Programming Language :: Python :: 3.8', |
| 39 | + 'Topic :: Scientific/Engineering :: Mathematics', |
| 40 | + 'Topic :: Scientific/Engineering :: Physics', |
| 41 | + ], |
| 42 | + project_urls={ |
| 43 | + 'Documentation': 'http://galgebra.readthedocs.io', |
| 44 | + 'Bug Tracker': 'https://github.com/pygae/galgebra/issues', |
| 45 | + 'Source Code': 'https://github.com/pygae/galgebra', |
| 46 | + }, |
| 47 | +) |
0 commit comments