Skip to content

Commit 812b694

Browse files
authored
Merge branch 'master' into jbrill-gh4320-fix
2 parents 9c4887a + 9b01a5c commit 812b694

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+403
-1249
lines changed

.github/workflows/experimental_tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,19 @@ jobs:
3232
# Steps represent a sequence of tasks that will be executed as part of the job
3333
steps:
3434
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
35-
- uses: actions/checkout@v2
35+
- uses: actions/checkout@v4.1.1
3636

3737
# experiment: maybe don't need this?
3838
# update: looks like we do: with this commented out, the build hung
3939
- name: Set up MinGW
40-
uses: egor-tensin/setup-mingw@v2
40+
uses: egor-tensin/setup-mingw@v2.2.0
4141
if: matrix.os == 'windows-2019'
4242
with:
4343
platform: x64
44+
static: 0
4445

4546
- name: Set up Python 3.11 ${{ matrix.os }}
46-
uses: actions/setup-python@v2
47+
uses: actions/setup-python@v5.0.0
4748
with:
4849
python-version: '3.11'
4950

.github/workflows/framework_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929

3030
steps:
3131
# Checkouut repository under $GITHUB_WORKSPACE
32-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v4.1.1
3333

3434
- name: Set up Python 3.11 ${{ matrix.os }}
35-
uses: actions/setup-python@v2
35+
uses: actions/setup-python@v5.0.0
3636
with:
3737
python-version: '3.11'
3838

.github/workflows/runtest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
# Steps represent a sequence of tasks that will be executed as part of the job
2929
steps:
3030
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
31-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v4.1.1
3232

3333
- name: Set up Python 3.10 ${{ matrix.os }}
34-
uses: actions/setup-python@v2
34+
uses: actions/setup-python@v5.0.0
3535
with:
3636
python-version: '3.10'
3737

@@ -46,7 +46,7 @@ jobs:
4646
python runtest.py --all --time --jobs=2
4747
4848
- name: Archive Failed tests ${{ matrix.os }}
49-
uses: actions/upload-artifact@v2
49+
uses: actions/upload-artifact@v3.1.3
5050
with:
5151
name: ${{ matrix.os }}-failed-tests
5252
path: |

.github/workflows/scons-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
runs-on: ubuntu-20.04
1515

1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4.1.1
1818

1919
- name: Set up Python 3.10
20-
uses: actions/setup-python@v2
20+
uses: actions/setup-python@v5.0.0
2121
with:
2222
python-version: '3.10'
2323

CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER
1717
- Fix issue #4320: add an optional argument list string to configure's CheckFunc
1818
method so that the generated function argument list matches the function's
1919
prototype when including a header file.
20+
21+
From William Deegan:
22+
- Fix sphinx config to handle SCons versions with post such as: 4.6.0.post1
2023

2124
From Michał Górny:
2225
- Remove unecessary dependencies on pypi packages from setup.cfg
@@ -26,6 +29,7 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER
2629
statement with stop flag enabled
2730

2831

32+
2933
RELEASE 4.6.0 - Sun, 19 Nov 2023 17:22:20 -0700
3034

3135
From Max Bachmann:

RELEASE.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ DOCUMENTATION
5757
DEVELOPMENT
5858
-----------
5959

60-
- List visible changes in the way SCons is developed
60+
- Fix sphinx config to handle SCons versions with post such as: 4.6.0.post1
6161

6262
Thanks to the following contributors listed below for their contributions to this release.
6363
==========================================================================================
6464
.. code-block:: text
6565

66-
git shortlog --no-merges -ns 4.0.1..HEAD
66+
git shortlog --no-merges -ns 4.6.0..HEAD

doc/sphinx/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@
9898
# The full version, including alpha/beta/rc tags:
9999
release = __version__
100100
# The short X.Y version.
101-
major, minor, _ = __version__.split('.')
102-
version = '.'.join([major, minor])
101+
version_parts = __version__.split('.')
102+
major, minor, patch = version_parts[0:3]
103+
version = '.'.join([major, minor,patch])
103104

104105
# The language for content autogenerated by Sphinx. Refer to documentation
105106
# for a list of supported languages.

doc/user/README

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# __COPYRIGHT__
1+
# SPDX-FileCopyrightText: Copyright The SCons Foundation (https://scons.org)
2+
# SPDX-License-Identifier: MIT
23

34
When adding a new file, add it to main.xml and MANIFEST.
45

56
To build the .xml files from the .in files:
67
scons -D BUILDDOC=1 foo.xml
78
To build the whole PDF doc from this dir, for testing:
8-
scons -D ../../build/doc/PDF/scons-user.pdf
9+
scons -D ../../build/doc/PDF/scons-user.pdf
910

1011
Writing examples: here's a simple template.
1112

doc/user/SConstruct

Lines changed: 21 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,36 @@
1+
# SPDX-FileCopyrightText: Copyright The SCons Foundation (https://scons.org)
2+
# SPDX-License-Identifier: MIT
13
#
24
# SConstruct file for building SCons documentation.
35
#
46

5-
#
6-
# __COPYRIGHT__
7-
#
8-
# Permission is hereby granted, free of charge, to any person obtaining
9-
# a copy of this software and associated documentation files (the
10-
# "Software"), to deal in the Software without restriction, including
11-
# without limitation the rights to use, copy, modify, merge, publish,
12-
# distribute, sublicense, and/or sell copies of the Software, and to
13-
# permit persons to whom the Software is furnished to do so, subject to
14-
# the following conditions:
15-
#
16-
# The above copyright notice and this permission notice shall be included
17-
# in all copies or substantial portions of the Software.
18-
#
19-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
20-
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
21-
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
23-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
24-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
25-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26-
277
import os
288

