Skip to content

Commit 455ffaf

Browse files
authored
Merge pull request #18 from GeoStat-Framework/update_package_structure
Update package structure
2 parents 752e7bd + 130dfad commit 455ffaf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+306
-337
lines changed

.git_archival.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node: $Format:%H$
2+
node-date: $Format:%cI$
3+
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
4+
ref-names: $Format:%D$

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.git_archival.txt export-subst

.github/workflows/main.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,15 @@ jobs:
2626
steps:
2727
- uses: actions/checkout@v2
2828

29-
- name: Set up Python 3.8
29+
- name: Set up Python 3.9
3030
uses: actions/setup-python@v2
3131
with:
32-
python-version: 3.8
32+
python-version: 3.9
3333

3434
- name: Install dependencies
3535
run: |
3636
python -m pip install --upgrade pip
37-
pip install black 'isort[colors]<6' # 'pylint<3'
38-
pip install --editable .
37+
pip install --editable .[check]
3938
4039
- name: black check
4140
run: |
@@ -52,7 +51,7 @@ jobs:
5251
fail-fast: false
5352
matrix:
5453
os: [ubuntu-latest, windows-latest, macos-latest]
55-
python-version: ['3.6', '3.7', '3.8', '3.9'] # '3.10'
54+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
5655

5756
steps:
5857
- uses: actions/checkout@v2

.gitignore

+3-3
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ info/
112112
*.cpp
113113

114114
# generated version file
115-
ogs5py/_version.py
115+
src/ogs5py/_version.py
116116

117117
# generated docs
118118
docs/source/examples/
119-
docs/source/generated/
119+
docs/source/api/
120120

121121
# other settings
122122
.vscode/
@@ -126,4 +126,4 @@ docs/source/generated/
126126

127127
*.vtu
128128
*.vtr
129-
*.vtk
129+
*.vtk

CHANGELOG.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@
33
All notable changes to **ogs5py** will be documented in this file.
44

55

