Skip to content

Commit 38867f1

Browse files
committed
update to latest
1 parent 7c754f8 commit 38867f1

File tree

5 files changed

+25
-14
lines changed

5 files changed

+25
-14
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ name = "libmathcat_py"
1919
crate-type = ["cdylib"]
2020

2121
[dependencies.mathcat]
22-
version = "0.2.0"
22+
version = "0.2.3"
2323
# for testing MathCAT without having to publish a new version (change two occurences)
24-
path = "../MathCAT/"
24+
# path = "../MathCAT/"
2525

2626
[dependencies.pyo3]
2727
version = "0.15.1"
2828
features = ["extension-module", "abi3"]
2929

3030
[build-dependencies]
3131
zip = { version = "0.6.2", default-features = false, features = ["deflate"] }
32-
# mathcat = "0.2.0"
32+
mathcat = "0.2.3"
3333
# for testing MathCAT without having to publish a new version (change two occurences)
34-
mathcat = {version= "0.2.0", path = "../MathCAT/"}
34+
# mathcat = {version= "0.2.3", path = "../MathCAT/"}
3535

3636

3737
[profile.release]

NVDA-addon/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ addon/doc/*.css
22
addon/doc/en/
33
*_docHandler.py
44
*.html
5-
*.ini
5+
manifest.ini
66
*.mo
77
*.pot
88
*.py[co]
99
*.nvda-addon
1010
.sconsign.dblite
11+
/[0-9]*.[0-9]*.[0-9]*.json

NVDA-addon/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
To build the addon, type "scons".
22
This rebuilds addon/manifest.ini and then zips up the addon dir to create
3-
MathCAT-0.1.nvda-addon (where the version number comes from the manifest)
3+
MathCAT-0.2.nvda-addon (where the version number comes from the manifest)

NVDA-addon/buildVars.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,18 @@ def _(arg):
2626
"addon_description": _("""
2727
MathCAT is a replacement for MathPlayer which has been discontinued.
2828
It provides speech and braille support, and also supports MathPlayer's three modes of navigation.
29-
The initial version of MathCAT is English-only but is designed with translations in mind.
29+
The speech quality is not quite as good as MathPlayer's speech yet,
30+
but the braille support is much better and includes both Nemeth and UEB Technical.
31+
Translations to languages other than English are in progress.
3032
"""),
3133
# version
32-
"addon_version": "0.2.0",
34+
"addon_version": "0.2.1",
3335
# Author(s)
3436
"addon_author": "Neil Soiffer <soiffer@alum.mit.edu>",
3537
# URL for the add-on documentation support
3638
"addon_url": "https://nsoiffer.github.io/MathCAT/",
3739
# URL for the add-on repository where the source code can be found
38-
"addon_sourceURL": "https://github.com/NSoiffer/MathCAT",
40+
"addon_sourceURL": "https://github.com/NSoiffer/MathCATForPython",
3941
# Documentation file name
4042
"addon_docFileName": "readme.html",
4143
# Minimum NVDA version supported (e.g. "2018.3.0", minor version is optional)

NVDA-addon/sconstruct

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ if env["dev"]:
100100
import datetime
101101
buildDate = datetime.datetime.now()
102102
year, month, day = str(buildDate.year), str(buildDate.month), str(buildDate.day)
103-
env["addon_version"] = "".join([year, month.zfill(2), day.zfill(2), "-dev"])
103+
versionTimestamp = "".join([year, month.zfill(2), day.zfill(2)])
104+
env["addon_version"] = f"{versionTimestamp}-dev"
105+
env["versionNumber"] = f"{versionTimestamp}.0.0"
104106
env["channel"] = "dev"
105107
elif env["version"] is not None:
106108
env["addon_version"] = env["version"]
@@ -189,20 +191,26 @@ def createAddonStoreJson(bundle):
189191
versionNumberParsed = []
190192
if len(versionNumberParsed):
191193
major, minor, patch = [int(part) for part in versionNumberParsed]
192-
jsonFilename = f'{buildVars.addon_info["addon_name"]}-{major}.{minor}.{patch}.json'
194+
jsonFilename = f'{major}.{minor}.{patch}.json'
193195
else:
194-
jsonFilename = f'{buildVars.addon_info["addon_name"]}-{buildVars.addon_info["addon_version"]}.json'
196+
jsonFilename = f'{buildVars.addon_info["addon_version"]}.json'
195197
major, minor, patch = 0, 0, 0
196198
print('Generating % s' % jsonFilename)
197199
sha256 = hashlib.sha256()
198200
with open(bundle, "rb") as f:
199201
for byte_block in iter(lambda: f.read(65536), b""):
200202
sha256.update(byte_block)
201203
hashValue = sha256.hexdigest()
202-
minimumNVDAVersion = buildVars.addon_info["addon_minimumNVDAVersion"].split(".")
204+
try:
205+
minimumNVDAVersion = buildVars.addon_info["addon_minimumNVDAVersion"].split(".")
206+
except AttributeError:
207+
minimumNVDAVersion = [0, 0, 0]
203208
minMajor, minMinor = minimumNVDAVersion[:2]
204209
minPatch = minimumNVDAVersion[-1] if len(minimumNVDAVersion) == 3 else "0"
205-
lastTestedNVDAVersion = buildVars.addon_info["addon_lastTestedNVDAVersion"].split(".")
210+
try:
211+
lastTestedNVDAVersion = buildVars.addon_info["addon_lastTestedNVDAVersion"].split(".")
212+
except AttributeError:
213+
lastTestedNVDAVersion = [0, 0, 0]
206214
lastTestedMajor, lastTestedMinor = lastTestedNVDAVersion[:2]
207215
lastTestedPatch = lastTestedNVDAVersion[-1] if len(lastTestedNVDAVersion) == 3 else "0"
208216
channel = buildVars.addon_info["addon_updateChannel"]

0 commit comments

Comments
 (0)