Skip to content

Commit 4fd9a3c

Browse files
authored
Merge pull request #156 from iMichka/ci
Update CI to ubuntu 20.04
2 parents 27aa1a8 + 547afd2 commit 4fd9a3c

12 files changed

+26
-38
lines changed

Diff for: .github/workflows/tests.yml

+13-21
Original file line numberDiff line numberDiff line change
@@ -8,49 +8,41 @@ jobs:
88
fail-fast: false
99
matrix:
1010
include:
11-
- os: ubuntu-18.04
11+
- os: ubuntu-20.04
1212
compiler: gcc
13-
version: "7"
14-
python-version: 3.5
15-
castxml: "castxml"
16-
castxml-epic: 0
17-
cppstd: "-std=c++98"
18-
19-
- os: ubuntu-18.04
20-
compiler: gcc
21-
version: "7"
13+
version: "9"
2214
python-version: 3.6
2315
castxml: "castxml"
2416
castxml-epic: 0
2517
cppstd: "-std=c++98"
2618

27-
- os: ubuntu-18.04
19+
- os: ubuntu-20.04
2820
compiler: gcc
29-
version: "7"
21+
version: "9"
3022
python-version: 3.7
3123
castxml: "castxml"
3224
castxml-epic: 0
3325
cppstd: "-std=c++98"
3426

35-
- os: ubuntu-18.04
27+
- os: ubuntu-20.04
3628
compiler: gcc
37-
version: "7"
29+
version: "9"
3830
python-version: 3.8
3931
castxml: "castxml"
4032
castxml-epic: 0
4133
cppstd: "-std=c++98"
4234

43-
- os: ubuntu-18.04
35+
- os: ubuntu-20.04
4436
compiler: gcc
45-
version: "7"
37+
version: "9"
4638
python-version: 3.8
4739
castxml: "castxml"
4840
castxml-epic: 1
4941
cppstd: "-std=c++98"
5042

51-
- os: ubuntu-18.04
43+
- os: ubuntu-20.04
5244
compiler: gcc
53-
version: "7"
45+
version: "9"
5446
python-version: 3.8
5547
castxml: "castxml"
5648
castxml-epic: 1
@@ -73,16 +65,16 @@ jobs:
7365
- name: Display Python version
7466
run: python -c "import sys; print(sys.version)"
7567
- name: Setup castxml for Linux
76-
if: matrix.os == 'ubuntu-18.04' && matrix.castxml == 'castxml'
68+
if: matrix.os == 'ubuntu-20.04' && matrix.castxml == 'castxml'
7769
run: |
7870
wget -q -O - https://data.kitware.com/api/v1/file/hashsum/sha512/bdbb67a10c5f8d1b738cd19cb074f409d4803e8077cb8c1072ef4eaf738fa871a73643f9c8282d58cae28d188df842c82ad6620b6d590b0396a0172a27438dce/download | tar zxf - -C ~/
7971
- name: Setup castxml for Mac
8072
if: matrix.os == 'macos-latest'
8173
run: |
8274
wget -q -O - https://data.kitware.com/api/v1/file/hashsum/sha512/5d937e938f7b882a3a3e7941e68f8312d0898aaf2082e00003dd362b1ba70b98b0a08706a1be28e71652a6a0f1e66f89768b5eaa20e5a100592d5b3deefec3f0/download | tar zxf - -C ~/
8375
- name: Setup castxml config
84-
if: matrix.compiler == 'gcc' && matrix.version == '7'
85-
run: mv unittests/configs/gcc7.cfg unittests/xml_generator.cfg;
76+
if: matrix.compiler == 'gcc' && matrix.version == '9'
77+
run: mv unittests/configs/gcc9.cfg unittests/xml_generator.cfg;
8678
- name: Install Python lib and test libs
8779
run: |
8880
pip install .[test]

Diff for: CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changes
22
=======
33

4+
Next version
5+
------------
6+
7+
1. Drop support for ```Python 3.5```
8+
49
Version 2.2.1
510
-------------
611

Diff for: README.rst

+1-1
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.5, 3.6, 3.7, 3.8 and pypy3.
30+
pygccxml is compatible with Python 3.6, 3.7, 3.8 and pypy3.
3131

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

Diff for: pygccxml/parser/source_reader.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __create_command_line_castxml(self, source_file, xmlfile):
116116

117117
# Always require a compiler path at this point
118118
if self.__config.compiler_path is None:
119-
raise(RuntimeError(
119+
raise (RuntimeError(
120120
"Please pass the compiler_path as argument to " +
121121
"your xml_generator_configuration_t(), or add it to your " +
122122
"pygccxml configuration file."))

Diff for: setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
"Operating System :: MacOS :: MacOS X",
5151
"Operating System :: Microsoft :: Windows",
5252
"Operating System :: POSIX",
53-
"Programming Language :: Python :: 3.5",
5453
"Programming Language :: Python :: 3.6",
5554
"Programming Language :: Python :: 3.7",
5655
"Programming Language :: Python :: 3.8",

Diff for: unittests/configs/gcc7.cfg

-4
This file was deleted.

Diff for: unittests/configs/gcc9.cfg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[xml_generator]
2+
compiler=/usr/bin/gcc-9
3+
cflags=-std=c++98
4+
include_paths=/usr/lib/gcc/x86_64-linux-gnu/9

Diff for: unittests/configs/travis_gcc5.cfg

-2
This file was deleted.

Diff for: unittests/configs/travis_std03.cfg

-2
This file was deleted.

Diff for: unittests/configs/travis_std11.cfg

-2
This file was deleted.

Diff for: unittests/configs/travis_std14.cfg

-2
This file was deleted.

Diff for: unittests/project_reader_correctness_tester.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ def __test_correctness_impl(self, file_name):
4747
os.path.join(bdir, file_name + '.pr.txt'), 'w+') as pr:
4848

4949
declarations.print_declarations(
50-
s, writer=lambda l: sr.write(l + os.linesep))
50+
s, writer=lambda x: sr.write(l + os.linesep))
5151
declarations.print_declarations(
52-
p, writer=lambda l: pr.write(l + os.linesep))
52+
p, writer=lambda x: pr.write(l + os.linesep))
5353

5454
self.fail(
5555
"There is a difference between declarations in file %s." %

0 commit comments

Comments
 (0)