texlive[65050] trunk: spix (18nov22)
commits+karl at tug.org
commits+karl at tug.org
Fri Nov 18 22:03:23 CET 2022
Revision: 65050
http://tug.org/svn/texlive?view=revision&revision=65050
Author: karl
Date: 2022-11-18 22:03:23 +0100 (Fri, 18 Nov 2022)
Log Message:
-----------
spix (18nov22)
Modified Paths:
--------------
trunk/Build/source/texk/texlive/linked_scripts/spix/spix.py
trunk/Master/texmf-dist/doc/man/man1/spix.man1.pdf
trunk/Master/texmf-dist/doc/support/spix/CHANGELOG.md
trunk/Master/texmf-dist/doc/support/spix/README.md
trunk/Master/texmf-dist/doc/support/spix/spix.pdf
trunk/Master/texmf-dist/scripts/spix/spix.py
Modified: trunk/Build/source/texk/texlive/linked_scripts/spix/spix.py
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/spix/spix.py 2022-11-18 21:03:00 UTC (rev 65049)
+++ trunk/Build/source/texk/texlive/linked_scripts/spix/spix.py 2022-11-18 21:03:23 UTC (rev 65050)
@@ -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 sys
NAME = "SpiX"
-VERSION = "1.1.0"
+VERSION = "1.3.0"
RE_EMPTY = re.compile("^ *$")
RE_COMMENT = re.compile("^ *%")
@@ -75,9 +75,11 @@
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 @@
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():
Modified: trunk/Master/texmf-dist/doc/man/man1/spix.man1.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/support/spix/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/support/spix/CHANGELOG.md 2022-11-18 21:03:00 UTC (rev 65049)
+++ trunk/Master/texmf-dist/doc/support/spix/CHANGELOG.md 2022-11-18 21:03:23 UTC (rev 65050)
@@ -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 at gresille.org>
+
+* spix 1.2.0 (2021-11-27)
+
+ * Add Python3.10 support.
+
+ -- Louis Paternault <spalax at gresille.org>
+
* spix 1.1.0 (2020-07-23)
* Python 3.9 support.
Modified: trunk/Master/texmf-dist/doc/support/spix/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/support/spix/README.md 2022-11-18 21:03:00 UTC (rev 65049)
+++ trunk/Master/texmf-dist/doc/support/spix/README.md 2022-11-18 21:03:23 UTC (rev 65050)
@@ -49,18 +49,22 @@
## 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.
Modified: trunk/Master/texmf-dist/doc/support/spix/spix.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/scripts/spix/spix.py
===================================================================
--- trunk/Master/texmf-dist/scripts/spix/spix.py 2022-11-18 21:03:00 UTC (rev 65049)
+++ trunk/Master/texmf-dist/scripts/spix/spix.py 2022-11-18 21:03:23 UTC (rev 65050)
@@ -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 sys
NAME = "SpiX"
-VERSION = "1.1.0"
+VERSION = "1.3.0"
RE_EMPTY = re.compile("^ *$")
RE_COMMENT = re.compile("^ *%")
@@ -75,9 +75,11 @@
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 @@
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():
More information about the tex-live-commits
mailing list.