diff options
Diffstat (limited to 'wheel_artifacts')
-rw-r--r-- | wheel_artifacts/pyproject.toml.base | 60 | ||||
-rw-r--r-- | wheel_artifacts/setup.py.base | 26 |
2 files changed, 86 insertions, 0 deletions
diff --git a/wheel_artifacts/pyproject.toml.base b/wheel_artifacts/pyproject.toml.base new file mode 100644 index 000000000..2e30e9ae9 --- /dev/null +++ b/wheel_artifacts/pyproject.toml.base @@ -0,0 +1,60 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = PROJECT_NAME +authors = [ + {name = "Qt for Python Team", email = "pyside@qt-project.org"}, +] +description = PROJECT_DESCRIPTION +readme = PROJECT_README +dynamic = ["version"] +requires-python = ">=3.9, <3.13" +keywords = ["Qt"] +license = {text = "LGPL"} +dependencies = PROJECT_DEPENDENCIES +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Environment :: MacOS X", + "Environment :: X11 Applications :: Qt", + "Environment :: Win32 (MS Windows)", + "Intended Audience :: Developers", + "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", + "License :: Other/Proprietary License", + "Operating System :: MacOS :: MacOS X", + "Operating System :: POSIX", + "Operating System :: POSIX :: Linux", + "Operating System :: Microsoft", + "Operating System :: Microsoft :: Windows", + "Programming Language :: C++", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Topic :: Database", + "Topic :: Software Development", + "Topic :: Software Development :: Code Generators", + "Topic :: Software Development :: Libraries :: Application Frameworks", + "Topic :: Software Development :: User Interfaces", + "Topic :: Software Development :: Widget Sets", +] + +[project.urls] +Homepage = "https://pyside.org" +Documentation = "https://doc.qt.io/qtforpython" +Repository = "https://code.qt.io/cgit/pyside/pyside-setup.git/" +Changelog = "https://code.qt.io/cgit/pyside/pyside-setup.git/tree/doc/changelogs" +Tracker = "https://bugreports.qt.io/projects/PYSIDE" + +PROJECT_SCRIPTS + +[tool.distutils.bdist_wheel] +py_limited_api = "cp39" +plat_name = PROJECT_TAG + +[tool.setuptools.dynamic] +version = {attr = PROJECT_VERSION} diff --git a/wheel_artifacts/setup.py.base b/wheel_artifacts/setup.py.base new file mode 100644 index 000000000..d65f746ee --- /dev/null +++ b/wheel_artifacts/setup.py.base @@ -0,0 +1,26 @@ +import setuptools +from setuptools import setup, Extension, Command + +# This class and Extension file is intended only to force setuptools +# to understand we are using extension modules, but because we don't +# include the source files in the 'Extension' object, it gets wrongly +# lost. +class build_ext(Command): + def initialize_options(self): + pass + def finalize_options(self): + pass + def run(self): + pass + def get_source_files(self): + return [] + def get_requires_for_build_wheel(self): + pass + +setup_args = dict( + include_package_data=True, + packages = ["{name}"], + ext_modules = [Extension("{fake_ext}", [], py_limited_api=True)], + cmdclass=dict([("build_ext", build_ext)]), +) +setup(**setup_args) |