-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
47 lines (40 loc) · 1.31 KB
/
setup.py
File metadata and controls
47 lines (40 loc) · 1.31 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
"""
Setup file for package `PyVtools`.
"""
from setuptools import setup
import pathlib
PACKAGENAME = 'PyVtools'
# the directory where this setup.py resides
HERE = pathlib.Path(__file__).absolute().parent
# function to parse the version from
def read_version():
with (HERE / PACKAGENAME / '__init__.py').open() as fid:
for line in fid:
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
if __name__ == "__main__":
setup(
name=PACKAGENAME,
description='Functions to handle FITS files.',
version=read_version(),
long_description=(HERE / "README.md").read_text(),
long_description_content_type='text/markdown',
url='https://github.com/simoncasassus/' + PACKAGENAME,
author='Simon Casassus',
author_email='simoncasassus@gmail.com',
license='GPLv3',
packages=[PACKAGENAME],
install_requires=[ # Modify for current packages
'numpy',
'astropy',
'matplotlib'],
python_requires='>=3.6',
entry_points={
'console_scripts': [
'myfuncshello = myfuncs.script:main',
],
}
)