Skip to content

Commit

Permalink
Merge branch 'master' into jbrill-gh4320-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbaddog authored Jan 3, 2024
2 parents 9c4887a + 9b01a5c commit 812b694
Show file tree
Hide file tree
Showing 62 changed files with 403 additions and 1,249 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/experimental_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,19 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v4.1.1

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

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

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/framework_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:

steps:
# Checkouut repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v2
- uses: actions/checkout@v4.1.1

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

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/runtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v4.1.1

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

Expand All @@ -46,7 +46,7 @@ jobs:
python runtest.py --all --time --jobs=2
- name: Archive Failed tests ${{ matrix.os }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3.1.3
with:
name: ${{ matrix.os }}-failed-tests
path: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scons-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4.1.1

- name: Set up Python 3.10
uses: actions/setup-python@v2
uses: actions/setup-python@v5.0.0
with:
python-version: '3.10'

Expand Down
4 changes: 4 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER
- Fix issue #4320: add an optional argument list string to configure's CheckFunc
method so that the generated function argument list matches the function's
prototype when including a header file.

From William Deegan:
- Fix sphinx config to handle SCons versions with post such as: 4.6.0.post1

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



RELEASE 4.6.0 - Sun, 19 Nov 2023 17:22:20 -0700

From Max Bachmann:
Expand Down
4 changes: 2 additions & 2 deletions RELEASE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ DOCUMENTATION
DEVELOPMENT
-----------

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

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

git shortlog --no-merges -ns 4.0.1..HEAD
git shortlog --no-merges -ns 4.6.0..HEAD
5 changes: 3 additions & 2 deletions doc/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@
# The full version, including alpha/beta/rc tags:
release = __version__
# The short X.Y version.
major, minor, _ = __version__.split('.')
version = '.'.join([major, minor])
version_parts = __version__.split('.')
major, minor, patch = version_parts[0:3]
version = '.'.join([major, minor,patch])

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
5 changes: 3 additions & 2 deletions doc/user/README
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# __COPYRIGHT__
# SPDX-FileCopyrightText: Copyright The SCons Foundation (https://scons.org)
# SPDX-License-Identifier: MIT

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

To build the .xml files from the .in files:
scons -D BUILDDOC=1 foo.xml
To build the whole PDF doc from this dir, for testing:
scons -D ../../build/doc/PDF/scons-user.pdf
scons -D ../../build/doc/PDF/scons-user.pdf

Writing examples: here's a simple template.

Expand Down
60 changes: 21 additions & 39 deletions doc/user/SConstruct
Original file line number Diff line number Diff line change
@@ -1,57 +1,36 @@
# SPDX-FileCopyrightText: Copyright The SCons Foundation (https://scons.org)
# SPDX-License-Identifier: MIT
#
# SConstruct file for building SCons documentation.
#

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

import os

env = Environment(ENV={'PATH' : os.environ['PATH']},
tools=['docbook','gs','zip'],
toolpath=['../../SCons/Tool'],
# DOCBOOK_XSLTPROCFLAGS="--stringparam fop.extensions 1",
DOCBOOK_DEFAULT_XSL_HTML='html.xsl',
DOCBOOK_DEFAULT_XSL_HTMLCHUNKED='chtml.xsl',
DOCBOOK_DEFAULT_XSL_PDF='pdf.xsl')
env = Environment(
ENV={'PATH': os.environ['PATH']},
tools=['docbook', 'gs', 'zip'],
toolpath=['../../SCons/Tool'],
# DOCBOOK_XSLTPROCFLAGS="--stringparam fop.extensions 1",
DOCBOOK_DEFAULT_XSL_HTML='html.xsl',
DOCBOOK_DEFAULT_XSL_HTMLCHUNKED='chtml.xsl',
DOCBOOK_DEFAULT_XSL_PDF='pdf.xsl',
)

has_pdf = False
if (env.WhereIs('fop') or
env.WhereIs('xep')):
if env.WhereIs('fop') or env.WhereIs('xep'):
has_pdf = True

#
# UserGuide for SCons
#
env.DocbookXInclude('scons_xi.xml', 'main.xml')
env.DocbookXslt('scons_ex.xml', 'scons_xi.xml',
xsl='../xslt/xinclude_examples.xslt')
env.DocbookXslt('scons_ex.xml', 'scons_xi.xml', xsl='../xslt/xinclude_examples.xslt')
env.DocbookXInclude('scons_exi.xml', 'scons_ex.xml')
env.DocbookXslt('scons_db.xml', 'scons_exi.xml',
xsl='../xslt/to_docbook.xslt')
env.DocbookHtml('index.html','scons_db.xml')
env.DocbookXslt('scons_db.xml', 'scons_exi.xml', xsl='../xslt/to_docbook.xslt')
env.DocbookHtml('index.html', 'scons_db.xml')
env.DocbookHtmlChunked('index.html', 'scons_db.xml', base_dir='scons-user/')
if has_pdf:
env.DocbookPdf('scons-user.pdf','scons_db.xml')
env.DocbookPdf('scons-user.pdf', 'scons_db.xml')

has_gs = False
if env.WhereIs('gs'):
Expand All @@ -61,7 +40,10 @@ if env.WhereIs('gs'):
# Create the EPUB format
#
if has_gs and has_pdf:
jpg = env.Gs('OEBPS/cover.jpg','scons-user.pdf',
GSFLAGS='-dNOPAUSE -dBATCH -sDEVICE=jpeg -dFirstPage=1 -dLastPage=1 -dJPEGQ=100 -r72x72 -q')
jpg = env.Gs(
'OEBPS/cover.jpg',
'scons-user.pdf',
GSFLAGS='-dNOPAUSE -dBATCH -sDEVICE=jpeg -dFirstPage=1 -dLastPage=1 -dJPEGQ=100 -r72x72 -q',
)
epub = env.DocbookEpub('scons-user.epub', 'scons_db.xml', xsl='epub.xsl')
env.Depends(epub, jpg)
35 changes: 8 additions & 27 deletions doc/user/actions.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<?xml version='1.0'?>

<!--
SPDX-FileCopyrightText: Copyright The SCons Foundation (https://scons.org)
SPDX-License-Identifier: MIT
-->

<!DOCTYPE sconsdoc [
<!ENTITY % scons SYSTEM "../scons.mod">
%scons;

<!ENTITY % builders-mod SYSTEM "../generated/builders.mod">
%builders-mod;
<!ENTITY % functions-mod SYSTEM "../generated/functions.mod">
Expand All @@ -11,7 +17,7 @@
%tools-mod;
<!ENTITY % variables-mod SYSTEM "../generated/variables.mod">
%variables-mod;

]>

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

<!--
__COPYRIGHT__
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-->

<!--
=head1 Build actions
Expand Down
8 changes: 4 additions & 4 deletions doc/user/add-method.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?xml version='1.0'?>

<!--
SPDX-FileCopyrightText: Copyright The SCons Foundation (https://scons.org)
SPDX-License-Identifier: MIT
Copyright The SCons Foundation
-->

<!DOCTYPE sconsdoc [
<!ENTITY % scons SYSTEM "../scons.mod">
%scons;

<!ENTITY % builders-mod SYSTEM "../generated/builders.mod">
%builders-mod;
<!ENTITY % functions-mod SYSTEM "../generated/functions.mod">
Expand All @@ -17,7 +17,7 @@ Copyright The SCons Foundation
%tools-mod;
<!ENTITY % variables-mod SYSTEM "../generated/variables.mod">
%variables-mod;

]>

<chapter id="chap-add-method"
Expand Down
35 changes: 8 additions & 27 deletions doc/user/alias.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<?xml version='1.0'?>

<!--
SPDX-FileCopyrightText: Copyright The SCons Foundation (https://scons.org)
SPDX-License-Identifier: MIT
-->

<!DOCTYPE sconsdoc [
<!ENTITY % scons SYSTEM "../scons.mod">
%scons;

<!ENTITY % builders-mod SYSTEM "../generated/builders.mod">
%builders-mod;
<!ENTITY % functions-mod SYSTEM "../generated/functions.mod">
Expand All @@ -11,7 +17,7 @@
%tools-mod;
<!ENTITY % variables-mod SYSTEM "../generated/variables.mod">
%variables-mod;

]>

<chapter id="chap-alias"
Expand All @@ -20,31 +26,6 @@
xsi:schemaLocation="http://www.scons.org/dbxsd/v1.0 http://www.scons.org/dbxsd/v1.0/scons.xsd">
<title>Alias Targets</title>

<!--
__COPYRIGHT__
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-->

<para>

We've already seen how you can use the &Alias;
Expand Down
Loading

0 comments on commit 812b694

Please sign in to comment.