29-
env = Environment(ENV={'PATH' : os.environ['PATH']},
30-
tools=['docbook','gs','zip'],
31-
toolpath=['../../SCons/Tool'],
32-
# DOCBOOK_XSLTPROCFLAGS="--stringparam fop.extensions 1",
33-
DOCBOOK_DEFAULT_XSL_HTML='html.xsl',
34-
DOCBOOK_DEFAULT_XSL_HTMLCHUNKED='chtml.xsl',
35-
DOCBOOK_DEFAULT_XSL_PDF='pdf.xsl')
9+
env = Environment(
10+
ENV={'PATH': os.environ['PATH']},
11+
tools=['docbook', 'gs', 'zip'],
12+
toolpath=['../../SCons/Tool'],
13+
# DOCBOOK_XSLTPROCFLAGS="--stringparam fop.extensions 1",
14+
DOCBOOK_DEFAULT_XSL_HTML='html.xsl',
15+
DOCBOOK_DEFAULT_XSL_HTMLCHUNKED='chtml.xsl',
16+
DOCBOOK_DEFAULT_XSL_PDF='pdf.xsl',
17+
)
3618

3719
has_pdf = False
38-
if (env.WhereIs('fop') or
39-
env.WhereIs('xep')):
20+
if env.WhereIs('fop') or env.WhereIs('xep'):
4021
has_pdf = True
4122

4223
#
4324
# UserGuide for SCons
4425
#
4526
env.DocbookXInclude('scons_xi.xml', 'main.xml')
46-
env.DocbookXslt('scons_ex.xml', 'scons_xi.xml',
47-
xsl='../xslt/xinclude_examples.xslt')
27+
env.DocbookXslt('scons_ex.xml', 'scons_xi.xml', xsl='../xslt/xinclude_examples.xslt')
4828
env.DocbookXInclude('scons_exi.xml', 'scons_ex.xml')
49-
env.DocbookXslt('scons_db.xml', 'scons_exi.xml',
50-
xsl='../xslt/to_docbook.xslt')
51-
env.DocbookHtml('index.html','scons_db.xml')
29+
env.DocbookXslt('scons_db.xml', 'scons_exi.xml', xsl='../xslt/to_docbook.xslt')
30+
env.DocbookHtml('index.html', 'scons_db.xml')
5231
env.DocbookHtmlChunked('index.html', 'scons_db.xml', base_dir='scons-user/')
5332
if has_pdf:
54-
env.DocbookPdf('scons-user.pdf','scons_db.xml')
33+
env.DocbookPdf('scons-user.pdf', 'scons_db.xml')
5534

5635
has_gs = False
5736
if env.WhereIs('gs'):
@@ -61,7 +40,10 @@ if env.WhereIs('gs'):
6140
# Create the EPUB format
6241
#
6342
if has_gs and has_pdf:
64-
jpg = env.Gs('OEBPS/cover.jpg','scons-user.pdf',
65-
GSFLAGS='-dNOPAUSE -dBATCH -sDEVICE=jpeg -dFirstPage=1 -dLastPage=1 -dJPEGQ=100 -r72x72 -q')
43+
jpg = env.Gs(
44+
'OEBPS/cover.jpg',
45+
'scons-user.pdf',
46+
GSFLAGS='-dNOPAUSE -dBATCH -sDEVICE=jpeg -dFirstPage=1 -dLastPage=1 -dJPEGQ=100 -r72x72 -q',
47+
)
6648
epub = env.DocbookEpub('scons-user.epub', 'scons_db.xml', xsl='epub.xsl')
6749
env.Depends(epub, jpg)

doc/user/actions.xml

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
<?xml version='1.0'?>
2+
3+
<!--
4+
SPDX-FileCopyrightText: Copyright The SCons Foundation (https://scons.org)
5+
SPDX-License-Identifier: MIT
6+
-->
7+
28
<!DOCTYPE sconsdoc [
39
<!ENTITY % scons SYSTEM "../scons.mod">
410
%scons;
5-
11+
612
<!ENTITY % builders-mod SYSTEM "../generated/builders.mod">
713
%builders-mod;
814
<!ENTITY % functions-mod SYSTEM "../generated/functions.mod">
@@ -11,7 +17,7 @@
1117
%tools-mod;
1218
<!ENTITY % variables-mod SYSTEM "../generated/variables.mod">
1319
%variables-mod;
14-
20+
1521
]>
1622

1723
<chapter id="chap-actions"
@@ -20,31 +26,6 @@
2026
xsi:schemaLocation="http://www.scons.org/dbxsd/v1.0 http://www.scons.org/dbxsd/v1.0/scons.xsd">
2127
<title>&SCons; Actions</title>
2228

23-
<!--
24-
25-
__COPYRIGHT__
26-
27-
Permission is hereby granted, free of charge, to any person obtaining
28-
a copy of this software and associated documentation files (the
29-
"Software"), to deal in the Software without restriction, including
30-
without limitation the rights to use, copy, modify, merge, publish,
31-
distribute, sublicense, and/or sell copies of the Software, and to
32-
permit persons to whom the Software is furnished to do so, subject to
33-
the following conditions:
34-
35-
The above copyright notice and this permission notice shall be included
36-
in all copies or substantial portions of the Software.
37-
38-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
39-
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
40-
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
41-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
42-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
43-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
44-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
45-
46-
-->
47-
4829
<!--
4930
5031
=head1 Build actions

0 commit comments

Comments
 (0)