-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
56 lines (46 loc) · 1.49 KB
/
setup.py
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
import os.path
from setuptools import find_packages, setup
def get_version():
version_file = os.path.join(os.path.dirname(__file__), "psrmatch", "version.py")
with open(version_file, "r") as f:
raw = f.read()
items = {}
exec(raw, None, items)
return items["__version__"]
def get_long_description():
with open("README.md", "r") as fd:
long_description = fd.read()
return long_description
setup(
name="psrmatch",
version=get_version(),
author="Fabian Jankowski",
author_email="fjankowsk at gmail.com",
description="Known source matching of single-pulse candidates.",
long_description=get_long_description(),
long_description_content_type="text/markdown",
url="https://github.com/fjankowsk/psrmatch",
license="MIT",
packages=find_packages(),
package_data={"psrmatch": ["catalogues/*.txt"]},
install_requires=[
"astropy",
"importlib-resources;python_version<'3.7'",
"numpy",
"scipy",
],
entry_points={
"console_scripts": [
"psrmatch-benchmark = psrmatch.apps.benchmark_matcher:main",
"psrmatch-match_pulsars = psrmatch.apps.match_pulsars:main",
],
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
zip_safe=True,
)