Skip to content

Commit 04a658f

Browse files
authored
Merge pull request #540 from G-Node/jgrewe-actions
Update pythonpackage.yml
2 parents 481847b + fc65fe3 commit 04a658f

File tree

5 files changed

+111
-82
lines changed

5 files changed

+111
-82
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
max-parallel: 4
2020
matrix:
2121
os: [ubuntu-latest, macos-latest, windows-latest]
22-
python-version: [3.6, 3.7, 3.8, 3.9]
22+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
2323

2424
steps:
2525
- uses: actions/checkout@v2
@@ -29,6 +29,7 @@ jobs:
2929
python-version: ${{ matrix.python-version }}
3030
- name: Run install
3131
run: |
32+
pip install setuptools
3233
pip install .
3334
- name: Lint with Pylint
3435
run: |
@@ -52,7 +53,7 @@ jobs:
5253
max-parallel: 4
5354
matrix:
5455
os: [ubuntu-latest, macos-latest, windows-latest]
55-
python-version: [3.8]
56+
python-version: ['3.10']
5657
steps:
5758
- uses: actions/checkout@v2
5859
- uses: conda-incubator/setup-miniconda@v2
@@ -79,10 +80,10 @@ jobs:
7980
runs-on: [ubuntu-latest]
8081
steps:
8182
- uses: actions/checkout@v2
82-
- name: Setup Python 3.8
83+
- name: Setup Python 3.10
8384
uses: actions/setup-python@v2
8485
with:
85-
python-version: "3.8"
86+
python-version: "3.10"
8687
- name: Install dependencies
8788
run: |
8889
python setup.py install
@@ -100,10 +101,10 @@ jobs:
100101
runs-on: [ubuntu-latest]
101102
steps:
102103
- uses: actions/checkout@v2
103-
- name: Setup Python 3.8
104+
- name: Setup Python 3.10
104105
uses: actions/setup-python@v2
105106
with:
106-
python-version: "3.8"
107+
python-version: "3.10"
107108
- name: Install dependencies
108109
run: |
109110
python setup.py install

