442 Commits

Author SHA1 Message Date
Scott Talbert
920a2bde76 Move requests back to a lazy import again
Some checks failed
ci-build / build-source-dist (push) Has been cancelled
ci-build / Build wxPython documentation (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.10) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.11) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.12) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.13) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.9) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.10) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.11) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.12) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.13) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.9) (push) Has been cancelled
ci-build / Publish Python distribution to PyPI (push) Has been cancelled
ci-build / Create GitHub Release and upload source (push) Has been cancelled
ci-build / Upload wheels to snapshot-builds on wxpython.org (push) Has been cancelled
This way, it isn't required unless actually needed.
2025-04-11 19:55:58 -04:00
Scott Talbert
bc1c9ce174 Build wxWidgets with libtiff v4.7.0 and pcre v10.44
Fixes: https://github.com/wxWidgets/Phoenix/issues/2720
Fixes: https://github.com/wxWidgets/Phoenix/issues/2659
2025-04-08 21:59:56 -04:00
Scott Talbert
c9f0e39100 Add support for building on Windows ARM64
Some checks failed
ci-build / build-source-dist (push) Has been cancelled
ci-build / Build wxPython documentation (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.10) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.11) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.12) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.13) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.9) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.10) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.11) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.12) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.13) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.9) (push) Has been cancelled
ci-build / Publish Python distribution to PyPI (push) Has been cancelled
ci-build / Create GitHub Release and upload source (push) Has been cancelled
ci-build / Upload wheels to snapshot-builds on wxpython.org (push) Has been cancelled
2025-03-16 19:25:56 -04:00
Scott Talbert
f49f0b446d Merge pull request #2695 from neofelis2X/docs_sphinx_latest
Some checks failed
ci-build / build-source-dist (push) Has been cancelled
ci-build / Build wxPython documentation (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.10) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.11) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.12) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.13) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.9) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.10) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.11) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.12) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.13) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.9) (push) Has been cancelled
ci-build / Publish Python distribution to PyPI (push) Has been cancelled
ci-build / Create GitHub Release and upload source (push) Has been cancelled
ci-build / Upload wheels to snapshot-builds on wxpython.org (push) Has been cancelled
Add support for building documentation with latest sphinx
2025-03-02 19:50:39 -05:00
Scott Talbert
1766336e55 Don't enable wxWidgets universal binary build by default
When building on arm64 this causes wxWidgets to be built as x86_64.
Instead we just want to build the native arch by default.
2025-02-27 20:19:26 -05:00
neofelis2X
1219d1e896 fixup! Docs: add script that sorts wxStyledTextCtrl into categories 2025-02-27 18:55:45 +01:00
neofelis2X
1a982a2b76 fixup! Docs: update linux doxygen md5 hash 2025-02-27 02:47:56 +01:00
neofelis2X
4270f9235c Docs: update linux doxygen md5 hash 2025-02-24 23:31:49 +01:00
neofelis2X
fe7ad1a0a1 Docs: fix sphinx (win) could not handle spaces in path 2025-02-24 23:25:48 +01:00
neofelis2X
aa5d3f0996 refactor getTool and add support for .tar.bz2 files 2025-02-24 23:25:19 +01:00
neofelis2X
c08cb26c35 Docs: doc2dash now needs file-extension added to the --name 2025-02-24 23:03:36 +01:00
neofelis2X
06e8b9917b Docs: write sphinx warnings to log file in html directory 2025-02-24 23:03:36 +01:00
neofelis2X
b7c921bdf5 Docs: test with Doxygen 1.9.1, same version as wxWidgets uses 2025-02-24 23:03:36 +01:00
Scott Talbert
ea1d541ef4 Update waf to v2.1.5
This is needed primarily for supporting Windows ARM64.
2025-02-09 17:12:53 -05:00
Edouard Choinière
e080cd9522 Merge branch 'master' into build.py-fixes 2025-02-09 12:09:06 -05:00
Edouard Choinière
616f65c7d6 Use pathlib write_text for more situations in build.py 2025-02-08 16:16:52 +00:00
Edouard Choinière
36fbef4c19 Replace textfile_open wrapper with pure calls in build.py
textfile_wrapper doesn't wrap much since Python 2 hybridation is removed
2025-02-08 16:16:42 +00:00
Edouard Choinière
450f106469 Use pathlib's read_text()/write_text() and read_bytes()/write_bytes() for simple file IO in build.py 2025-02-08 16:16:42 +00:00
Edouard Choinière
a50ae3da22 Only import Path from pathlib in build.py 2025-02-08 16:16:31 +00:00
Edouard Choinière
5c06e43ae3 style: Fix sorted-min-max (FURB192) in build.py
Prefer `min` over `sorted()` to compute the minimum value in a sequence

