summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-11-18 21:03:23 +0000
committerKarl Berry <karl@freefriends.org>2022-11-18 21:03:23 +0000
commit66b84fd5d0def0dd37fe3b45fe7dbcdad3853c35 (patch)
tree157b0da0790fd73294d4fbeb9f7cd8e1b7041f90 /Master
parentc97addb1046cf5c8d4fc05faec0fda029234ffe0 (diff)
spix (18nov22)
git-svn-id: svn://tug.org/texlive/trunk@65050 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/man/man1/spix.man1.pdfbin18170 -> 18175 bytes
-rw-r--r--Master/texmf-dist/doc/support/spix/CHANGELOG.md14
-rw-r--r--Master/texmf-dist/doc/support/spix/README.md12
-rw-r--r--Master/texmf-dist/doc/support/spix/spix.pdfbin1528250 -> 1526423 bytes
-rwxr-xr-xMaster/texmf-dist/scripts/spix/spix.py12
5 files changed, 29 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/man/man1/spix.man1.pdf b/Master/texmf-dist/doc/man/man1/spix.man1.pdf
index 9dd5f8e9ff1..840deff5bae 100644
--- a/Master/texmf-dist/doc/man/man1/spix.man1.pdf
+++ b/Master/texmf-dist/doc/man/man1/spix.man1.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/support/spix/CHANGELOG.md b/Master/texmf-dist/doc/support/spix/CHANGELOG.md
index 59fbcaeb635..9e5ed3b4ca0 100644
--- a/Master/texmf-dist/doc/support/spix/CHANGELOG.md
+++ b/Master/texmf-dist/doc/support/spix/CHANGELOG.md
@@ -1,3 +1,17 @@
+* spix 1.3.0 (2022-11-18)
+
+ * Add Python3.11 support.
+ * Add tests.
+ * Flush output: it could lead to output lines being shuffled.
+
+ -- Louis Paternault <spalax@gresille.org>
+
+* spix 1.2.0 (2021-11-27)
+
+ * Add Python3.10 support.
+
+ -- Louis Paternault <spalax@gresille.org>
+
* spix 1.1.0 (2020-07-23)
* Python 3.9 support.
diff --git a/Master/texmf-dist/doc/support/spix/README.md b/Master/texmf-dist/doc/support/spix/README.md
index a12fc8686f2..ec5cb68cff0 100644
--- a/Master/texmf-dist/doc/support/spix/README.md
+++ b/Master/texmf-dist/doc/support/spix/README.md
@@ -49,18 +49,22 @@ To compile it from source, download and run:
## What's new?
-See [changelog](https://framagit.org/spalax/spix/blob/master/CHANGELOG.md).
+See [changelog](https://framagit.org/spalax/spix/blob/main/CHANGELOG.md).
## Download and install
-The preferred way to install SpiX used pip:
+* The preferred way to get `SpiX` working is by using your distribution package manager. With Debian (and Ubuntu, and surely other distributions that inherit from Debian), it is in package [`texlive-extra-utils`](https://packages.debian.org/search?keywords=texlive-extra-utils) (since version 2020.20210202-3)::
+
+ sudo apt install texlive-extra-utils
+
+* Otherwise, you can install SpiX using pip:
python3 -m pip install spix
-Other installation methods can be found in the [documentation](https://spix.readthedocs.io/en/latest/install/).
+* Other installation methods can be found in the [documentation](https://spix.readthedocs.io/en/latest/install/).
## License
-*Copyright 2020 Louis Paternault*
+*Copyright 2020-2021 Louis Paternault*
SpiX is licensed under the [Gnu GPL 3 license](https://www.gnu.org/licenses/gpl-3.0.html), or any later version.
diff --git a/Master/texmf-dist/doc/support/spix/spix.pdf b/Master/texmf-dist/doc/support/spix/spix.pdf
index 699bacd9cc0..089c822f3a9 100644
--- a/Master/texmf-dist/doc/support/spix/spix.pdf
+++ b/Master/texmf-dist/doc/support/spix/spix.pdf
Binary files differ
diff --git a/Master/texmf-dist/scripts/spix/spix.py b/Master/texmf-dist/scripts/spix/spix.py
index 1369703a7aa..69dd9815825 100755
--- a/Master/texmf-dist/scripts/spix/spix.py
+++ b/Master/texmf-dist/scripts/spix/spix.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
-# Copyright 2020 Louis Paternault
+# Copyright 2020-2022 Louis Paternault
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -26,7 +26,7 @@ import subprocess
import sys
NAME = "SpiX"
-VERSION = "1.1.0"
+VERSION = "1.3.0"
RE_EMPTY = re.compile("^ *$")
RE_COMMENT = re.compile("^ *%")
@@ -75,9 +75,11 @@ def compiletex(filename, *, dryrun=False):
env["basename"] = filename.stem
try:
+ # pylint: disable=unspecified-encoding
with open(filename, errors="ignore") as file:
for snippet in parse_lines(file.readlines()):
print(snippet)
+ sys.stdout.flush()
if dryrun:
continue
@@ -86,10 +88,10 @@ def compiletex(filename, *, dryrun=False):
cwd=(pathlib.Path.cwd() / filename).parent,
env=env,
)
- except subprocess.CalledProcessError:
- raise SpixError()
+ except subprocess.CalledProcessError as error:
+ raise SpixError() from error
except IsADirectoryError as error:
- raise SpixError(str(error))
+ raise SpixError(str(error)) from error
def commandline_parser():