Skip to content

Commit 60f81d3

Browse files
committed
Administrivia for release
1 parent 8a16678 commit 60f81d3

File tree

3 files changed

+43
-13
lines changed

3 files changed

+43
-13
lines changed

Makefile

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,46 @@
1+
# A GNU Makefile to run various tasks - compatibility for us old-timers.
2+
3+
# Note: This makefile include remake-style target comments.
4+
# These comments before the targets start with #:
5+
# remake --tasks to shows the targets and the comments
6+
7+
GIT2CL ?= admin-tools/git2cl
18
PYTHON ?= python3
2-
PHONY=check clean dist distclean test rmChangeLog flake8
9+
PIP ?= pip3
10+
BASH ?= bash
11+
RM ?= rm
12+
13+
.PHONY: \
14+
all \
15+
check \
16+
clean \
17+
dist \
18+
rmChangeLog \
19+
ChangeLog
20+
21+
#: Default target - same as "develop"
22+
all: develop
23+
24+
develop:
25+
$(PIP) install -e .[dev]
26+
327
#: Clean up temporary files
428
clean:
529
find . | grep -E '\.pyc' | xargs rm -rvf;
630
find . | grep -E '\.pyo' | xargs rm -rvf;
731
$(PYTHON) ./setup.py $@
832

33+
#: Make distribution: wheel and tarball
34+
dist:
35+
./admin-tools/make-dist.sh
36+
37+
#: Install trepan3k-mathics3
38+
install:
39+
$(PIP) install -e .
40+
41+
#: Remove ChangeLog
42+
rmChangeLog:
43+
$(RM) ChangeLog || true
944

1045
#: Create a ChangeLog from git via git log and git2cl
1146
ChangeLog: rmChangeLog

admin-tools/make-dist.sh

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
PACKAGE=Mathics3-trepan
2+
PACKAGE=trepan3k_mathics3
33

44
# FIXME put some of the below in a common routine
55
function finish {
@@ -8,25 +8,20 @@ function finish {
88
fi
99
}
1010

11+
trepan3k_mathics3_owd=$(pwd)
1112
cd $(dirname ${BASH_SOURCE[0]})
1213
trepan3k_mathics3_owd=$(pwd)
1314
trap finish EXIT
1415

15-
if ! source ./pyenv-versions ; then
16-
exit $?
17-
fi
18-
19-
2016
cd ..
21-
source pymathics/natlang/version.py
17+
source $PACKAGE/version.py
2218
echo $__version__
2319

24-
pyversion=3.12
20+
pyversion=3.13
2521
if ! pyenv local $pyversion ; then
2622
exit $?
2723
fi
2824

29-
python setup.py bdist_wheel --universal
30-
mv -v dist/${PACKAGE}-${__version__}-{py2.,}py3-none-any.whl
31-
python ./setup.py sdist
25+
pip wheel --wheel-dir=dist .
26+
python -m build --sdist
3227
finish

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ authors = [
1313
name = "trepan3k_mathics3"
1414
description = "trepan3k plugin to support Mathics3 debugging"
1515
dependencies = [
16-
"Mathics3",
16+
# "Mathics3>8.0.1",
1717
"trepan3k>=1.4.0"
1818
]
1919
readme = "README.rst"

0 commit comments

Comments
 (0)