Skip to content

Commit 2f38615

Browse files
author
Sergey Salnikov
committed
* Updated to [project] section in pyproject.toml.
* Do not explicitly require specific ABI version. Be sure to build PyPI packages using old enough distribution.
1 parent 57f51c5 commit 2f38615

File tree

3 files changed

+30
-18
lines changed

3 files changed

+30
-18
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[submodule "QCustomPlot"]
22
path = QCustomPlot
3-
url = https://gitlab.com/DerManu/QCustomPlot.git
3+
url = https://gitlab.com/ecme2/QCustomPlot
44
branch = master

project.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@ def update(self, tool):
3939

4040
if use_pyqt6:
4141
import PyQt6 as PyQt
42-
self.abi_version = '13' # set ABI version for better compatibility
4342
else:
4443
import PyQt5 as PyQt
45-
self.abi_version = '12' # set ABI version for better compatibility
4644

4745
print('\nBuilding QCustomPlot_{} module.\n'.format(PyQt.__name__))
4846
self.sip_include_dirs.append(join(PyQt.__path__[0], 'bindings'))

pyproject.toml

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
# Specify the build system.
22
[build-system]
3-
requires = ['sip >=5.0.0, <6.8.0', 'PyQt-builder >=1.6, <2', 'PyQt5'] # change to PyQt6 if necessary
3+
requires = ['sip >=5.0.0, <7', 'PyQt-builder >=1.6, <2', 'PyQt5'] # change to PyQt6 if necessary
44
build-backend = 'sipbuild.api'
55

6-
# Specify the PEP 566 metadata for the project.
7-
[tool.sip.metadata]
6+
# Specify the PEP 621 metadata for the project.
7+
[project]
88
name = 'QCustomPlot_PyQt5' # change to PyQt6 if necessary
9-
version = '2.1.1.1'
10-
summary = 'QCustomPlot is a Qt widget for plotting and data visualization'
11-
home-page = 'https://github.com/salsergey/QCustomPlot-PyQt'
12-
author = 'Sergey Salnikov'
13-
author-email = 'salsergey@gmail.com'
14-
license = 'MIT'
15-
description-file = 'README.md'
16-
description-content-type = 'text/markdown'
17-
classifier = [
9+
version = '2.1.1.2'
10+
description = 'QCustomPlot is a Qt widget for plotting and data visualization'
11+
readme = 'README.md'
12+
urls.homepage = 'https://github.com/salsergey/QCustomPlot-PyQt'
13+
requires-python = '>=3.7'
14+
license = {text = 'MIT'}
15+
keywords = ['PyQt', 'QCustomPlot', 'GUI']
16+
authors = [
17+
{email = 'salsergey@gmail.com'},
18+
{name = 'Sergey Salnikov'}
19+
]
20+
classifiers = [
1821
'Development Status :: 5 - Production/Stable',
1922
'Environment :: X11 Applications :: Qt',
2023
'Intended Audience :: Developers',
@@ -30,11 +33,12 @@ classifier = [
3033
'Programming Language :: Python :: 3.12',
3134
'Topic :: Software Development :: User Interfaces'
3235
]
33-
requires-dist = 'PyQt5' # change to PyQt6 if necessary
36+
dependencies = [
37+
'PyQt5' # change to PyQt6 if necessary
38+
]
3439

3540
[tool.sip.project]
3641
sip-files-dir = 'sip'
37-
abi-version = '12' # change to 13 if using PyQt6
3842
sdist-excludes = [
3943
'.*',
4044
'.*/*',
@@ -59,5 +63,15 @@ sdist-excludes = [
5963
'build*/*',
6064
'build*/*/*',
6165
'build*/*/*/*',
62-
'dist/*'
66+
'build*/*/*/*/*',
67+
'build*/*/*/*/*/*',
68+
'build*/*/*/*/*/*/*',
69+
'build*/*/*/*/*/*/*/*',
70+
'build*/*/*/*/*/*/*/*/*',
71+
'build*/*/*/*/*/*/*/*/*/*',
72+
'build*/*/*/*/*/*/*/*/*/*/*',
73+
'build*/*/*/*/*/*/*/*/*/*/*/*',
74+
'build*/*/*/*/*/*/*/*/*/*/*/*/*',
75+
'dist/*',
76+
'dist/*/*'
6377
]

0 commit comments

Comments
 (0)