Skip to content

Commit b37527a

Browse files
authored
Merge pull request #92 from sebhmg/GEOPY-2049_followup
GEOPY-2049: relock on published geoh5py 0.11.0a3
2 parents 00340c1 + 6954900 commit b37527a

6 files changed

Lines changed: 49 additions & 11 deletions

File tree

docs/Makefile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ SPHINXOPTS =
66
SPHINXBUILD = sphinx-build
77
PAPER =
88
BUILDDIR = _build
9+
PIP = pip
910

1011
# User-friendly check for sphinx-build
1112
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
@@ -53,43 +54,50 @@ clean:
5354

5455
.PHONY: html
5556
html:
57+
$(PIP) install .. --no-deps
5658
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
5759
@echo
5860
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
5961

6062
.PHONY: dirhtml
6163
dirhtml:
64+
$(PIP) install .. --no-deps
6265
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
6366
@echo
6467
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
6568

6669
.PHONY: singlehtml
6770
singlehtml:
71+
$(PIP) install .. --no-deps
6872
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
6973
@echo
7074
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
7175

7276
.PHONY: pickle
7377
pickle:
78+
$(PIP) install .. --no-deps
7479
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
7580
@echo
7681
@echo "Build finished; now you can process the pickle files."
7782

7883
.PHONY: json
7984
json:
85+
$(PIP) install .. --no-deps
8086
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
8187
@echo
8288
@echo "Build finished; now you can process the JSON files."
8389

8490
.PHONY: htmlhelp
8591
htmlhelp:
92+
$(PIP) install .. --no-deps
8693
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
8794
@echo
8895
@echo "Build finished; now you can run HTML Help Workshop with the" \
8996
".hhp project file in $(BUILDDIR)/htmlhelp."
9097

9198
.PHONY: qthelp
9299
qthelp:
100+
$(PIP) install .. --no-deps
93101
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
94102
@echo
95103
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
@@ -100,6 +108,7 @@ qthelp:
100108

