PyQt6-sip 13.8.0__tar.gz → 13.9.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of PyQt6-sip might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyQt6_sip
3
- Version: 13.8.0
3
+ Version: 13.9.1
4
4
  Summary: The sip module support for PyQt6
5
5
  Home-page: https://github.com/Python-SIP/sip
6
6
  Author: Phil Thompson
@@ -9,7 +9,7 @@ License: SIP
9
9
  Platform: X11
10
10
  Platform: macOS
11
11
  Platform: Windows
12
- Requires-Python: >=3.8
12
+ Requires-Python: >=3.9
13
13
  License-File: LICENSE
14
14
 
15
15
  sip Extension Module
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
- Name: PyQt6-sip
3
- Version: 13.8.0
2
+ Name: PyQt6_sip
3
+ Version: 13.9.1
4
4
  Summary: The sip module support for PyQt6
5
5
  Home-page: https://github.com/Python-SIP/sip
6
6
  Author: Phil Thompson
@@ -9,7 +9,7 @@ License: SIP
9
9
  Platform: X11
10
10
  Platform: macOS
11
11
  Platform: Windows
12
- Requires-Python: >=3.8
12
+ Requires-Python: >=3.9
13
13
  License-File: LICENSE
14
14
 
15
15
  sip Extension Module
@@ -0,0 +1,2 @@
1
+ [build-system]
2
+ requires = ["setuptools >=69.5"]
@@ -16,8 +16,8 @@ module = Extension('PyQt6.sip', module_src)
16
16
  # Do the setup.
17
17
  setup(
18
18
  name='PyQt6_sip',
19
- version='13.8.0',
19
+ version='13.9.1',
20
20
  license='SIP',
21
- python_requires='>=3.8',
21
+ python_requires='>=3.9',
22
22
  ext_modules=[module]
23
23
  )
@@ -14,8 +14,8 @@
14
14
  #include <Python.h>
15
15
 
16
16
  /* Sanity check on the Python version. */
17
- #if PY_VERSION_HEX < 0x03080000
18
- #error "This version of PyQt6.sip requires Python v3.8 or later"
17
+ #if PY_VERSION_HEX < 0x03090000
18
+ #error "This version of PyQt6.sip requires Python v3.9 or later"
19
19
  #endif
20
20
 
21
21
 
