Added installation functionality and renamed the package

This commit is contained in:
Joost van den Born committed 2020-05-19 12:10:49 +02:00
1 parent f66d26c649
commit 79d30b7506
9 files changed
+2421

No files matched your search

+48
View File
@@ -0,0 +1,48 @@
#!/usr/bin/env python3
'''
AstroAtmosphere: A python package to evaluate refractive indices, refraction
and dispersion of the atmosphere. It was written for astronomic
applications, but it can probably be used for other applications
as well.
'''
from setuptools import setup
with open('README.md') as f:
__readme__ = f.read()
with open('LICENSE.txt') as f:
__license__ = f.read()
def setup_package():
# Rewrite the version file every time
# write_version_py()
setup(name='AstroAtmosphere',
version='0.1',
description='Collection of equations for refractive index, refraction and dispersion calculations of atmospheric air.',
long_description=__readme__,
long_description_content_type='text/markdown',
author='Joost van den Born',
author_email='born@astron.nl',
url='https://gitlab.astro-wise.org/micado/atmosphericmodel',
license='GNU General Public License v3',
package_dir={'AstroAtmosphere': 'AstroAtmosphere'},
package_data={'AstroAtmosphere': ['data/*.txt']},
include_package_data=True,
packages=['AstroAtmosphere'],
install_requires=['numpy',
'scipy',
'pyslalib>=1.0.4'
],
classifiers=['Programming Language :: Python :: 3',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Astronomy', ]
)
if __name__ == '__main__':
setup_package()