setup.py 2.49 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Theo Steininger's avatar
Theo Steininger committed
13
#
Philipp Arras's avatar
Philipp Arras committed
14
# Copyright(C) 2013-2021 Max-Planck-Society
Theo Steininger's avatar
Theo Steininger committed
15
#
16
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
Marco Selig's avatar
Marco Selig committed
17

Viktoria Kainz's avatar
Viktoria Kainz committed
18
import os
19
20
21
22
23
24
25
import site
import sys

from setuptools import find_packages, setup

# Workaround until https://github.com/pypa/pip/issues/7953 is fixed
site.ENABLE_USER_SITE = "--user" in sys.argv[1:]
csongor's avatar
csongor committed
26

Martin Reinecke's avatar
Martin Reinecke committed
27
exec(open('nifty7/version.py').read())
28

Philipp Arras's avatar
Philipp Arras committed
29
30
31
32
33
34
with open("README.md") as f:
    long_description = f.read()
description = """NIFTy, Numerical Information Field Theory, is a versatile
library designed to enable the development of signal inference algorithms that
operate regardless of the underlying grids and their resolutions."""

Martin Reinecke's avatar
Martin Reinecke committed
35
setup(name="nifty7",
36
      version=__version__,
Philipp Arras's avatar
Philipp Arras committed
37
      author="Martin Reinecke",
Martin Reinecke's avatar
Martin Reinecke committed
38
      author_email="martin@mpa-garching.mpg.de",
Philipp Arras's avatar
Philipp Arras committed
39
40
41
42
43
44
45
46
      description=description,
      long_description=long_description,
      long_description_content_type="text/markdown",
      url="https://ift.pages.mpcdf.de/nifty/",
      project_urls={
          "Bug Tracker": "https://gitlab.mpcdf.mpg.de/ift/nifty/issues",
          "Documentation": "https://ift.pages.mpcdf.de/nifty/",
          "Source Code": "https://gitlab.mpcdf.mpg.de/ift/nifty",
Philipp Arras's avatar
Philipp Arras committed
47
          "Changelog": "https://gitlab.mpcdf.mpg.de/ift/nifty/-/blob/NIFTy_7/ChangeLog",
Philipp Arras's avatar
Philipp Arras committed
48
      },
Martin Reinecke's avatar
Martin Reinecke committed
49
      packages=find_packages(include=["nifty7", "nifty7.*"]),
50
      license="GPLv3",
Martin Reinecke's avatar
Martin Reinecke committed
51
52
      setup_requires=['scipy>=1.4.1', 'numpy>=1.17'],
      install_requires=['scipy>=1.4.1', 'numpy>=1.17'],
Martin Reinecke's avatar
Martin Reinecke committed
53
      python_requires='>=3.6',
Philipp Arras's avatar
Philipp Arras committed
54
55
56
57
58
59
60
61
      classifiers=[
          "Development Status :: 5 - Production/Stable",
          "Topic :: Scientific/Engineering :: Mathematics",
          "Topic :: Scientific/Engineering :: Physics",
          "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
          "Operating System :: OS Independent",
          "Programming Language :: Python",
          "Intended Audience :: Science/Research"],
Theo Steininger's avatar
Theo Steininger committed
62
      )