Drop support for Python 3.6 (#953)
diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml
index 25ae309..08a6621 100644
--- a/.github/workflows/build-and-publish.yml
+++ b/.github/workflows/build-and-publish.yml
@@ -49,7 +49,7 @@
- name: Build wheels
run: python -m cibuildwheel
env:
- CIBW_SKIP: "cp27-* cp35-* pp27-*" # skip 2.7 and 3.5 wheels
+ CIBW_SKIP: "cp36-*" # skip 3.6 wheels
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
- uses: actions/upload-artifact@v3
with:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 8abb41f..708069d 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -45,15 +45,6 @@
- "3.10"
- "3.11"
- "pypy-3.7"
- include:
- # Python 3.6 is unavailable on ubuntu-latest.
- # It must be included manually for each OS.
- - os: ubuntu-20.04
- python: "3.6"
- - os: windows-latest
- python: "3.6"
- - os: macos-latest
- python: "3.6"
steps:
- name: Checkout
uses: actions/checkout@v3
diff --git a/README.rst b/README.rst
index 70898e6..fe8c2d1 100755
--- a/README.rst
+++ b/README.rst
@@ -6,7 +6,7 @@
Python API and shell utilities to monitor file system events.
-Works on 3.6+.
+Works on 3.7+.
Example API Usage
-----------------
@@ -233,7 +233,7 @@
Dependencies
------------
-1. Python 3.6 or above.
+1. Python 3.7 or above.
2. XCode_ (only on macOS when installing from sources)
3. PyYAML_ (only for ``watchmedo``)
diff --git a/changelog.rst b/changelog.rst
index d4a5e2f..614b801 100644
--- a/changelog.rst
+++ b/changelog.rst
@@ -8,6 +8,7 @@
2023-xx-xx • `full history <https://github.com/gorakhargosh/watchdog/compare/v2.3.1...HEAD>`__
+- Drop support for Python 3.6.
- [testing] watchdog is now PEP 561 compatible and is tested by mypy.
- Thanks to our beloved contributors: @kurtmckee
diff --git a/docs/source/index.rst b/docs/source/index.rst
index 258d0ab..50361e5 100644
--- a/docs/source/index.rst
+++ b/docs/source/index.rst
@@ -11,11 +11,7 @@
Python API library and shell utilities to monitor file system events.
-Works on 3.6+.
-
-If you want to use Python 2.6, you should stick with watchdog < 0.10.0.
-
-If you want to use Python 2.7, 3.4 or 3.5, you should stick with watchdog < 1.0.0.
+Works on 3.7+.
Directory monitoring made easy with
-----------------------------------
diff --git a/docs/source/installation.rst b/docs/source/installation.rst
index b814976..59fb163 100644
--- a/docs/source/installation.rst
+++ b/docs/source/installation.rst
@@ -4,7 +4,7 @@
Installation
============
-|project_name| requires 3.6+ to work. See a list of :ref:`installation-dependencies`.
+|project_name| requires 3.7+ to work. See a list of :ref:`installation-dependencies`.
Installing from PyPI using pip
------------------------------
diff --git a/setup.py b/setup.py
index fb0a888..6d165d5 100644
--- a/setup.py
+++ b/setup.py
@@ -129,7 +129,6 @@
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
- "Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
@@ -155,6 +154,6 @@
"watchmedo = watchdog.watchmedo:main [watchmedo]",
]
},
- python_requires=">=3.6",
+ python_requires=">=3.7",
zip_safe=False,
)