-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
44 lines (39 loc) · 1.57 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
# -*- coding: utf-8 -*-
# GalMag
# Copyright (C) 2020 Luiz Felippe S. Rodrigues
#
# GalMag 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.
#
# GalMag 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 GalMag. If not, see <http://www.gnu.org/licenses/>.
from setuptools import setup
import os, os.path
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
with open('requirements.txt') as f:
requirements = f.read().splitlines()
with open('galmag/version.py', 'r') as f:
exec(f.read())
setup(name="galmag",
version=__version__,
author="Luiz Felippe S. Rodrigues <[email protected]>",
author_email="[email protected]",
keywords = "magnetic field, galaxy, Galaxy",
description= ("Generates realistic galactic magnetic field based on the "
"dynamo equation"),
url="https://github.com/luizfelippesr/galmag",
packages=["galmag", "galmag.analysis", "galmag.B_generators"],
license="GPLv3",
python_requires='>=3.5, <4',
zip_safe=False,
long_description=read('README.rst'),
install_requires=requirements,
)