6+
## [1.3.0] - 2023-04
7+
8+
See [#18](https://github.com/GeoStat-Framework/ogs5py/pull/18)
9+
10+
### Enhancements
11+
- move to `src/` base package structure
12+
- use [hatchling](https://pypi.org/project/hatchling/) as build backend
13+
- drop py36 support
14+
- added archive support
15+
- simplify documentation
16+
17+
### Bugfixes
18+
- remove usage of deprecated `np.int`
19+
20+
621
## [1.2.2] - 2022-05-25
722

823
### Bugfixes
@@ -185,7 +200,8 @@ All notable changes to **ogs5py** will be documented in this file.
185200
First release of ogs5py.
186201

187202

188-
[Unreleased]: https://github.com/GeoStat-Framework/ogs5py/compare/v1.2.2...HEAD
203+
[Unreleased]: https://github.com/GeoStat-Framework/ogs5py/compare/v1.3.0...HEAD
204+
[1.3.0]: https://github.com/GeoStat-Framework/ogs5py/compare/v1.2.2...v1.3.0
189205
[1.2.2]: https://github.com/GeoStat-Framework/ogs5py/compare/v1.2.1...v1.2.2
190206
[1.2.1]: https://github.com/GeoStat-Framework/ogs5py/compare/v1.2.0...v1.2.1
191207
[1.2.0]: https://github.com/GeoStat-Framework/ogs5py/compare/v1.1.1...v1.2.0

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019 Sebastian Mueller
3+
Copyright (c) 2023 Sebastian Mueller
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

MANIFEST.in

-6
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ You can contact us via <info@geostat-framework.org>.
178178

179179
## License
180180

181-
[MIT][gpl_link] © 2018-2022 (inspired by Falk Hesse and Miao Jing)
181+
[MIT][gpl_link] © 2018-2023 (inspired by Falk Hesse and Miao Jing)
182182

183183
This project is based on [OGSPY][ogspy_link].
184184

docs/source/_static/custom.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dl.py.property {
2+
display: block !important;
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{{ fullname | escape | underline}}
2+
3+
.. currentmodule:: {{ fullname }}
4+
5+
.. automodule:: {{ fullname }}
6+
7+
.. raw:: latex
8+
9+
\clearpage

docs/source/_templates/layout.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<br />
2222
<br />
2323
<ul>
24-
<Li><a href="genindex.html">Index</a></Li>
25-
<Li><a href="contents.html">Sitemap</a></Li>
24+
<Li><a href="{{ pathto('genindex') }}">Index</a></Li>
25+
<Li><a href="{{ pathto(master_doc) }}">Sitemap</a></Li>
2626
</ul>
2727
{% endblock %}

docs/source/package.rst renamed to docs/source/api.rst

-7
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,3 @@ ogs5py API
77
.. raw:: latex
88

99
\clearpage
10-
11-
.. toctree::
12-
:hidden:
13-
14-
fileclasses.rst
15-
reader.rst
16-
tools.rst

docs/source/conf.py

+12-8
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def setup(app):
4949
"sphinx.ext.doctest",
5050
"sphinx.ext.intersphinx",
5151
"sphinx.ext.coverage",
52-
"sphinx.ext.imgmath",
52+
"sphinx.ext.mathjax",
5353
"sphinx.ext.ifconfig",
5454
"sphinx.ext.viewcode",
5555
"sphinx.ext.autosummary",
@@ -69,7 +69,10 @@ def setup(app):
6969
# Notes in boxes
7070
napoleon_use_admonition_for_notes = True
7171
# Attributes like parameters
72-
# napoleon_use_ivar = True
72+
napoleon_use_ivar = True
73+
# keep "Other Parameters" section
74+
# https://github.com/sphinx-doc/sphinx/issues/10330
75+
napoleon_use_param = False
7376
# this is a nice class-doc layout
7477
numpydoc_show_class_members = True
7578
# class members have no separate file, so they are not in a toctree
@@ -111,7 +114,7 @@ def setup(app):
111114
#
112115
# This is also used if you do content translation via gettext catalogs.
113116
# Usually you set "language" from the command line for these cases.
114-
language = None
117+
language = "en"
115118

116119
# List of patterns, relative to source directory, that match files and
117120
# directories to ignore when looking for source files.
@@ -143,14 +146,18 @@ def setup(app):
143146
# Toc options
144147
"collapse_navigation": False,
145148
"sticky_navigation": True,
146-
"navigation_depth": 4,
149+
"navigation_depth": 6,
147150
"includehidden": True,
148151
"titles_only": False,
149152
}
150153
# Add any paths that contain custom static files (such as style sheets) here,
151154
# relative to this directory. They are copied after the builtin static files,
152155
# so a file named "default.css" will overwrite the builtin "default.css".
153-
# html_static_path = ['_static']
156+
html_static_path = ["_static"]
157+
158+
# These paths are either relative to html_static_path
159+
# or fully qualified paths (eg. https://...)
160+
html_css_files = ["custom.css"]
154161

155162
# Custom sidebar templates, must be a dictionary that maps document names
156163
# to template names.
@@ -236,11 +243,8 @@ def setup(app):
236243

237244
# Example configuration for intersphinx: refer to the Python standard library.
238245
intersphinx_mapping = {
239-
"Python 3.6": ("https://docs.python.org/3.6", None),
240246
"Python": ("https://docs.python.org/", None),
241247
"NumPy": ("http://docs.scipy.org/doc/numpy/", None),
242248
"matplotlib": ("http://matplotlib.org", None),
243249
"Sphinx": ("http://www.sphinx-doc.org/en/stable/", None),
244-
# "hankel": ("https://hankel.readthedocs.io/en/latest/", None),
245-
# "emcee": ("http://dfm.io/emcee/current/", None),
246250
}

docs/source/contents.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Contents
44

55
.. toctree::
66
:includehidden:
7-
:maxdepth: 3
7+
:maxdepth: 5
88

99
index
1010
tutorials
11-
package
11+
api
1212
changelog

docs/source/fileclasses.base.rst

-8
This file was deleted.

docs/source/fileclasses.gli.generator.rst

-8
This file was deleted.

docs/source/fileclasses.gli.rst

-13
This file was deleted.

docs/source/fileclasses.msh.generator.rst

-8
This file was deleted.

docs/source/fileclasses.msh.rst

-13
This file was deleted.

docs/source/fileclasses.rst

-15
This file was deleted.

docs/source/reader.rst

-8
This file was deleted.

docs/source/tools.download.rst

-8
This file was deleted.

docs/source/tools.output.rst

-12
This file was deleted.

docs/source/tools.rst

-18
This file was deleted.

docs/source/tools.script.rst

-8
This file was deleted.

docs/source/tools.tools.rst

-8
This file was deleted.

docs/source/tools.types.rst

-10
This file was deleted.

docs/source/tools.vtk_viewer.rst

-12
This file was deleted.

0 commit comments

Comments
 (0)