Skip to content

Commit d0a47f6

Browse files
committed
- [META] Adding installer to gempy_plugins
1 parent 65a3057 commit d0a47f6

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

gempy_plugins/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '2023.2.0b1'

setup.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# setup.py for gempy_viewer. Requierements are numpy and matplotlib
2+
3+
from setuptools import setup, find_packages
4+
5+
with open("your_package/__init__.py", "r") as f:
6+
for line in f:
7+
if line.startswith("__version__"):
8+
version = line.split("=")[1].strip().strip("'")
9+
break
10+
11+
12+
def read_requirements(file_name):
13+
with open(file_name, "r", encoding="utf-8") as f:
14+
return [line.strip() for line in f.readlines()]
15+
16+
17+
setup(
18+
name='gempy_viewer',
19+
version=version,
20+
packages=find_packages(),
21+
url='',
22+
license='EUPL',
23+
author='Miguel de la Varga',
24+
author_email="miguel@terranigma-solutions.com",
25+
description='Viewer for the geological modeling package GemPy',
26+
install_requires=read_requirements("requirements.txt"),
27+
extras_require={
28+
"opt": read_requirements("optional_requirements.txt"),
29+
"dev": read_requirements("dev-requirements.txt"),
30+
},
31+
classifiers=[
32+
'Development Status :: 3 - Alpha',
33+
'Intended Audience :: Science/Research',
34+
'Topic :: Scientific/Engineering :: Visualization',
35+
'Topic :: Scientific/Engineering :: GIS',
36+
'Programming Language :: Python :: 3.10'
37+
],
38+
python_requires='>=3.10'
39+
)

0 commit comments

Comments
 (0)