|
5 | 5 | # https://packaging.python.org/guides/distributing-packages-using-setuptools/ |
6 | 6 |
|
7 | 7 | from __future__ import print_function |
8 | | -from setuptools import setup, Extension # , find_packages |
| 8 | +from setuptools import setup, Extension, find_packages |
9 | 9 | from setuptools.command.build_ext import build_ext |
10 | 10 |
|
11 | 11 | import sys |
@@ -303,37 +303,37 @@ def check_system_cfitsio_objects(self, obj_name): |
303 | 303 |
|
304 | 304 | ext = Extension("fitsio._fitsio_wrap", sources, include_dirs=['numpy']) |
305 | 305 |
|
306 | | -# description = ("A full featured python library to read from and " |
307 | | -# "write to FITS files.") |
| 306 | +description = ("A full featured python library to read from and " |
| 307 | + "write to FITS files.") |
308 | 308 |
|
309 | | -# with open(os.path.join(os.path.dirname(__file__), "README.md")) as fp: |
310 | | -# long_description = fp.read() |
| 309 | +with open(os.path.join(os.path.dirname(__file__), "README.md")) as fp: |
| 310 | + long_description = fp.read() |
311 | 311 |
|
312 | | -# classifiers = [ |
313 | | -# "Development Status :: 5 - Production/Stable", |
314 | | -# "License :: OSI Approved :: GNU General Public License (GPL)", |
315 | | -# "Topic :: Scientific/Engineering :: Astronomy", |
316 | | -# "Intended Audience :: Science/Research", |
317 | | -# ] |
| 312 | +classifiers = [ |
| 313 | + "Development Status :: 5 - Production/Stable", |
| 314 | + "License :: OSI Approved :: GNU General Public License (GPL)", |
| 315 | + "Topic :: Scientific/Engineering :: Astronomy", |
| 316 | + "Intended Audience :: Science/Research", |
| 317 | +] |
318 | 318 |
|
319 | 319 | setup( |
320 | | - # name="fitsio", |
321 | | - # description=description, |
322 | | - # long_description=long_description, |
323 | | - # long_description_content_type='text/markdown; charset=UTF-8; variant=GFM', |
324 | | - # license="GPL", |
325 | | - # classifiers=classifiers, |
326 | | - # url="https://github.com/esheldon/fitsio", |
327 | | - # author="Erin Scott Sheldon", |
328 | | - # author_email="erin.sheldon@gmail.com", |
329 | | - # setup_requires=['numpy>=1.7', 'setuptools-scm>=8'], |
330 | | - # install_requires=['numpy>=1.7'], |
331 | | - # packages=find_packages(), |
332 | | - # include_package_data=True, |
| 320 | + name="fitsio", |
| 321 | + description=description, |
| 322 | + long_description=long_description, |
| 323 | + long_description_content_type='text/markdown; charset=UTF-8; variant=GFM', |
| 324 | + license="GPL", |
| 325 | + classifiers=classifiers, |
| 326 | + url="https://github.com/esheldon/fitsio", |
| 327 | + author="Erin Scott Sheldon", |
| 328 | + author_email="erin.sheldon@gmail.com", |
| 329 | + setup_requires=['numpy>=1.7', 'setuptools-scm>=8'], |
| 330 | + install_requires=['numpy>=1.7'], |
| 331 | + packages=find_packages(), |
| 332 | + include_package_data=True, |
333 | 333 | ext_modules=[ext], |
334 | 334 | cmdclass={"build_ext": build_ext_subclass}, |
335 | | - # use_scm_version={ |
336 | | - # "version_file": "fitsio/_version.py", |
337 | | - # "version_file_template": "__version__ = '{version}'\n" |
338 | | - # } |
| 335 | + use_scm_version={ |
| 336 | + "version_file": "fitsio/_version.py", |
| 337 | + "version_file_template": "__version__ = '{version}'\n" |
| 338 | + } |
339 | 339 | ) |
0 commit comments