@@ -35,13 +35,18 @@ extern "C" {
35
35
 
36
36
  /* The version of the ABI. */
37
37
  #define SIP_ABI_MAJOR_VERSION 13
38
- #define SIP_ABI_MINOR_VERSION 8
39
- #define SIP_MODULE_PATCH_VERSION 0
38
+ #define SIP_ABI_MINOR_VERSION 9
39
+ #define SIP_MODULE_PATCH_VERSION 1
40
40
 
41
41
 
42
42
  /*
43
43
  * The change history of the ABI.
44
44
  *
45
+ * v13.9
46
+ * - Python v3.9 or later is required.
47
+ * - Added a new implementation of sipDeprecated() that takes an optional
48
+ * supplementary message.
49
+ *
45
50
  * v13.8
46
51
  * - Added the 'I' conversion character to the argument and result parsers.
47
52
  *
@@ -77,8 +82,8 @@ extern "C" {
77
82
 
78
83
 
79
84
  /* The version of the code generator. */
80
- #define SIP_VERSION 0x60806
81
- #define SIP_VERSION_STR "6.8.6"
85
+ #define SIP_VERSION 0x60901
86
+ #define SIP_VERSION_STR "6.9.1"
82
87
 
83
88
  /* These are all dependent on the user-specified name of the sip module. */
84
89
  #define _SIP_MODULE_FQ_NAME "PyQt6.sip"
@@ -1425,7 +1430,7 @@ typedef struct _sipAPIDef {
1425
1430
  PyObject *(*api_is_py_method_12_8)(sip_gilstate_t *gil, char *pymc,
1426
1431
  sipSimpleWrapper **sipSelfp, const char *cname, const char *mname);
1427
1432
  sipExceptionHandler (*api_next_exception_handler)(void **statep);
1428
- void (*unused_private_2)(void);
1433
+ int (*api_deprecated_13_9)(const char *classname, const char *method, const char *message);
1429
1434
  void (*unused_private_3)(void);
1430
1435
  void (*unused_private_4)(void);
1431
1436
  void (*unused_private_5)(void);
@@ -227,9 +227,7 @@ static sipWrapperType sipWrapper_Type = {
227
227
  0, /* ht_slots */
228
228
  0, /* ht_qualname */
229
229
  0, /* ht_cached_keys */
230
- #if PY_VERSION_HEX >= 0x03090000
231
230
  0, /* ht_module */
232
- #endif
233
231
  #if !defined(STACKLESS)
234
232
  },
235
233
  #endif
@@ -547,7 +545,7 @@ static const sipAPIDef sip_api = {
547
545
  sip_api_instance_destroyed_ex,
548
546
  sip_api_is_py_method_12_8,
549
547
  sip_api_next_exception_handler,
550
- NULL,
548
+ sip_api_deprecated_13_9,
551
549
  NULL,
552
550
  NULL,
553
551
  NULL,
@@ -2591,7 +2589,7 @@ static int parseResult(PyObject *method, PyObject *res,
2591
2589
  case 'a':
2592
2590
  {
2593
2591
  char *p = va_arg(va, char *);
2594
- int enc;
2592
+ int enc = -1;
2595
2593
 
2596
2594
  switch (*fmt++)
2597
2595
  {
@@ -2606,9 +2604,6 @@ static int parseResult(PyObject *method, PyObject *res,
2606
2604
  case '8':
2607
2605
  enc = parseString_AsUTF8Char(arg, p);
2608
2606
  break;
2609
-
2610
- default:
2611
- enc = -1;
2612
2607
  }
2613
2608
 
2614
2609
  if (enc < 0)
@@ -2845,7 +2840,7 @@ static int parseResult(PyObject *method, PyObject *res,
2845
2840
  {
2846
2841
  int key = va_arg(va, int);
2847
2842
  const char **p = va_arg(va, const char **);
2848
- PyObject *keep;
2843
+ PyObject *keep = NULL;
2849
2844
 
2850
2845
  switch (*fmt++)
2851
2846
  {
@@ -2860,9 +2855,6 @@ static int parseResult(PyObject *method, PyObject *res,
2860
2855
  case '8':
2861
2856
  keep = parseString_AsUTF8String(arg, p);
2862
2857
  break;
2863
-
2864
- default:
2865
- keep = NULL;
2866
2858
  }
2867
2859
 
2868
2860
  if (keep == NULL)
@@ -5068,7 +5060,7 @@ static int parsePass2(PyObject *self, int selfarg, PyObject *sipArgs,
5068
5060
 
5069
5061
  if (arg != NULL)
5070
5062
  {
5071
- int enc;
5063
+ int enc = -1;
5072
5064
 
5073
5065
  switch (sub_fmt)
5074
5066
  {
@@ -6674,6 +6666,16 @@ static void sip_api_abstract_method(const char *classname, const char *method)
6674
6666
  * Report a deprecated class or method.
6675
6667
  */
6676
6668
  int sip_api_deprecated(const char *classname, const char *method)
6669
+ {
6670
+ return sip_api_deprecated_13_9(classname, method, NULL);
6671
+ }
6672
+
6673
+
6674
+ /*
6675
+ * Report a deprecated class or method with an optional message.
6676
+ */
6677
+ int sip_api_deprecated_13_9(const char *classname, const char *method,
6678
+ const char *message)
6677
6679
  {
6678
6680
  char buf[100];
6679
6681
 
@@ -6684,7 +6686,10 @@ int sip_api_deprecated(const char *classname, const char *method)
6684
6686
  classname);
6685
6687
  else
6686
6688
  PyOS_snprintf(buf, sizeof (buf), "%s.%s() is deprecated", classname,
6687
- method);
6689
+ method );
6690
+
6691
+ if (message != NULL)
6692
+ PyOS_snprintf(&buf[strlen(buf)], sizeof (buf), ": %s", message);
6688
6693
 
6689
6694
  return PyErr_WarnEx(PyExc_DeprecationWarning, buf, 1);
6690
6695
  }
@@ -9720,9 +9725,7 @@ sipWrapperType sipSimpleWrapper_Type = {
9720
9725
  0, /* ht_slots */
9721
9726
  0, /* ht_qualname */
9722
9727
  0, /* ht_cached_keys */
9723
- #if PY_VERSION_HEX >= 0x03090000
9724
9728
  0, /* ht_module */
9725
- #endif
9726
9729
  #if !defined(STACKLESS)
9727
9730
  },
9728
9731
  #endif
@@ -11466,7 +11469,6 @@ static void *sip_api_unicode_data(PyObject *obj, int *char_size,
11466
11469
  */
11467
11470
  static int sip_api_get_buffer_info(PyObject *obj, sipBufferInfoDef *bi)
11468
11471
  {
11469
- int rc;
11470
11472
  Py_buffer *buffer;
11471
11473
 
11472
11474
  if (!PyObject_CheckBuffer(obj))
@@ -11480,27 +11482,16 @@ static int sip_api_get_buffer_info(PyObject *obj, sipBufferInfoDef *bi)
11480
11482
 
11481
11483
  buffer = (Py_buffer *)bi->bi_internal;
11482
11484
 
11483
- if (PyObject_GetBuffer(obj, buffer, PyBUF_FORMAT) < 0)
11485
+ if (PyObject_GetBuffer(obj, buffer, PyBUF_SIMPLE) < 0)
11484
11486
  return -1;
11485
11487
 
11486
- if (buffer->ndim == 1)
11487
- {
11488
- bi->bi_buf = buffer->buf;
11489
- bi->bi_obj = buffer->obj;
11490
- bi->bi_len = buffer->len;
11491
- bi->bi_readonly = buffer->readonly;
11492
- bi->bi_format = buffer->format;
11493
-
11494
- rc = 1;
11495
- }
11496
- else
11497
- {
11498
- PyErr_SetString(PyExc_TypeError, "a 1-dimensional buffer is required");
11499
- PyBuffer_Release(buffer);
11500
- rc = -1;
11501
- }
11488
+ bi->bi_buf = buffer->buf;
11489
+ bi->bi_obj = buffer->obj;
11490
+ bi->bi_len = buffer->len;
11491
+ bi->bi_readonly = buffer->readonly;
11492
+ bi->bi_format = buffer->format;
11502
11493
 
11503
- return rc;
11494
+ return 1;
11504
11495
  }
11505
11496
 
11506
11497
 
@@ -120,7 +120,8 @@ void *sip_api_force_convert_to_type_us(PyObject *pyObj, const sipTypeDef *td,
120
120
  int sip_api_convert_from_slice_object(PyObject *slice, Py_ssize_t length,
121
121
  Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step,
122
122
  Py_ssize_t *slicelength);
123
- int sip_api_deprecated(const char *classname, const char *method);
123
+ int sip_api_deprecated(const char *classname, const char *method);
124
+ int sip_api_deprecated_13_9(const char *classname, const char *method, const char* message);
124
125
  const sipTypeDef *sip_api_type_scope(const sipTypeDef *td);
125
126
 
126
127
 
@@ -1,2 +0,0 @@
1
- [build-system]
2
- requires = ["setuptools >=30.3", "wheel"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes