Skip to content

Commit 667781d

Browse files
authored
Merge pull request #51 from inducer/drop-py2
Drop py2
2 parents 8b0c046 + 0b36126 commit 667781d

4 files changed

Lines changed: 35 additions & 15 deletions

File tree

.editorconfig

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# https://editorconfig.org/
2+
# https://github.com/editorconfig/editorconfig-vim
3+
# https://github.com/editorconfig/editorconfig-emacs
4+
5+
root = true
6+
7+
[*]
8+
indent_style = space
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
14+
[*.py]
15+
indent_size = 4
16+
17+
[*.rst]
18+
indent_size = 4
19+
20+
[*.cpp]
21+
indent_size = 2
22+
23+
[*.hpp]
24+
indent_size = 2
25+
26+
# There may be one in doc/
27+
[Makefile]
28+
indent_style = tab
29+
30+
# https://github.com/microsoft/vscode/issues/1679
31+
[*.md]
32+
trim_trailing_whitespace = false

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
-
1919
uses: actions/setup-python@v1
2020
with:
21-
python-version: '3.x'
21+
python-version: '3.x'
2222
- name: "Main Script"
2323
run: |
2424
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-flake8.sh
@@ -29,7 +29,7 @@ jobs:
2929
runs-on: ubuntu-latest
3030
strategy:
3131
matrix:
32-
python-version: [2.7, 3.6, 3.7, 3.8]
32+
python-version: [3.6, 3.7, 3.8]
3333
steps:
3434
- uses: actions/checkout@v2
3535
-

.gitlab-ci.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
Python 2.7:
2-
script:
3-
- py_version=2.7
4-
- curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project.sh
5-
- ". ./build-and-test-py-project.sh"
6-
tags:
7-
- python2.7
8-
except:
9-
- tags
10-
artifacts:
11-
reports:
12-
junit: test/pytest.xml
13-
141
Python 3:
152
script:
163
- py_version=3

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
'Topic :: Utilities',
1919
],
2020

21+
python_requires="~=3.6",
2122
install_requires=[
2223
"ply>=3.4",
2324
"pycparser>=2.18,<2.20",

0 commit comments

Comments
 (0)