Skip to content

Fix a few issues related to "building" scons - #4737

Merged
bdbaddog merged 2 commits into
SCons:masterfrom
mwichmann:pkg-niggles
Jun 22, 2025
Merged

Fix a few issues related to "building" scons#4737
bdbaddog merged 2 commits into
SCons:masterfrom
mwichmann:pkg-niggles

Conversation

@mwichmann

@mwichmann mwichmann commented Jun 22, 2025

Copy link
Copy Markdown
Collaborator

Typo in SConsDoc.py caused Sphinx warn. Sphinx was also issuing this notice:

  Converting `source_suffix = '.rst'` to `source_suffix = {'.rst': 'restructuredtext'}`.

so updated the conf file to reflect that evolution.

Some tweaks to pyproject.toml to reflect some evolution as well. Build was issuing this:

  SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated!!!
  Please use a simple string containing a SPDX expression for `project.license`.
  You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).

Plus, License in Classifiers is deprecated, as is license-files in the [tool.setuptools] section (now it's supposed to be in project.license-files, as it's not a setuptools-specific thing any longer).

Improved, I hope, the package-finder specification.

Added optional dependencies section to match the external requirement-dev.txt and requirements-pkg.txt files. This is supposed to allow installing "in one go", like (currently untested):

 python -m pip install scons[dev]

With one exception, this should produce an identical package build to previously, but without the complaints issued by recent setuptools. The exception is the addition of the license file for docbook-xsl in the package metadata licenses directory, as current packaging standards mandate (like scons-4.9.1.dist-info/licenses/SCons/Tool/docbook/docbook-xsl-1.76.1/COPYING). We could roll this back out, since that file was actually included in its original path already, but not flagged as a license file, just a data file; we could also store it in a more logical place - an example was to put licenses for vendored components in a subdirectory vendor (or similar name).

Typo in SConsDoc.py caused Sphinx warn.  Sphinx was also issuing this notice:

  Converting `source_suffix = '.rst'` to `source_suffix = {'.rst': 'restructuredtext'}`.

so updated the conf file to reflect that evolution.

Some tweaks to pyproject.toml to reflect some evolution as well.
Build was issuing this:

  SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
!!
  Please use a simple string containing a SPDX expression for `project.license`.
  You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).

Plus, License in Classifiers is deprecated, as is license-files in
the [tool.setuptools] section (which moves to the package section.

Improved, I hope, the package-finder specification.

Added optional dependencies section to match the external
requirement-dev.txt and requirements-pkg.txt files. This is supposed
to allow installing "in one go", like (currently untested):

  python -m pip install scons[dev]

Signed-off-by: Mats Wichmann <mats@linux.com>
@mwichmann mwichmann added the Release Any an all issues with releasing and packaging SCons itself label Jun 22, 2025
Got the version syntax for lxml wrong first time.

Signed-off-by: Mats Wichmann <mats@linux.com>
@bdbaddog bdbaddog changed the title Fix a few niggles releaed to "building" scons Fix a few issue related to "building" scons Jun 22, 2025
@bdbaddog bdbaddog changed the title Fix a few issue related to "building" scons Fix a few issues related to "building" scons Jun 22, 2025
@bdbaddog
bdbaddog merged commit 8ddc148 into SCons:master Jun 22, 2025
7 of 8 checks passed
@mwichmann mwichmann added this to 4.10 Jun 22, 2025
@mwichmann mwichmann moved this to Done in 4.10 Jun 22, 2025
@mwichmann
mwichmann deleted the pkg-niggles branch June 22, 2025 21:56
@mwichmann mwichmann added this to the NextRelease milestone Jun 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Release Any an all issues with releasing and packaging SCons itself

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants