|
| 1 | +""" |
| 2 | +hsd |
| 3 | +Python routines to manipulate HSD data |
| 4 | +""" |
| 5 | +import sys |
| 6 | +from setuptools import setup, find_packages |
| 7 | +import versioneer |
| 8 | + |
| 9 | +short_description = __doc__.split("\n") |
| 10 | + |
| 11 | +# from https://github.com/pytest-dev/pytest-runner#conditional-requirement |
| 12 | +needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv) |
| 13 | +pytest_runner = ['pytest-runner'] if needs_pytest else [] |
| 14 | + |
| 15 | +try: |
| 16 | + with open("README.rst", "r") as handle: |
| 17 | + long_description = handle.read() |
| 18 | +except: |
| 19 | + long_description = "\n".join(short_description[2:]) |
| 20 | + |
| 21 | + |
| 22 | +setup( |
| 23 | + # Self-descriptive entries which should always be present |
| 24 | + name='hsd', |
| 25 | + author='DFTB+ developers group', |
| 26 | + author_email='info@dftbplus.org', |
| 27 | + description=short_description[0], |
| 28 | + long_description=long_description, |
| 29 | + long_description_content_type="text/x-rst", |
| 30 | + version=versioneer.get_version(), |
| 31 | + cmdclass=versioneer.get_cmdclass(), |
| 32 | + license='BSD 2-clause license', |
| 33 | + |
| 34 | + # Which Python importable modules should be included when your package is installed |
| 35 | + # Handled automatically by setuptools. Use 'exclude' to prevent some specific |
| 36 | + # subpackage(s) from being added, if needed |
| 37 | + packages=find_packages(), |
| 38 | + |
| 39 | + # Optional include package data to ship with your package |
| 40 | + # Customize MANIFEST.in if the general case does not suit your needs |
| 41 | + # Comment out this line to prevent the files from being packaged with your software |
| 42 | + include_package_data=True, |
| 43 | + |
| 44 | + # Allows `setup.py test` to work correctly with pytest |
| 45 | + setup_requires=[] + pytest_runner, |
| 46 | + |
| 47 | + # Additional entries you may want simply uncomment the lines you want and fill in the data |
| 48 | + # url='http://www.my_package.com', # Website |
| 49 | + install_requires=['numpy'], # Required packages, pulls from pip if needed; do not use for Conda deployment |
| 50 | + # platforms=['Linux', |
| 51 | + # 'Mac OS-X', |
| 52 | + # 'Unix', |
| 53 | + # 'Windows'], # Valid platforms your code works on, adjust to your flavor |
| 54 | + # python_requires=">=3.5", # Python version restrictions |
| 55 | + |
| 56 | + # Manual control if final package is compressible or not, set False to prevent the .egg from being made |
| 57 | + # zip_safe=False, |
| 58 | + |
| 59 | +) |
0 commit comments