Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[project]
name = "wxPython"
dynamic = [
"authors",
"classifiers",
"dependencies",
"description",
"keywords",
"license",
"readme",
"scripts",
"urls",
"version",
]

[build-system]
requires = [
"setuptools>=70.1",
"cython == 3.0.10",
"requests >= 2.26.0",
"sip == 6.9.1",
]
# Using "setuptools.build_meta:__legacy__" instead of "setuptools.build_meta" for now.
# Allows to have access to the folder on the search path when building, like before.
build-backend = "setuptools.build_meta:__legacy__"

[tool.setuptools.packages.find]
exclude = ["src", "buildtools*", "etgtools", "sphinxtools", "src", "unittests"]
namespaces = false
3 changes: 1 addition & 2 deletions requirements/devel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ sip == 6.9.1

wheel
twine
requests
requests[security]
requests >= 2.26.0
cython==3.0.10
pytest
pytest-xdist
Expand Down
25 changes: 25 additions & 0 deletions setup-wxsvg.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,28 @@
DOWNLOAD_URL = "https://pypi.org/project/wxPython"
LICENSE = "wxWindows Library License (https://opensource.org/licenses/wxwindows.php)"
PLATFORMS = "WIN32,WIN64,OSX,POSIX"
KEYWORDS = "GUI,wx,wxWindows,wxWidgets,cross-platform,user-interface,awesome"

CLASSIFIERS = """\
Development Status :: 6 - Mature
Environment :: MacOS X :: Cocoa
Environment :: Win32 (MS Windows)
Environment :: X11 Applications :: GTK
Intended Audience :: Developers
License :: OSI Approved
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows :: Windows 7
Operating System :: Microsoft :: Windows :: Windows 10
Operating System :: POSIX
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: Implementation :: CPython
Topic :: Software Development :: User Interfaces
"""

HERE = os.path.abspath(os.path.dirname(__file__))
PACKAGE = 'wx.svg'
Expand Down Expand Up @@ -68,7 +90,10 @@
url = URL,
download_url = DOWNLOAD_URL,
license = LICENSE,
classifiers = [c for c in CLASSIFIERS.split("\n") if c],
keywords = KEYWORDS,
#packages = [PACKAGE],
ext_modules = modules,
options = { 'build' : BUILD_OPTIONS, },
scripts = [],
)
7 changes: 2 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,12 @@
from setuptools.command.install import install as orig_install
from setuptools.command.bdist_egg import bdist_egg as orig_bdist_egg
from setuptools.command.sdist import sdist as orig_sdist
try:
from wheel.bdist_wheel import bdist_wheel as orig_bdist_wheel
haveWheel = True
except ImportError:
haveWheel = False
from setuptools.command.bdist_wheel import bdist_wheel as orig_bdist_wheel

from buildtools.config import Config, msg, opj, runcmd, canGetSOName, getSOName
import buildtools.version as version

haveWheel = True

# Create a buildtools.config.Configuration object
cfg = Config(noWxConfig=True)
Expand Down