92 Commits

Author SHA1 Message Date
Michał Górny
6bfdec45df Fix using setuptools.build_meta backend
Add the current directory path to `sys.path` explicitly, in order to fix
using the correct `setuptools.build_meta` backend.  The legacy backend
is only meant to be used implicitly for packages that have not been
ported to PEP 517 builds yet, and using it explicitly is invalid.
The correct solution here is to set the import path correctly.
2025-04-11 15:53:22 +02:00
Edouard Choinière
f8c85711c9 Remove haveWheel condition in setup.py
Remove wheel devel dependency
2025-02-08 13:14:22 +00:00
Edouard Choinière
eef0ba41e8 Extract entry point scripts to pyproject.toml 2025-02-04 02:06:50 +00:00
Edouard Choinière
9ae5c112b4 Extract static metadata from setup.py 2025-02-04 01:59:20 +00:00
Edouard Choinière
961d14b9cc Introduce basic pyproject.toml, supporting existing build methods only (#2687)
* Add pyproject.toml with only name and dynamic fields

* Add build-system section to pyproject.toml with build requirements

Explicitly set the fallback build backend `setuptools.build_meta:__legacy__`

* Replace wheel.bdist_wheel import with setuptools equivalent

There is a deprecation warning that will be enforced in october 2025

* Package `requests[security]` is a no-op since 2.26.0, published 2021-07-13, use only `requests >= 2.26.0`

* Add setuptools package configuration to pyproject.toml

* Exclude packages found at top level with setuptools config

Exclude buildtools/backports package found at top level with setuptools config

* Add dynamic metadata in setup-wxsvg.py too to avoid failing the build

---------

Co-authored-by: Edouard Choinière <echoix@users.noreply.github.com>
2025-02-03 19:52:44 -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
Scott Talbert
acaa60d2f6 setup.py: add a long_description_content_type
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
ci-build / Publish Python distribution to TestPyPI (push) Blocked by required conditions
2024-09-04 12:24:41 -04:00
Scott Talbert
cdf786ac5b Add Python 3.12 to classifiers 2024-01-29 20:16:35 -05:00
Oleksis Fraga Menéndez
1f09b20850 Add 3.11 in classifiers 2023-06-02 06:31:55 -04:00
Scott Talbert
87b606aa04 Remove deprecated setuptools options use_2to3 and license-file 2023-04-21 17:10:54 -04:00
Oscar Gustafsson
cc1ff6809e Remove 3.6, add 3.10 2022-06-05 21:08:39 +02:00
Robin Dunn
4196fccb9e Add documentation link 2022-05-21 12:28:26 -07:00
Andrii Oriekhov
6fbc3a16b5 add GitHub URL for PyPi 2022-03-05 12:51:36 +02:00
Andrii Oriekhov
8f87b7963a add GitHub URL for PyPi 2022-03-05 12:50:47 +02:00
Robin Dunn
f321c561ad various tweaks and fixes for wxWidgets update 2021-07-24 16:03:21 -07:00
Robin Dunn
03e2f70dff Update project classifiers 2020-10-13 22:06:13 -07:00
Robin Dunn
aa8430ad39 Fix error with symlinks when building the wheel on Linux 2020-04-23 15:14:41 -07:00
Per A. Brodtkorb
e4e8bf8317 Fixes issue 1571:
Adding missing close for open.
If the "close()" call is missing after a "open(filename)" call, the filename isn't guaranteed to be closed before the interpreter exits.
This is generally a bad practice as explained here: https://stackoverflow.com/questions/7395542/is-explicitly-closing-files-important

Also replaced "fid=open(filename) fid.close()" statements for files with the safer
"with open(filename) as fid:" blocks. See https://www.python.org/dev/peps/pep-0343/
2020-03-23 17:16:44 +01:00
Robin Dunn
9f2cc54b48 Update copyright years 2020-03-10 11:41:39 -07:00
Robin Dunn
d214e606db Split the requirements list into two lists, load install_requires list from one of them.
(cherry picked from commit 4b3f422806)
2019-05-21 12:17:20 -07:00
Robin Dunn
8f6580eeb1 Revert "Set the setuptools dependencies from requirements.txt"
This reverts commit 55691ae1f6.

(cherry picked from commit 466daf7e5f)
2019-05-21 10:06:50 -07:00
Robin Dunn
221a98e902 Merge pull request #1223 from RobinD42/more-build-tweaks
More build tweaks

(cherry picked from commit d1b79db2a9)
2019-05-13 19:59:29 -07:00
Robin Dunn
122d28fc4c Add Python 3.7 to the classifiers
(cherry picked from commit 6b6f2a932f)
2018-11-08 15:29:35 -08:00
Robin Dunn
e9e3736fa0 Merge pull request #1035 from RobinD42/fix-issue961
include wxpy_api.h

(cherry picked from commit 7300aa4718)
2018-10-11 21:15:10 -07:00
Robin Dunn
4b6ee40a14 Merge pull request #938 from RobinD42/fix-issue932-b
Restore wx.lib.pubsub, and officially deprecate
(cherry picked from commit 8fad2231a0)
2018-07-20 16:45:05 -07:00
Carnë Draug
1d4f3879f9 setup.py: list dependency on PIL used in a few wx.lib.agw modules 2018-07-02 22:10:54 +01:00
Robin Dunn
b77c88a280 Merge tag 'wxPython-4.0.2' into wxPy-4.0.x
(cherry picked from commit 4c56c39e52)
2018-06-17 22:04:22 -07:00
Robin Dunn
161f1a8b03 Update development status 2018-04-28 21:27:09 -07:00
Mesalu
13eda52013 Add PyPubSub to relevant dependencies 2018-03-18 12:37:45 -07:00
Metallicow
c76384d458 Trim trailing whitespace *.py files 2018-01-16 08:47:07 -06:00
Robin Dunn
60dbde834b '&' --> 'and' and some other text tweaks 2017-08-08 19:44:26 -07:00
Steve Barnes
d7e694d2e2 Detailed changes in CHANGES.rst and added to the LONG_DESCRIPTION in setup.py 2017-08-08 07:15:59 +01:00
Steve Barnes
97de5b0f92 Added wx/tools/wxget_docs_demo.py with script entry points of wxdemo and wxdocs 2017-08-07 06:26:53 +01:00
Robin Dunn
01310520ee Update classifiers and author_email 2017-07-23 19:48:38 -07:00
Robin Dunn
affe39d257 Let's call it beta 1, and a few other tweaks and updates. 2017-07-22 17:38:53 -07:00
Robin Dunn
34783b3735 Some main.html --> index.html changes 2017-07-21 08:53:06 -07:00
Robin Dunn
09d1c25cb8 New URL at Sourceforge for the release-extras files 2017-07-05 09:40:10 -07:00
Robin Dunn
e5b4c33421 (re)fetch the license files from wxWidgets when building the sdist,
and ensure it is included in the distribution.
2017-06-23 12:10:23 -07:00
Robin Dunn
676db7b5d1 The pythonhosted.org site is terribly slow. Put the docs at docs.wxpython.org instead. 2017-06-03 18:03:21 -07:00
Robin Dunn
279ba6e881 Various bits about the release-extras location, etc. 2017-05-02 15:52:57 -07:00
Robin Dunn
c823d28032 Info about where the extra release files can be found 2017-05-02 15:52:57 -07:00
Robin Dunn
b7e0535b57 Add user-interface keyword 2017-04-18 18:53:16 -07:00
Robin Dunn
5360b7b688 build-tweaks 2017-04-16 18:34:23 -07:00
Robin Dunn
923f4d9c2c Update Trove Classifiers 2017-04-12 10:44:29 -07:00
Robin Dunn
f10e966484 More text updates in the README and setup.py descriptions 2017-04-07 12:27:02 -07:00
Robin Dunn
62666b38ba Various minor text tweaks here and there 2017-04-06 11:34:50 -07:00
Robin Dunn
349ec7648f Also have just one place to set the project name 2017-04-05 13:39:01 -07:00
Robin Dunn
4fd36fd137 Merge branch 'master' into release-prep 2017-04-04 13:20:28 -07:00
Andrew Murray
634dda427c Removed unused variables 2017-04-04 19:37:55 +10:00
Robin Dunn
e0e08543fb Set the download link to be the PyPI page 2017-03-31 13:19:52 -07:00