101109
.PHONY: applehelp
102110
applehelp:
111+
$(PIP) install .. --no-deps
103112
$(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
104113
@echo
105114
@echo "Build finished. The help book is in $(BUILDDIR)/applehelp."
@@ -109,6 +118,7 @@ applehelp:
109118

110119
.PHONY: devhelp
111120
devhelp:
121+
$(PIP) install .. --no-deps
112122
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
113123
@echo
114124
@echo "Build finished."
@@ -119,12 +129,14 @@ devhelp:
119129

120130
.PHONY: epub
121131
epub:
132+
$(PIP) install .. --no-deps
122133
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
123134
@echo
124135
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
125136

126137
.PHONY: latex
127138
latex:
139+
$(PIP) install .. --no-deps
128140
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
129141
@echo
130142
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
@@ -133,32 +145,37 @@ latex:
133145

134146
.PHONY: latexpdf
135147
latexpdf:
148+
$(PIP) install .. --no-deps
136149
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
137150
@echo "Running LaTeX files through pdflatex..."
138151
$(MAKE) -C $(BUILDDIR)/latex all-pdf
139152
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
140153

141154
.PHONY: latexpdfja
142155
latexpdfja:
156+
$(PIP) install .. --no-deps
143157
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
144158
@echo "Running LaTeX files through platex and dvipdfmx..."
145159
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
146160
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
147161

148162
.PHONY: text
149163
text:
164+
$(PIP) install .. --no-deps
150165
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
151166
@echo
152167
@echo "Build finished. The text files are in $(BUILDDIR)/text."
153168

154169
.PHONY: man
155170
man:
171+
$(PIP) install .. --no-deps
156172
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
157173
@echo
158174
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
159175

160176
.PHONY: texinfo
161177
texinfo:
178+
$(PIP) install .. --no-deps
162179
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
163180
@echo
164181
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
@@ -167,13 +184,15 @@ texinfo:
167184

168185
.PHONY: info
169186
info:
187+
$(PIP) install .. --no-deps
170188
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
171189
@echo "Running Texinfo files through makeinfo..."
172190
make -C $(BUILDDIR)/texinfo info
173191
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
174192

175193
.PHONY: gettext
176194
gettext:
195+
$(PIP) install .. --no-deps
177196
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
178197
@echo
179198
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
@@ -205,12 +224,14 @@ coverage:
205224

206225
.PHONY: xml
207226
xml:
227+
$(PIP) install .. --no-deps
208228
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
209229
@echo
210230
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
211231

212232
.PHONY: pseudoxml
213233
pseudoxml:
234+
$(PIP) install .. --no-deps
214235
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
215236
@echo
216237
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."

docs/conf.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
import sys
1616
import os
17+
from importlib.metadata import version
18+
from packaging.version import Version
1719

1820
# If extensions (or modules to document with autodoc) are in another directory,
1921
# add these directories to sys.path here. If the directory is relative to the
@@ -54,17 +56,19 @@
5456

5557
# General information about the project.
5658
project = u'omf'
57-
copyright = u'2017, Global Mining Standards and Guidelines Group'
59+
project_copyright = (
60+
u'2017, Global Mining Standards and Guidelines Group\n'
61+
u'%Y, Mira Geoscience')
5862
author = u'Global Mining Standards and Guidelines Group'
5963

6064
# The version info for the project you're documenting, acts as replacement for
6165
# |version| and |release|, also used in various other places throughout the
6266
# built documents.
63-
#
64-
# The short X.Y version.
65-
version = u'3.4.0'
66-
# The full version, including alpha/beta/rc tags.
67-
release = u'3.4.0-alpha.2'
67+
68+
# The full version.
69+
release = version("mira-omf")
70+
# The base X.Y.Z version.
71+
version = Version(release).base_version
6872

6973
# The language for content autogenerated by Sphinx. Refer to documentation
7074
# for a list of supported languages.

docs/test_docs.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import subprocess
33
import unittest
4-
4+
from pathlib import Path
55

66
class TestDoc(unittest.TestCase):
77
@property
@@ -10,6 +10,8 @@ def docs_dir(self):
1010
return os.path.sep.join(dirname.split(os.path.sep)[:-1] + ["docs"])
1111

1212
def setUp(self):
13+
self.src_root = Path(__file__).resolve().parents[1]
14+
1315
self.build_dir = os.path.sep.join(self.docs_dir.split(os.path.sep) + ["_build"])
1416
if not os.path.isdir(self.build_dir):
1517
os.makedirs(f"{self.build_dir}")
@@ -24,6 +26,17 @@ def setUp(self):
2426
if not os.path.isdir(self.html_dir):
2527
os.makedirs(f"{self.html_dir}")
2628

29+
check = subprocess.call(
30+
[
31+
"pip",
32+
"install",
33+
f"{self.src_root}",
34+
"--no-deps",
35+
]
36+
)
37+
assert check == 0
38+
39+
2740
def test_html(self):
2841
check = subprocess.call(
2942
[

omf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
from .volume import VolumeElement, VolumeGridGeometry
4545

4646

47-
__version__ = "3.3.1-alpha.1"
47+
__version__ = "3.3.1-alpha.2"
4848
__author__ = "Global Mining Standards and Guidelines Group, Mira Geoscience Ltd."
4949
__license__ = "MIT License"
5050
__copyright__ = (

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "mira-omf"
3-
version = "3.3.1-alpha.1"
3+
version = "3.3.1-alpha.2"
44
description = "API Library for Open Mining Format"
55
license = "MIT"
66
authors = [
@@ -55,7 +55,7 @@ vectormath = "0.2.*"
5555

5656
## dependencies from Git repositories
5757
#------------------------------------
58-
#geoh5py = {version = ">=0.11.0a1, <0.12.dev", allow-prereleases = true}
58+
#geoh5py = {version = ">=0.11.0a3, <0.12.dev", allow-prereleases = true}
5959
geoh5py = {git = "https://github.com/MiraGeoscience/geoh5py.git", rev = "release/0.11.0"}
6060
#geoh5py = {path = "../geoh5py", develop = true}
6161

recipe.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ schema_version: 1
22

33
context:
44
name: "mira-omf"
5-
version: "3.3.1a1"
5+
version: "3.3.1a2"
66
python_min: "3.10"
77

88
package:

0 commit comments

Comments
 (0)