Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Python 3.10 #86

Merged
merged 1 commit into from
Mar 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/smoke_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build_and_test:
strategy:
matrix:
python-version: [3.8, 3.9] # oldest and most recent version supported
python-version: [3.8, '3.10'] # oldest and most recent version supported
name: Build and smoke test
runs-on: ubuntu-20.04
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build_and_test:
strategy:
matrix:
python-version: [3.8, 3.9] # oldest and most recent version supported
python-version: [3.8, '3.10'] # oldest and most recent version supported
name: Run Python test suite
runs-on: ubuntu-20.04
steps:
Expand Down
6 changes: 5 additions & 1 deletion binary_gentoo/internal/cli/tests/test_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Licensed under GNU Affero GPL version 3 or later

import os
import sys
from io import StringIO
from tempfile import TemporaryDirectory
from textwrap import dedent
Expand Down Expand Up @@ -240,7 +241,10 @@ def test_help(self, *argv): # plain smoke test
with self.assertRaises(SystemExit) as catcher:
main()
self.assertEqual(catcher.exception.args, (0, )) # i.e. success
self.assertIn('optional arguments:', stdout_mock.getvalue())
if sys.version_info >= (3, 10):
self.assertIn('options:', stdout_mock.getvalue())
else:
self.assertIn('optional arguments:', stdout_mock.getvalue())

def test_list_failure_empty_directory(self): # just something that touches beyond argparse
with TemporaryDirectory() as tempdir:
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3 :: Only',
])