rdb
39e4e4167c
CMake: Switch use of distutils.sysconfig to sysconfig in Python 3.12
...
Part of #1395
2023-10-15 11:43:42 +02:00
rdb
c48fcba3d8
CMake: build tinydisplay using CMake
...
Based on work by @toadkarter (#1487 ) and @pmp-p (#1547 )
Fixes #1481
2023-10-15 11:34:47 +02:00
rdb
a6ab238abc
Merge branch 'release/1.10.x' into incoming
2023-10-14 21:35:00 +02:00
rdb
5e4fc7999e
Switch to 1.10.14 thirdparties, enable Python 3.12 CI on Windows
2023-10-14 21:25:42 +02:00
rdb
1db6dbc166
tests: Don't cache loaded test model
2023-10-14 21:24:22 +02:00
rdb
476374b814
tests: Don't run tkpanels.Placer test without Tk already inited
...
Necessary for being able to run test suite on macOS
2023-10-14 20:07:35 +02:00
rdb
87e69b71bf
workflow: Add $pythonLocation/lib
to LD_LIBRARY_PATH for tests
2023-10-14 19:38:22 +02:00
rdb
9dce403bee
tinydisplay: fix missing include in zmath.h
2023-10-14 18:05:47 +02:00
rdb
f9c213fcbb
tests: Run runtime executable generated by FreezeTool test
2023-10-14 17:35:16 +02:00
rdb
b2465c3b38
tests: Fix running tests on Windows and with Python 2.7
2023-10-14 17:31:35 +02:00
rdb
d368fac3e3
pstats: Update macOS timeline view to show more of collector name
...
Now shows the parent collector name if there's room and a single character if there's no room for anything more, just like the other implementations
2023-10-14 14:25:45 +02:00
rdb
10110cbfff
CMake: Build PStats port for macOS
2023-10-14 12:59:18 +02:00
rdb
98330b586f
Add setuptools to requirements-test.txt
2023-10-14 12:58:45 +02:00
rdb
972c0009ac
workflow: Add setuptools as requirement when testing Python 3.12
2023-10-14 11:29:02 +02:00
rdb
c1c035d5c9
showbase: Switch Loader entry point detection to importlib.metadata
...
Only in Python 3.8 and up, where this module is available, otherwise it falls back to pkg_resources
Add unit test for custom entry point loaders
2023-10-14 11:27:46 +02:00
rdb
c77697a2c0
pytest: Don't skip "dist" directory in test discovery
2023-10-14 09:55:51 +02:00
rdb
f24a18f45e
tests: Add unit test for Freezer.generateRuntimeFromStub
2023-10-14 09:55:37 +02:00
rdb
6f89b8e720
makepanda: Remove stray distutils import
2023-10-13 23:32:48 +02:00
rdb
e627c7c63d
particles: Fix deprecation warning
2023-10-13 23:30:21 +02:00
rdb
5b041474ff
glgsg: Fix wrong value for deprecated shadowMatrix shader input
2023-10-13 23:29:21 +02:00
rdb
e01cb590de
Merge branch 'release/1.10.x'
2023-10-13 23:24:48 +02:00
rdb
c45e14a563
interrogatedb: Switch T_OBJECT to T_OBJECT_EX for this_metatype
...
T_OBJECT has been deprecated.
2023-10-13 21:21:29 +02:00
WMOkiishi
098fe634a5
task: Annotate core functions ( #1548 )
2023-10-13 21:20:20 +02:00
rdb
bf456baa35
workflow: Skip Python 3.12 tests on Windows for now
...
Until we've added Python 3.12 to thirdparty packages
2023-10-13 13:35:40 +02:00
rdb
e4738194d5
pfreeze: use clang, fix missing path with non-system Python on macOS
2023-10-13 13:22:17 +02:00
rdb
2a5228b05f
Fix compatibility with Python 3.12 by removing use of imp module
...
Some modules (such as VFSImporter, and various modules in direct.p3d that depend on it) are still unavailable.
2023-10-13 13:21:34 +02:00
rdb
7f0eafcc27
workflow: Disable Python 3.7 CI, enable Python 3.12 CI
2023-10-13 12:10:08 +02:00
rdb
225b577ccd
tests: Skip Cg tests on arm64 machines
2023-10-13 10:55:17 +02:00
Mitchell Stokes
893f5ce492
Fix assert on Py_SIZE(long) when using Python 3.12
...
Starting with Python 3.12, passing a PyLong into Py_SIZE() triggers an
assertion. PyLong (and the whole C API) is transitioning to be more
opaque and expose fewer implementation details.
2023-10-13 10:54:33 +02:00
Mitchell Stokes
521cad206d
makepanda: Stop using deprecated distutils ( #1549 )
...
Just duplicating locations.py from direct. It's a bit ugly, but
makepanda is getting phased out anyways.
Co-authored-by: rdb <git@rdb.name>
2023-10-13 10:13:28 +02:00
David Crompton
ad8882123b
Panda3DToolsGUI: Update setup.py to use setuptools and change Print statements to Python3 syntax
2023-10-11 19:25:42 -07:00
rdb
5685949588
shader: Fix regression fetching material shader inputs
2023-10-11 16:07:55 +02:00
rdb
79a60688ce
pnmimage: Support reading of .bmp files with RLE8 compression
2023-10-11 15:53:57 +02:00
rdb
c00f3b18f5
direct: More reduction of reliance on builtins, mypy fixes
2023-10-11 11:07:56 +02:00
rdb
3922800aa4
tkpanels: Fix error running with Python 3.8
2023-10-11 10:26:56 +02:00
rdb
b6eee1045a
direct: Reduce dependence on builtins, satisfy mypy a bit more
2023-10-11 00:20:34 +02:00
LD
ae3cbe4b12
cocoadisplay: Add support for high-dpi screens ( #1308 )
2023-10-10 16:56:04 +02:00
Kylie Smith
e55bb94996
Added missing control message types
2023-10-10 13:03:36 +02:00
rdb
f7718b466b
direct: Fix assorted issues when using mypyc
2023-10-10 12:52:26 +02:00
rdb
ef25b67ddb
interval: Remove unrunnable IntervalTest module
2023-10-10 12:45:21 +02:00
rdb
b8ea788440
display: Fix shadowViewMatrix regression for NodePath shader inputs
...
Stopped working in ba388e28666e28b752d326ba0e680421db3c9bb1
2023-10-09 17:44:36 +02:00
rdb
93a75d8fe2
Merge branch 'release/1.10.x'
2023-10-09 17:43:02 +02:00
rdb
d5263b597b
makepanda: Strip version suffixes when parsing setup.cfg metadata
...
Fixes #1539
2023-10-09 17:02:57 +02:00
rdb
a2fa54f385
gobj: fix _contexts != nullptr
assert when prepare fails
2023-10-09 16:52:45 +02:00
rdb
dcc96a60b1
makepanda: Make version parsing in CreatePandaVersionFiles more robust
2023-10-09 16:50:59 +02:00
rdb
ae4151c9e1
showbase: Fix import of Loader if AudioLoadRequest is not available
2023-10-09 12:51:52 +02:00
rdb
86aa437804
dtoolbase: Fix static init ordering regression
...
This was a regression in bf65624298b9a5ea49cb637fadb4fc6f7c85ce9b that caused crashes on startup in static builds due to the "small" DeletedBufferChain array not being initialized early enough
For some reason it wasn't being constant-initialized, it is now by setting the _buffer_size field to 0 initially and changing it later in get_deleted_chain
2023-10-09 12:49:04 +02:00
WMOkiishi
1ca0e3f1ea
directnotify: annotate types ( #1527 )
2023-10-09 09:46:32 +02:00
rdb
526994c302
pview: Don't require a window in screenshot mode
2023-10-08 23:36:59 +02:00
rdb
e5869ac750
pview: Fix camera positioning differences with offscreen window
2023-10-08 23:30:00 +02:00