Skip to content

Commit 071e150

Browse files
authored
Various improvements to setup.py (#262)
Notably: * The readme content is now included in PyPI * Alan's name is no longer associated with Hugo's email address * The PyPI sidebar will now link to our issue tracker and documentation * The __version__ loading is a little more resilient to unusual value of cwd
1 parent 421449b commit 071e150

File tree

1 file changed

+42
-31
lines changed

1 file changed

+42
-31
lines changed

setup.py

Lines changed: 42 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,47 @@
11
#!/usr/bin/env python
22
from setuptools import setup, find_packages
3-
import os
3+
from os import path
44

5-
version_path = os.path.join('galgebra', '_version.py')
6-
exec(open(version_path).read())
5+
this_directory = path.abspath(path.dirname(__file__))
76

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())
119

12-
setup(name='galgebra',
13-
version=__version__, # noqa: F821
14-
description='Symbolic Geometric Algebra/Calculus package for SymPy.',
15-
author='Alan Bromborsky',
16-
author_email='[email protected]',
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

Comments
 (0)