Ruff rule: https://docs.astral.sh/ruff/rules/sorted-min-max/
2025-02-08 16:16:15 +00:00
Edouard Choinière
b8fd58a029 style: Fix repeated-append (FURB113) in build.py
Use `cmd.extend(('-i', img))` instead of repeatedly calling `cmd.append()`
Ruff rule: https://docs.astral.sh/ruff/rules/repeated-append/
2025-02-08 15:04:10 +00:00
Edouard Choinière
f32b3dd289 Remove references to Python 2.7 defaults from build.py 2025-02-08 14:32:55 +00:00
Scott Talbert
a29322f678 Remove shutil.which backport - it was added in Python 3.3 2025-02-03 20:31:24 -05:00
Scott Talbert
b0bde88a2c Remove pathlib2 backport - pathlib was added in Python 3.4 2025-02-03 20:22:26 -05:00
Alexandre Detiste
323e78c085 remove more Python2 hybridation 2025-02-02 20:29:49 -05:00
Alexandre Detiste
0257f755cf remove most of Python2 compatibility code 2025-02-02 20:17:45 -05:00
Edouard Choinière
7819799d0d Sort almost all usages of glob.glob for reproducible output
This will help diff-ing logs between invocations to see what is changing when refactoring. When used for creating an archive, it will help creating a reproducible file.
2025-01-28 03:28:11 +00:00
Edouard Choinière
c30fe8a95c Sort sources in generated .sbf files to be reproducible 2025-01-28 03:22:43 +00:00
Scott Talbert
09603e0776 Update waf to v2.1.3
Fixes: https://github.com/wxWidgets/Phoenix/issues/2634
2024-11-04 22:41:16 -05:00
Kazuya O'moto
0da5a0bd5c Modify import from setuptools.modified 2024-09-11 01:51:09 +09:00
Kazuya O'moto
45d50d4553 Don't warn build process with distutils
Porting from Distutils:
Change distutils.dep_util --> setuptools.modified.
https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html
https://peps.python.org/pep-0632/
2024-09-07 01:39:25 +09:00
Scott Talbert
d809a7e509 Update waf to 2.1.2 2024-09-01 10:10:57 -04:00
Robin Dunn
f56d65daaa Migrate CI from Azure Pipelines to GitHub Actions
Some checks are pending
ci-build / build-source-dist (push) Waiting to run
ci-build / build-wheels (x64, macos-13, 3.10) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.11) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.12) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.13-dev) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.8) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.9) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.10) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.11) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.12) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.13-dev) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.8) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.9) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.10) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.11) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.12) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.13-dev) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.8) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.9) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.10) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.11) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.12) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.13-dev) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.8) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.9) (push) Blocked by required conditions
* Add --quiet option

* First pass on github workflow for CI

* Comment out the 2nd job for now

* Changes and tweaks from what I learned in a test project

* We also need to run the dox command

* Set PYTHONUNBUFFERED in the workflow

* Copy sip.h when the siplib is (re)created, instead of later during the build

* generate version modules in cmd_sdist too

* More fixes for building an sdist in a clean folder

* install gettext

* sudo

* Add build-wheels job

* add apt update

