|
1 | | -import os |
| 1 | +from setuptools import setup |
2 | 2 |
|
3 | | -from setuptools import find_packages, setup |
4 | | - |
5 | | -currentPath = os.path.abspath(os.path.dirname(__file__)) |
6 | | - |
7 | | -# Get __version__ from _version.py |
8 | | -__version__ = None |
9 | | -with open(os.path.join(currentPath, 'nrrd/_version.py')) as fh: |
10 | | - exec(fh.read()) |
11 | | - |
12 | | -# Get the long description from the README file |
13 | | -with open(os.path.join(currentPath, 'README.rst')) as fh: |
14 | | - longDescription = fh.read() |
15 | | - |
16 | | -longDescription = '\n' + longDescription |
17 | | - |
18 | | -setup(name='pynrrd', |
19 | | - python_requires='>=3.7', |
20 | | - version=__version__, |
21 | | - description='Pure python module for reading and writing NRRD files.', |
22 | | - long_description=longDescription, |
23 | | - long_description_content_type='text/x-rst', |
24 | | - author='Maarten Everts', |
25 | | - |
26 | | - url='https://github.com/mhe/pynrrd', |
27 | | - license='MIT License', |
28 | | - install_requires=['numpy>=1.11.1', 'nptyping', 'typing_extensions'], |
29 | | - packages=find_packages(exclude=['*.tests', '*.tests.*', 'tests.*', 'tests']), |
30 | | - keywords='nrrd teem image processing file format', |
31 | | - classifiers=[ |
32 | | - 'License :: OSI Approved :: MIT License', |
33 | | - 'Topic :: Scientific/Engineering', |
34 | | - 'Programming Language :: Python', |
35 | | - 'Programming Language :: Python :: 3.7', |
36 | | - 'Programming Language :: Python :: 3.8', |
37 | | - 'Programming Language :: Python :: 3.9', |
38 | | - 'Programming Language :: Python :: 3.10', |
39 | | - 'Programming Language :: Python :: 3.11', |
40 | | - ], |
41 | | - project_urls={ |
42 | | - 'Tracker': 'https://github.com/mhe/pynrrd/issues', |
43 | | - } |
44 | | - ) |
| 3 | +if __name__ == "__main__": |
| 4 | + setup() |
0 commit comments