Repository: ucfopen/canvasapi (language: python)

Issue:
Update Python Versions - Remove 3.6 and Add 3.10
Python 3.6 is end-of-life as of the end of last year. Remove official support for it.

Python 3.10 has been out for nearly a year. Add official support for it.



Discussion / hints:

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a53821fc..9f62314f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,10 +12,12 @@
 
 ### General
 
+- Added support for Python 3.10
 - Smart DateTimes now support any ISO 8601 format, including time offsets. (Thanks, [@kailukaitisBrendan](https://github.com/kailukaitisBrendan))
 
 ### Breaking Changes
 
+- Dropped support for Python 3.6
 - Update `QuizSubmission.get_submission_events` to return a `PaginatedList`. (Thanks, [@stevenbell](https://github.com/stevenbell))
 - Update `Course.get_course_level_student_summary_data` to return a `PaginatedList` of `CourseStudentSummary` items instead of a dictionary. (Thanks, [@craigdsthompson](https://github.com/craigdsthompson))
 - Update `Course.get_outcome_results` to return a `PaginatedList` of `OutcomeResult` items instead of a dictionary. (Thanks, [@bennettscience](https://github.com/bennettscience))
diff --git a/dev_requirements.txt b/dev_requirements.txt
index e89a2639..cfc2056e 100644
--- a/dev_requirements.txt
+++ b/dev_requirements.txt
@@ -1,7 +1,7 @@
 -r tests_requirements.txt
 
 docutils==0.15.2
-pre-commit; python_version >= '3.6'
+pre-commit
 Sphinx
 sphinx-rtd-theme
-sphinx-version-warning
\ No newline at end of file
+sphinx-version-warning
diff --git a/setup.py b/setup.py
index 9f880d10..654f0a7a 100644
--- a/setup.py
+++ b/setup.py
@@ -39,10 +39,10 @@
         "License :: OSI Approved :: MIT License",
         "Operating System :: OS Independent",
         "Programming Language :: Python",
-        "Programming Language :: Python :: 3.6",
         "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: 3.9",
+        "Programming Language :: Python :: 3.10",
         "Topic :: Software Development :: Libraries",
     ],
 )


Test patch:
diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index acbd48fb..76c1c575 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -11,7 +11,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python-version: [3.6, 3.7, 3.8, 3.9]
+        python-version: ['3.7', '3.8', '3.9', '3.10']
 
     steps:
       - uses: actions/checkout@v2
diff --git a/tests_requirements.txt b/tests_requirements.txt
index ecc22e14..3901adee 100644
--- a/tests_requirements.txt
+++ b/tests_requirements.txt
@@ -1,6 +1,6 @@
 -r requirements.txt
 
-black; python_version >= '3.6'
+black
 coverage
 flake8
 isort