* Explicitly install libunwind-dev to workaround a package dependency bug

* Split the generate and the sdist step into 2 steps.

* fixes for building sdist on Windows, and also enable some additional MSVC info when building

* Use ilammy/msvc-dev-cmd to set up MSVC

* Comment out some no longer needed debug prints

* Add remaining matrix entries

* Uninstall wxPython at the end of the test, turn off fail-fast.

* uninstall --yes

* Add builds for Python 3.12 and 3.13

* Pin setuptools to < 74 on Windows due to removal of setuptools.msvc

* Remove Azure pipelines

* Try building on macOS x86 (not ARM)

* Update actions versions to non-deprecated ones

* Use macOS 13 (-large images seem to not be available on free accounts)

* avoid using -latest to avoid surprises later

* fix typo

* Remove checkout step from matrix (shouldn't be needed?)

* Revert "Remove checkout step from matrix (shouldn't be needed?)"

This reverts commit 385ef5c832.

---------

Co-authored-by: Scott Talbert <swt@techie.net>
2024-09-01 10:06:02 -04:00
Scott Talbert
32a144734b Update tools URL to use GitHub Pages 2024-08-28 19:24:36 -04:00
Scott Talbert
2c6307142f Update sip to v6.8.3 and fix deprecations 2024-02-12 23:20:17 -05:00
Scott Talbert
e5c92b3056 Use new tarfile.extractall() filter for safer tarfile extraction
The tarfile.extractall() filter argument was introduced in the most
recent CPython releases (e.g., 3.11.4) to avoid potential security
issues when extracting from potentially hostile tarballs.  Let's use
this option if it is available and provide a warning if it is now.
2023-08-03 16:25:07 -04:00
Robin Dunn
8bdbeb7fec Enable building a source archive without the sphinx files. This enables a source archive to be made without a full build. 2023-06-02 07:42:24 -07:00
Scott Talbert
969c2d1635 Indicate sip 6.6.2+ is required when building with sip-build 2022-08-10 11:01:38 -04:00
Robin Dunn
ddc8ad6ad1 Update waf to 2.0.24 (for Python 3.11) 2022-08-07 12:52:18 -07:00
Robin Dunn
70719f64f5 Improve readability of the toml string 2022-08-05 19:50:04 -07:00
Scott Talbert
3a20dd4d70 Fix inclusion of siplib and sip.h in sdist with sip 6.6.2
Since these files are no longer tracked in git, they need to be
explicitly included in the sdist.

Fixes #2207.
2022-07-09 11:00:10 -04:00
Robin Dunn
edf1cf070b Ensure that PYTHON's folder is on the PATH 2022-07-01 08:32:07 -07:00
Robin Dunn
6238e37659 Match "#line" lines with leading whitespace 2022-06-30 15:46:10 -07:00
Robin Dunn
1a77d37cfd Ignore the siplib folder. Use the full pathname of the sbf file 2022-06-30 15:14:51 -07:00
Robin Dunn
369d49f621 Merge branch 'swt2c-sip6' 2022-06-30 14:13:57 -07:00
Robin Dunn
9d4ed22309 Fix clean_wx command for MSW 2022-06-29 09:28:46 -07:00
Scott Talbert
90171ba216 Update to use sip 6.6.x
1) Switch to running sip using its new sip-build command line interface,
   which requires writing out a pyproject.toml to configure it.
2) Generate the sip build file (sbf) ourselves since sip no longer writes
   them.
3) Remove the embedded sip module code and generate it on the fly during
   the build process.

Fixes #2169.
2022-06-18 13:54:17 -04:00
Robin Dunn
c2dbb03e92 Explicitly build for both architectures on Mac instead of expecting it to be done by default. 2022-06-01 10:08:47 -07:00
Robin Dunn
f58bb9e355 little tweaks 2022-05-31 17:34:18 -07:00
Robin Dunn
3bfda1918a Add some debug prints 2022-05-18 07:44:00 -07:00