Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
cmhughes committed Apr 6, 2024
2 parents 9220bdf + 835b4a1 commit 9cc2d86
Show file tree
Hide file tree
Showing 18 changed files with 48 additions and 44 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/batch-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,15 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Check for changed pm files, latexindent.pl, defaultSettings.yaml
uses: tj-actions/changed-files@v43
- name: Check for changed pm files, latexindent.pl, defaultSettings.yaml, batch-check.yaml
uses: tj-actions/changed-files@v44
id: changed-files
with:
files: |
latexindent.pl
defaultSettings.yaml
LatexIndent/*.pm
.github/workflows/batch-check.yaml
- if: ${{ steps.changed-files.outputs.any_changed == 'true' }}
name: List all relevant changed files
run: |
Expand All @@ -67,7 +68,7 @@ jobs:
name: No perl based files have changed
run: |
echo ""
echo "none of latexindent.pl, defaultSettings.yaml, LatexIndent/*.pm have changed since last commit"
echo "none of latexindent.pl, defaultSettings.yaml, LatexIndent/*.pm, batch-check.yaml have changed since last commit"
echo "no need to run the rest of batch-check.yaml :)"
echo ""
latexindent-batch-check:
Expand All @@ -80,7 +81,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
perl: [ '5.32', '5.30', '5.28' ]
perl: [ '5.38', '5.36', '5.34' ]
runs-on: ${{ matrix.platform }}
steps:
# checkout github.com/cmhughes/latexindent.pl
Expand All @@ -101,7 +102,6 @@ jobs:
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
distribution: strawberry
- if: ${{ matrix.platform == 'windows-latest' }}
name: installing perl modules for latexindent.pl on windows-latest
run: |
Expand All @@ -126,7 +126,7 @@ jobs:
cjk-windows-exe-test:
needs: check-pm-files-changed
if: ${{fromJSON(needs.check-pm-files-changed.outputs.anychanged)}}
name: 'create Windows executable latexindent.exe using Strawberry Perl 5.32 on Windows'
name: 'create Windows executable latexindent.exe using Perl (latest) on Windows'
runs-on: 'windows-latest'
steps:
#
Expand All @@ -138,11 +138,10 @@ jobs:
#
# https://github.com/marketplace/actions/setup-perl-environment
#
- name: install Strawberry Perl
- name: install Perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: '5.32'
distribution: strawberry
perl-version: 'latest'
- name: install Perl modules using cpan
run: |
wmic os get osarchitecture
Expand Down Expand Up @@ -195,6 +194,8 @@ jobs:
cat test-cases/GCString-test/indent.log
linux-executable-GCString-test:
needs: check-pm-files-changed
if: ${{fromJSON(needs.check-pm-files-changed.outputs.anychanged)}}
name: 'create Linux executable latexindent'
runs-on: 'ubuntu-latest'
steps:
Expand All @@ -210,7 +211,7 @@ jobs:
- name: install Perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: '5.32'
perl-version: 'latest'
- name: install Perl modules using cpan
run: |
cpanm -f PAR::Packer
Expand Down Expand Up @@ -249,6 +250,8 @@ jobs:
cat test-cases/GCString-test/indent2.log
macos-executable-GCString-test:
needs: check-pm-files-changed
if: ${{fromJSON(needs.check-pm-files-changed.outputs.anychanged)}}
name: 'create MacOS executable latexindent'
runs-on: 'macos-latest'
steps:
Expand All @@ -264,7 +267,7 @@ jobs:
- name: install Perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: '5.32'
perl-version: 'latest'
- name: install Perl modules using cpan
run: |
cpanm -f PAR::Packer
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/build-documentation-and-executables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: build latexindent executables and documentation and upload to release page
# PURPOSE:
#
# 1. build latexindent.pdf
# 2. build latexindent.exe using PAR::Packer on Strawberry Perl
# 2. build latexindent.exe using PAR::Packer on Windows Perl
# 3. build latexindent-linux using PAR::Packer on Ubuntu
# 4. build latexindent-macos using PAR::Packer on macOS
# 5. create release
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
# 2. latexindent.exe
#
build-windows-exe:
name: 'create Windows executable latexindent.exe using Strawberry Perl 5.32 on Windows'
name: 'create Windows executable latexindent.exe using Windows Perl (latest) on Windows'
runs-on: 'windows-latest'
steps:
#
Expand All @@ -74,11 +74,10 @@ jobs:
#
# https://github.com/marketplace/actions/setup-perl-environment
#
- name: install Strawberry Perl
- name: install Perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: '5.32'
distribution: strawberry
perl-version: 'latest'
- name: install Perl modules using cpan
run: |
wmic os get osarchitecture
Expand Down Expand Up @@ -137,7 +136,7 @@ jobs:
- name: install Perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: '5.32'
perl-version: 'latest'
- name: install Perl modules using cpan
run: |
cpanm -f PAR::Packer
Expand Down Expand Up @@ -192,7 +191,7 @@ jobs:
- name: install Perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: '5.32'
perl-version: 'latest'
- name: install Perl modules using cpan
run: |
cpanm -f PAR::Packer
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-cases-on-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
fetch-depth: 0
- name: Get changed files, latexindent.pl
id: changed-files
uses: tj-actions/changed-files@v43
uses: tj-actions/changed-files@v44
with:
files: |
latexindent.pl
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
- name: installing Perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: 5.34
perl-version: 'latest'
- name: installing perl modules for latexindent.pl
run: |
cpanm YAML::Tiny
Expand All @@ -92,7 +92,7 @@ jobs:
sed -i.bak "s/checkgitdiff//" test-cases.sh
./test-cases.sh -s
- name: Check for changed files in test-cases
uses: tj-actions/changed-files@v43
uses: tj-actions/changed-files@v44
id: changed-files
with:
files: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ FROM perl:5.38.2-slim-threaded-buster
#

ARG LATEXINDENT_VERSION
ENV LATEXINDENT_VERSION ${LATEXINDENT_VERSION:-V3.23.8}
ENV LATEXINDENT_VERSION ${LATEXINDENT_VERSION:-V3.23.9}

RUN apt-get update \
&& apt-get install \
Expand Down
4 changes: 2 additions & 2 deletions LatexIndent/Version.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ use warnings;
use Exporter qw/import/;
our @EXPORT_OK = qw/$versionNumber $versionDate/;

our $versionNumber = '3.23.8';
our $versionDate = '2024-03-28';
our $versionNumber = '3.23.9';
our $versionDate = '2024-04-06';
1
2 changes: 1 addition & 1 deletion defaultSettings.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# latexindent.pl, version 3.23.8, 2024-03-28
# latexindent.pl, version 3.23.9, 2024-04-06
#
# defaultSettings.yaml, the default settings for latexindent.pl
#
Expand Down
4 changes: 3 additions & 1 deletion documentation/changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<!-- announcement: STDIN and GCString bugfixes-->
<!-- announcement: latexindent.exe oneSentencePerLine bug fix-->

# changelog.md
## V3.23.9, April 6, 2024
`latexindent.exe` oneSentencePerLine bug fix, see [issue 514](https://github.com/cmhughes/latexindent.pl/issues/514)

## V3.23.8, March 28, 2024
STDIN and GCString update, see [issue 528](https://github.com/cmhughes/latexindent.pl/issues/528) and [issue 531](https://github.com/cmhughes/latexindent.pl/issues/531); thanks to @Mikachu2333 and @saxyx
Expand Down
4 changes: 2 additions & 2 deletions documentation/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
# built documents.
#
# The short X.Y version.
version = u'3.23.8'
version = u'3.23.9'
# The full version, including alpha/beta/rc tags.
release = u'3.23.8'
release = u'3.23.9'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion documentation/demonstrations/pre-commit-config-conda.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- repo: https://github.com/cmhughes/latexindent.pl
rev: V3.23.8
rev: V3.23.9
hooks:
- id: latexindent-conda
args: [-s]
2 changes: 1 addition & 1 deletion documentation/demonstrations/pre-commit-config-cpan.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- repo: https://github.com/cmhughes/latexindent.pl
rev: V3.23.8
rev: V3.23.9
hooks:
- id: latexindent
args: [-s]
2 changes: 1 addition & 1 deletion documentation/demonstrations/pre-commit-config-demo.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- repo: https://github.com/cmhughes/latexindent.pl
rev: V3.23.8
rev: V3.23.9
hooks:
- id: latexindent
args: [-l, -m, -s, -w]
2 changes: 1 addition & 1 deletion documentation/demonstrations/pre-commit-config-docker.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- repo: https://github.com/cmhughes/latexindent.pl
rev: V3.23.8
rev: V3.23.9
hooks:
- id: latexindent-docker
args: [-s]
2 changes: 1 addition & 1 deletion documentation/latexindent-yaml-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json-schema.org/schema",
"$id": "latexindent-yaml-schema.json",
"title": "latexindent.pl YAML schema",
"description": "latexindent.pl YAML schema helper, V3.23.8 2024-03-28",
"description": "latexindent.pl YAML schema helper, V3.23.9 2024-04-06",
"type": "object",
"properties": {
"fileExtensionPreference": {
Expand Down
2 changes: 1 addition & 1 deletion documentation/readme.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
latexindent.pl, version 3.23.8, 2024-03-28
latexindent.pl, version 3.23.9, 2024-04-06

PERL script to indent code within environments, and align delimited
environments in .tex files.
Expand Down
4 changes: 2 additions & 2 deletions documentation/title.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
sharp corners,
enhanced,
overlay={\node[anchor=north east,outer sep=2pt] at ([xshift=3cm,yshift=4mm]frame.north east) {\includegraphics[width=3cm]{logo}}; }]
\centering\ttfamily\bfseries latexindent.pl\\[1cm] Version 3.23.8
\centering\ttfamily\bfseries latexindent.pl\\[1cm] Version 3.23.9
\end{tcolorbox}
}
\author{Chris Hughes \thanks{and contributors!
See \vref{sec:contributors}.
For
all communication, please visit \cite{latexindent-home}.}}
\date{2024-03-28}
\date{2024-04-06}
\maketitle
\begin{adjustwidth}{1cm}{1cm}
\small
Expand Down
8 changes: 4 additions & 4 deletions helper-scripts/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
# - <upload latexindent.zip to ctan>

minorVersion=0
oldVersion='3.23.7'
newVersion='3.23.8'
oldDate='2024-03-16'
newDate='2024-03-28'
oldVersion='3.23.8'
newVersion='3.23.9'
oldDate='2024-03-28'
newDate='2024-04-06'
updateVersion=0
gitMode=0

Expand Down
2 changes: 1 addition & 1 deletion latexindent.pl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
#
# latexindent.pl, version 3.23.8, 2024-03-28
# latexindent.pl, version 3.23.9, 2024-04-06
#
# 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
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ and [pre-commit](https://latexindentpl.readthedocs.io/en/latest/sec-appendices.h

## version

latexindent.pl, version 3.23.8, 2024-03-28
latexindent.pl, version 3.23.9, 2024-04-06

## author
Chris Hughes (cmhughes)
Expand Down Expand Up @@ -157,7 +157,7 @@ framework](https://pre-commit.com) by adding this to your

```yaml
- repo: https://github.com/cmhughes/latexindent.pl.git
rev: V3.23.8
rev: V3.23.9
hooks:
- id: latexindent
```
Expand Down Expand Up @@ -234,7 +234,7 @@ I align with many of the approaches and details at [Dramatically increase your p
## perl version
I develop latexindent.pl on Ubuntu Linux, using [perlbrew](https://perlbrew.pl/); I currently develop on perl version v5.38.0
I develop latexindent.pl on Ubuntu Linux, using [perlbrew](https://perlbrew.pl/); I currently develop on perl version v5.38.2
## GitHub Actions
The standalone executables `latexindent.exe`, `latexindent-linux`, `latexindent-macos` are created and released by [GitHub Actions](https://github.com/features/actions); the
Expand Down

0 comments on commit 9cc2d86

Please sign in to comment.