Skip to content

Commit 6973ab9

Browse files
committed
Administrivia
setup.py: build character.json via make version.py: reduce with setuptool's whining
1 parent fce4658 commit 6973ab9

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

.github/workflows/osx.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: mathics-script (OSX)
1+
name: Mathics_Script (OSX)
22

33
on:
44
push:

.github/workflows/ubuntu.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: mathics-script (ubuntu)
1+
name: Mathics_Script (ubuntu)
22

33
on:
44
push:
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
24-
- name: Install Mathics-Scanner
24+
- name: Install Mathics_Scanner
2525
run: |
2626
make
2727
- name: Test Mathics Scanner

admin-tools/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ cd $(dirname ${BASH_SOURCE[0]})
1616
owd=$(pwd)
1717
cd ..
1818
version=`python -c "import mathics; print(mathics.__version__)"`
19-
echo "Releasing Mathics-Scanner $version"
19+
echo "Releasing Mathics_Scanner $version"
2020

2121
rm -rf build/release
2222
python setup.py build

mathics_scanner/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# This file is suitable for sourcing inside POSIX shell as
66
# well as importing into Python. That's why there is no
77
# space around "=" below.
8-
__version__="1.0.0.dev" # noqa
8+
__version__="1.0.0.dev0" # noqa

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import sys
2929
import os.path as osp
3030
import platform
31+
import subprocess
3132
from setuptools import setup, Command, Extension
3233

3334
# Ensure user has the correct Python version
@@ -43,6 +44,7 @@ def get_srcdir():
4344
def read(*rnames):
4445
return open(osp.join(get_srcdir(), *rnames)).read()
4546

47+
subprocess.run(["make", "mathics_scanner/data/characters.json"])
4648

4749
# stores __version__ in the current namespace
4850
exec(compile(open("mathics_scanner/version.py").read(), "mathics_scanner/version.py", "exec"))

0 commit comments

Comments
 (0)