-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathsetup.py
More file actions
73 lines (65 loc) · 2.1 KB
/
setup.py
File metadata and controls
73 lines (65 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2015 IAS / CNRS / Univ. Paris-Sud
# BSD License - see attached LICENSE file
# Author: Alexandre Boucaud <alexandre.boucaud@ias.u-psud.fr>
from setuptools import setup, find_packages
def find_version(filepath):
"""
Find project version in a given file
The syntax for the file version need to be in the form
__version__ = 'a.b.c'
which follows the semantic versioning http://semver.org/
* a : major version
* b : minor version
* c : patch version
Parameters
----------
filepath: str
Path to the file containing a version number
Returns
-------
version: str
The program version in the form 'a.b.c' as described above
"""
with open(filepath) as pfile:
for line in pfile.readlines():
if line.startswith('__version__'):
version = line.strip()[-6:-1]
return version
setup(
name='pypher',
author='Alexandre Boucaud',
author_email='alexandre.boucaud@apc.in2p3.fr',
description='Python-based PSF Homogenization kERnels production',
license='New BSD',
url='http://pypher.readthedocs.org/en/latest/',
download_url='https://github.com/aboucaud/pypher',
version=find_version('pypher/pypher.py'),
long_description=open('README.rst').read(),
long_description_content_type='text/x-rst',
zip_safe=False,
packages=find_packages(),
include_package_data=True,
entry_points={
'console_scripts': [
'pypher = pypher.pypher:main',
'addpixscl = pypher.addpixscl:main',
],
},
install_requires=[
'numpy>=1.7.2',
'scipy>=0.9',
'astropy>=2.0'
],
classifiers=[
'Programming Language :: Python',
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Astronomy',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
)