-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
72 lines (62 loc) · 2.2 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
from __future__ import absolute_import, print_function
from setuptools import find_packages, setup
import io
import re
from glob import glob
from os.path import basename, dirname, join, splitext
def _read(*names, **kwargs):
return io.open(
join(dirname(__file__), *names), encoding=kwargs.get("encoding", "utf8")
).read()
def _find_version(*file_paths):
version_file = _read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
# ======================================================================================================================
setup(
name="21cmEMU",
version=_find_version("21cmemu", "__init__.py"),
license="MIT license",
description="Emulator of 21cmFAST summaries.",
long_description="%s\n%s"
% (
re.compile("^.. start-badges.*^.. end-badges", re.M | re.S).sub(
"", _read("README.md")
),
re.sub(":[a-z]+:`~?(.*?)`", r"``\1``", _read("CHANGELOG.md")),
),
author="Daniela Breitman",
author_email="[email protected]",
url="https://github.com/DanielaBreitman/21cmEMU",
packages=find_packages("src"),
package_dir={"": "21cmemu"},
py_modules=[],
include_package_data=True,
zip_safe=False,
classifiers=[
# complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: Unix",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
keywords=["Epoch of Reionization", "Cosmology"],
install_requires=[
"numpy",
"scipy",
"matplotlib>=2.1",
"cached_property",
"21cmFAST",
"tensorflow>=2.6",
],
)