-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:bradbell/xrst
The only conflicts were the cuurent dates.
- Loading branch information
Showing
10 changed files
with
46 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ __pycache__/ | |
*.log | ||
*.swp | ||
*.tmp | ||
# MacOS special cases | ||
/.tox/ | ||
/pytest/test_rst.py-e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,20 @@ set -e -u | |
# SPDX-FileCopyrightText: Bradley M. Bell <[email protected]> | ||
# SPDX-FileContributor: 2020-24 Bradley M. Bell | ||
# ----------------------------------------------------------------------------- | ||
# bash function that echos and executes a command | ||
# | ||
# echo_eval | ||
echo_eval() { | ||
echo $* | ||
eval $* | ||
} | ||
# | ||
# sed | ||
if which gsed >& /dev/null | ||
then | ||
sed=gsed | ||
else | ||
sed=sed | ||
fi | ||
# ----------------------------------------------------------------------------- | ||
# BEGIN: SECTION THAT DEPENDS ON GIT REPOSITORY | ||
# | ||
|
@@ -30,7 +39,7 @@ version_files=' | |
# create_temp_sed | ||
# The sed script temp.sed is used to check the version number in files above. | ||
function create_temp_sed { | ||
year=$( echo $version | sed -e 's|\..*||' ) | ||
year=$( echo $version | $sed -e 's|\..*||' ) | ||
cat << EOF > temp.sed | ||
# | ||
# xrst/user.xrst | ||
|
@@ -62,7 +71,7 @@ fi | |
# ----------------------------------------------------------------------------- | ||
# check_version | ||
check_version() { | ||
sed "$1" -f temp.sed > temp.out | ||
$sed "$1" -f temp.sed > temp.out | ||
if ! diff "$1" temp.out > /dev/null | ||
then | ||
version_ok='no' | ||
|
@@ -83,12 +92,12 @@ branch=$(git rev-parse --abbrev-ref HEAD) | |
# | ||
# version | ||
version=$( | ||
sed -n -e '/^ *version *=/p' $stable_version_file | \ | ||
sed -e 's|.*= *||' -e "s|'||g" | ||
$sed -n -e '/^ *version *=/p' $stable_version_file | \ | ||
$sed -e 's|.*= *||' -e "s|'||g" | ||
) | ||
if [ "$branch" == 'master' ] || [ "$branch" == 'main' ] | ||
then | ||
version=$(date +%Y.%m.%d | sed -e 's|\.0*|.|g') | ||
version=$(date +%Y.%m.%d | $sed -e 's|\.0*|.|g') | ||
fi | ||
if echo $branch | grep '^stable/' > /dev/null | ||
then | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
# SPDX-FileCopyrightText: Bradley M. Bell <[email protected]> | ||
# SPDX-FileContributor: 2020-23 Bradley M. Bell | ||
# SPDX-FileContributor: 2020-24 Bradley M. Bell | ||
# | ||
[tox] | ||
# see python requires-python in pyproject.toml | ||
envlist = {py3.12, py3.11, py3.10, py3.9, py3.8} | ||
# envlist = {py3.12, py3.11, py3.10, py3.9, py3.8} | ||
# pyenchant does not work on MacOS with older versions of python | ||
envlist = {py3.12, py3.11, py3.10} | ||
skipsdist = true | ||
|
||
[testenv] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,6 +83,7 @@ data = [ | |
''', | ||
# abbreviations | ||
''' | ||
config | ||
dir | ||
toc | ||
tmp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters