Skip to content

Commit d379190

Browse files
Merge pull request #171 from mwcraig/add-python3.9-pypi-build
Update Python versions in CI
2 parents b20bc7b + cffc2e9 commit d379190

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
max-parallel: 4
1010
fail-fast: false
1111
matrix:
12-
python-version: [3.6, 3.7, 3.8]
12+
python-version: [3.7, 3.8, 3.9]
1313
platform: [ubuntu-latest, macos-latest, windows-latest]
1414
runs-on: ${{ matrix.platform }}
1515

.github/workflows/upload_pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
max-parallel: 4
1212
fail-fast: false
1313
matrix:
14-
python-version: [3.6, 3.7, 3.8]
14+
python-version: [3.7, 3.8, 3.9]
1515
platform: [macos-latest, windows-latest] # No wheels on linux yet
1616
runs-on: ${{ matrix.platform }}
1717

vpython/test/test_namespace.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ def test_names_in_base_namspace():
163163
for name in ['dist', 'comb', 'prod', 'perm', 'isqrt']:
164164
api_name_set.add(name)
165165

166+
# Python 3.9 adds three more new math functions.
167+
if python_version.major == 3 and python_version.minor >= 9:
168+
for name in ['lcm', 'ulp', 'nextafter']:
169+
api_name_set.add(name)
170+
166171
print(sorted(api_name_set - current_names))
167172

168173
# We may have added new names, so start with this weaker test

0 commit comments

Comments
 (0)