Skip to content

Commit 3a5534b

Browse files
authored
Merge pull request #161 from iMichka/py
Add official support for Python 3.9, 3.10, 3.11
2 parents 1611348 + 09e4acb commit 3a5534b

File tree

83 files changed

+246
-109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+246
-109
lines changed

.github/workflows/tests.yml

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,47 +11,71 @@ jobs:
1111
- os: ubuntu-20.04
1212
compiler: gcc
1313
version: "9"
14-
python-version: 3.6
14+
python-version: "3.6"
1515
castxml: "castxml"
1616
castxml-epic: 0
1717
cppstd: "-std=c++98"
1818

1919
- os: ubuntu-20.04
2020
compiler: gcc
2121
version: "9"
22-
python-version: 3.7
22+
python-version: "3.7"
2323
castxml: "castxml"
2424
castxml-epic: 0
2525
cppstd: "-std=c++98"
2626

2727
- os: ubuntu-20.04
2828
compiler: gcc
2929
version: "9"
30-
python-version: 3.8
30+
python-version: "3.8"
3131
castxml: "castxml"
3232
castxml-epic: 0
3333
cppstd: "-std=c++98"
3434

3535
- os: ubuntu-20.04
3636
compiler: gcc
3737
version: "9"
38-
python-version: 3.8
38+
python-version: "3.9"
39+
castxml: "castxml"
40+
castxml-epic: 0
41+
cppstd: "-std=c++98"
42+
43+
- os: ubuntu-20.04
44+
compiler: gcc
45+
version: "9"
46+
python-version: "3.10"
47+
castxml: "castxml"
48+
castxml-epic: 0
49+
cppstd: "-std=c++98"
50+
51+
- os: ubuntu-20.04
52+
compiler: gcc
53+
version: "9"
54+
python-version: "3.11"
55+
castxml: "castxml"
56+
castxml-epic: 0
57+
cppstd: "-std=c++98"
58+
59+
- os: ubuntu-20.04
60+
compiler: gcc
61+
version: "9"
62+
python-version: "3.8"
3963
castxml: "castxml"
4064
castxml-epic: 1
4165
cppstd: "-std=c++98"
4266

4367
- os: ubuntu-20.04
4468
compiler: gcc
4569
version: "9"
46-
python-version: 3.8
70+
python-version: "3.8"
4771
castxml: "castxml"
4872
castxml-epic: 1
4973
cppstd: "-std=c++11"
5074

5175
- os: macos-latest
5276
compiler: xcode
5377
version: "default"
54-
python-version: 3.8
78+
python-version: "3.8"
5579
castxml: "castxml"
5680
castxml-epic: 0
5781
cppstd: "-std=c++98"

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
Changes
22
=======
33

4+
Version 2.4.0
5+
-------------
6+
7+
1. Add official support for `Python 3.9`, `Python 3.10`, `Python 3.11`
8+
49
Version 2.3.0
510
-------------
611

7-
1. Drop support for ```Python 3.5```
12+
1. Drop support for `Python 3.5`
813

914
2. Make type equivalence check for string and ostream more robust (`is_std_string`, `is_std_wstring`, `is_std_ostream`, `is_std_wostream`)
1015

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Install instructions can be found `here <http://pygccxml.readthedocs.io/en/maste
2727
Compatibility
2828
-------------
2929

30-
pygccxml is compatible with Python 3.6, 3.7, 3.8 and pypy3.
30+
pygccxml is compatible with Python 3.6, 3.7, 3.8, 3.9, 3.10, 3.11 and pypy3.
3131

3232
Documentation and examples
3333
--------------------------

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@
5353
"Programming Language :: Python :: 3.6",
5454
"Programming Language :: Python :: 3.7",
5555
"Programming Language :: Python :: 3.8",
56+
"Programming Language :: Python :: 3.9",
57+
"Programming Language :: Python :: 3.10",
58+
"Programming Language :: Python :: 3.11",
5659
"Programming Language :: Python :: Implementation :: CPython",
5760
"Programming Language :: Python :: Implementation :: PyPy",
5861
"Topic :: Software Development",

unittests/algorithms_cache_tester.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from pygccxml import declarations
1212

1313

14-
class algorithms_cache_tester_t(parser_test_case.parser_test_case_t):
14+
class Test(parser_test_case.parser_test_case_t):
1515
# tester source reader
1616
COMPILATION_MODE = parser.COMPILATION_MODE.ALL_AT_ONCE
1717

@@ -63,7 +63,8 @@ def test_access_type(self):
6363

6464
def create_suite():
6565
suite = unittest.TestSuite()
66-
suite.addTest(unittest.makeSuite(algorithms_cache_tester_t))
66+
suite.addTest(
67+
unittest.TestLoader().loadTestsFromTestCase(testCaseClass=Test))
6768

6869
return suite
6970

unittests/array_bug_tester.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ def test7(self):
118118

119119
def create_suite():
120120
suite = unittest.TestSuite()
121-
suite.addTest(unittest.makeSuite(Test))
121+
suite.addTest(
122+
unittest.TestLoader().loadTestsFromTestCase(testCaseClass=Test))
122123
return suite
123124

124125

unittests/attributes_tester.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ def test_attributes_thiscall(self):
8787

8888
def create_suite():
8989
suite = unittest.TestSuite()
90-
suite.addTest(unittest.makeSuite(Test))
90+
suite.addTest(
91+
unittest.TestLoader().loadTestsFromTestCase(testCaseClass=Test))
9192
return suite
9293

9394

unittests/better_templates_matcher_tester.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def test(self):
3737

3838
def create_suite():
3939
suite = unittest.TestSuite()
40-
suite.addTest(unittest.makeSuite(Test))
40+
suite.addTest(
41+
unittest.TestLoader().loadTestsFromTestCase(testCaseClass=Test))
4142
return suite
4243

4344

unittests/bit_fields_tester.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def test2(self):
4141

4242
def create_suite():
4343
suite = unittest.TestSuite()
44-
suite.addTest(unittest.makeSuite(Test))
44+
suite.addTest(
45+
unittest.TestLoader().loadTestsFromTestCase(testCaseClass=Test))
4546
return suite
4647

4748

unittests/cache_enums_tester.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,15 @@ def test_cache(self):
4444
color2 = declarations.matcher.get_single(enum_matcher, decls2)
4545
self.assertTrue(color1.values == color2.values)
4646

47-
# there is no progress with this parser
48-
# class synopsis_tester_t( tester_impl_t ):
49-
# CXX_PARSER_CFG = autoconfig.cxx_parsers_cfg.synopsis
5047

51-
52-
class gccxml_tester_t(tester_impl_t):
48+
class Test(tester_impl_t):
5349
CXX_PARSER_CFG = autoconfig.cxx_parsers_cfg.config
5450

5551

5652
def create_suite():
5753
suite = unittest.TestSuite()
58-
# suite.addTest( unittest.makeSuite(synopsis_tester_t))
59-
suite.addTest(unittest.makeSuite(gccxml_tester_t))
54+
suite.addTest(
55+
unittest.TestLoader().loadTestsFromTestCase(testCaseClass=Test))
6056
return suite
6157

6258

0 commit comments

Comments
 (0)