forked from hanbo1735/empymod
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
45 lines (41 loc) · 1.29 KB
/
Copy pathsetup.py
File metadata and controls
45 lines (41 loc) · 1.29 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
# -*- coding: utf-8 -*-
import os
import re
import sys
from setuptools import setup
if not sys.version_info[:2] >= (3, 6):
sys.exit(f"empymod is only meant for Python 3.6 and up.\n"
f"Current version: {sys.version_info[0]}.{sys.version_info[1]}.")
# Get README and remove badges.
with open("README.rst") as f:
readme = re.sub(r"\|.*\|", "", f.read(), flags=re.DOTALL)
description = "Open-source full 3D electromagnetic modeller for 1D VTI media"
setup(
name="empymod",
description=description,
long_description=readme,
author="The emsig community",
author_email="info@emsig.xyz",
url="https://emsig.xyz",
license="Apache-2.0",
packages=["empymod", "empymod.scripts"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
python_requires=">=3.7",
install_requires=[
"numpy>=1.17",
"scipy>=1.4",
"numba>=0.47",
],
use_scm_version={
"root": ".",
"relative_to": __file__,
"write_to": os.path.join("empymod", "version.py"),
},
setup_requires=["setuptools_scm"],
)