|
| 1 | +import re |
| 2 | +from setuptools import setup |
| 3 | + |
| 4 | +with open('multivectors.py') as f: |
| 5 | + text = f.read() |
| 6 | +longdesc = re.search('"""(.+?)"""', text, re.S).group(1).strip() |
| 7 | +version = re.search(r"__version__\s*=\s*'([^']+)'", text).group(1).strip() |
| 8 | +with open('README.md', 'w') as f: |
| 9 | + f.write(longdesc) |
| 10 | + |
| 11 | +setup( |
| 12 | + name='multivectors', |
| 13 | + version=version, |
| 14 | + license='Apache', |
| 15 | + description='Compute blades and multivectors in arbitrary-dimensional space.', |
| 16 | + long_description=longdesc, |
| 17 | + long_description_content_type='text/markdown', |
| 18 | + author='Ken Hilton', |
| 19 | + url='https://github.com/Kenny2github/MultiVectors', |
| 20 | + classifiers=[ |
| 21 | + 'Development Status :: 3 - Alpha', |
| 22 | + 'License :: OSI Approved :: Apache Software License', |
| 23 | + 'Intended Audience :: Developers', |
| 24 | + 'Intended Audience :: Science/Research', |
| 25 | + 'Topic :: Scientific/Engineering :: Mathematics', |
| 26 | + 'Topic :: Software Development :: Libraries :: Python Modules', |
| 27 | + 'Programming Language :: Python :: 3', |
| 28 | + 'Programming Language :: Python :: 3 :: Only', |
| 29 | + 'Programming Language :: Python :: 3.7', |
| 30 | + 'Typing :: Typed' |
| 31 | + ], |
| 32 | + keywords='multivector geometric algebra', |
| 33 | + py_modules=['multivectors'], |
| 34 | + python_requires='>=3.7' |
| 35 | +) |
0 commit comments