|
| 1 | +from setuptools import setup, find_packages |
| 2 | + |
| 3 | +with open("magpylib_force/__init__.py") as handle: |
| 4 | + for line in handle: |
| 5 | + if "__version__" in line: |
| 6 | + version = line.split(" = ")[-1].replace('"', "") |
| 7 | + break |
| 8 | + |
| 9 | +with open("./README.md") as handle: |
| 10 | + readme_text = handle.read() |
| 11 | + |
| 12 | +_short_description = ( |
| 13 | + "An extension to the Magpylib library, providing force computation" |
| 14 | +) |
| 15 | + |
| 16 | +with open("./requirements.txt") as handle: |
| 17 | + requirements = [lr.strip() for lr in handle.read().splitlines() if lr.strip()] |
| 18 | + |
| 19 | +setup( |
| 20 | + name="magpylib-force", |
| 21 | + version=version, |
| 22 | + description=_short_description, |
| 23 | + long_description=readme_text, |
| 24 | + long_description_content_type="text/markdown", |
| 25 | + author="Alexandre Boisselet", |
| 26 | + |
| 27 | + url=("https://github.com/" "magpylib/magpylib-material-response"), |
| 28 | + license="MIT", |
| 29 | + packages=find_packages(), |
| 30 | + # include anything specified in Manifest.in |
| 31 | + install_requires=requirements, |
| 32 | + classifiers=[ |
| 33 | + "Development Status :: 2 - Pre-Alpha", |
| 34 | + "License :: OSI Approved :: BSD License", |
| 35 | + "Programming Language :: Python :: 3", |
| 36 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 37 | + ], |
| 38 | + keywords="", |
| 39 | +) |
0 commit comments