.pylintrc

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ enable=C0102, # Black listed name "%s"**
8787
E0203, # Access to member %r before its definition line %s**
8888
E0211, # Method has no argument**
8989
E0213, # Method should have "self" as first argument**
90-
E0221, # Interface resolved to %s is not a class**
91-
E0222, # Missing method %r from %s interface**
90+
# E0221, # Interface resolved to %s is not a class**
91+
# E0222, # Missing method %r from %s interface**
9292
E0235, # __exit__ must accept 3 arguments: type, value, traceback**
93-
E0501, # Old: Non ascii characters found but no encoding specified (PEP 263)**
94-
E0502, # Old: Wrong encoding specified (%s)**
95-
E0503, # Old: Unknown encoding specified (%s)**
93+
# E0501, # Old: Non ascii characters found but no encoding specified (PEP 263)**
94+
# E0502, # Old: Wrong encoding specified (%s)**
95+
# E0503, # Old: Unknown encoding specified (%s)**
9696
E0601, # Using variable %r before assignment**
9797
E0602, # Undefined variable %r**
9898
E0603, # Undefined variable name %r in __all__**
@@ -103,17 +103,17 @@ enable=C0102, # Black listed name "%s"**
103103
E0710, # Raising a new style class which doesn't inherit from BaseException**
104104
E0711, # NotImplemented raised - should raise NotImplementedError**
105105
E0712, # Catching an exception which doesn\'t inherit from BaseException: %s**
106-
E1001, # Use of __slots__ on an old style class**
107-
E1002, # Use of super on an old style class**
106+
# E1001, # Use of __slots__ on an old style class**
107+
# E1002, # Use of super on an old style class**
108108
E1003, # Bad first argument %r given to super()**
109-
E1004, # Missing argument to super()**
109+
# E1004, # Missing argument to super()**
110110
# E1101, # %s %r has no %r member** ## RE-ENABLE AFTER CODE RESTRUCTURING
111111
E1102, # %s is not callable**
112112
# E1103, # %s %r has no %r member (but some types could not be inferred)** ## RE-ENABLE AFTER CODE RESTRUCTURING
113113
E1111, # Assigning to function call which doesn't return**
114114
E1120, # No value passed for parameter %s in function call**
115115
E1121, # Too many positional arguments for function call**
116-
E1122, # Old: Duplicate keyword argument %r in function call**
116+
# E1122, # Old: Duplicate keyword argument %r in function call**
117117
E1123, # Passing unexpected keyword argument %r in function call**
118118
E1124, # Parameter %r passed as both positional and keyword argument**
119119
E1125, # Old: Missing mandatory keyword argument %r**
@@ -146,11 +146,11 @@ enable=C0102, # Black listed name "%s"**
146146
W0234, # iter returns non-iterator**
147147
W0301, # Unnecessary semicolon**
148148
W0311, # Bad indentation. Found %s %s, expected %s**
149-
W0312, # Found indentation with %ss instead of %ss**
150-
W0331, # Use of the <> operator**
149+
# W0312, # Found indentation with %ss instead of %ss**
150+
# W0331, # Use of the <> operator**
151151
W0402, # Uses of a deprecated module %r**
152152
W0406, # Module import itself**
153-
W0512, # Cannot decode using encoding "%s", unexpected byte at position %d**
153+
# W0512, # Cannot decode using encoding "%s", unexpected byte at position %d**
154154
W0601, # Global variable %r undefined at the module level**
155155
W0602, # Using global for %r but no assigment is done**
156156
W0611, # Unused import %s**
@@ -159,15 +159,15 @@ enable=C0102, # Black listed name "%s"**
159159
W0614, # Unused import %s from wildcard import**
160160
W0621, # Redefining name %r from outer scope (line %s)**
161161
W0622, # Redefining built-in %r**
162-
W0623, # Redefining name %r from %s in exception handler**
162+
# W0623, # Redefining name %r from %s in exception handler**
163163
W0631, # Using possibly undefined loop variable %r**
164164
W0632, # Possible unbalanced tuple unpacking with sequence%s: …**
165165
W0633, # Attempting to unpack a non-sequence%s**
166-
W0701, # Raising a string exception**
167-
W0704, # Except doesn't do anything**
168-
W0710, # Exception doesn't inherit from standard "Exception" class**
166+
# W0701, # Raising a string exception**
167+
# W0704, # Except doesn't do anything**
168+
# W0710, # Exception doesn't inherit from standard "Exception" class**
169169
W0711, # Exception to catch is the result of a binary "%s" operation**
170-
W0712, # Implicit unpacking of exceptions is not supported in Python 3**
170+
# W0712, # Implicit unpacking of exceptions is not supported in Python 3**
171171
W1111, # Assigning to function call which only returns None**
172172
W1300, # Format string dictionary key should be a string, not %s**
173173
W1301, # Unused key %r in format string dictionary**
@@ -620,5 +620,5 @@ preferred-modules=
620620

621621
# Exceptions that will emit a warning when being caught. Defaults to
622622
# "BaseException, Exception".
623-
overgeneral-exceptions=BaseException,
624-
Exception
623+
overgeneral-exceptions=builtin.BaseException,
624+
builtin.Exception

appveyor.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
version: 1.5.{build}
22

3-
image: Visual Studio 2017
3+
image:
4+
- Visual Studio 2019
45

56
environment:
67

@@ -16,17 +17,9 @@ environment:
1617

1718

1819
matrix:
19-
# Python 3.6 64 bit
20-
- PYTHON: "C:\\Python36-x64"
21-
pyver: 3
22-
bits: 64
23-
24-
# Python 3.7 64 bit
25-
- PYTHON: "C:\\Python37-x64"
26-
pyver: 3
27-
bits: 64
28-
RDP: "no"
29-
20+
- PYTHON: "C:/Python38-x64"
21+
- PYTHON: "C:/Python311-x64"
22+
3023
init:
3124
- "ECHO %PYTHON% %vcvars% (%bits%)"
3225
- ps: $env:PATH = "$env:PYTHON;$env:PATH;C:\Program Files\7-Zip;$env:NIX_DIR\bin"

0 commit comments

Comments
 (0)