Skip to content

Commit 6cdf07e

Browse files
msabramoBoboTiG
andauthored
chore: Update supported Python versions (drop 3.7, add 3.12) (gorakhargosh#1017)
* tox.ini: Update supported versions as described at https://devguide.python.org/versions/ Fixes: gorakhargoshGH-971 * Update more stuff to say 3.8+ instead of 3.7+ * tox.ini: Remove py312 It seems tox doesn't support it yet. * .github/workflows/tests.yml: Remove "3.7" * Revert "tox.ini: Remove py312" This reverts commit 75c3edf. * .github/workflows/tests.yml: Add "3.12" * Update changelog.rst --------- Co-authored-by: Mickaël Schoentgen <[email protected]>
1 parent 6cfe9cc commit 6cdf07e

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ jobs:
4141
emoji: 🪟
4242
runs-on: [windows-latest]
4343
python:
44-
- "3.7"
4544
- "3.8"
4645
- "3.9"
4746
- "3.10"
4847
- "3.11"
48+
- "3.12"
4949
- "pypy-3.8"
5050
- "pypy-3.9"
5151
include:

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Watchdog
66

77
Python API and shell utilities to monitor file system events.
88

9-
Works on 3.7+.
9+
Works on 3.8+.
1010

1111
Example API Usage
1212
-----------------
@@ -213,7 +213,7 @@ appropriate observer like in the example above, do::
213213
Dependencies
214214
------------
215215

216-
1. Python 3.7 or above.
216+
1. Python 3.8 or above.
217217
2. XCode_ (only on macOS when installing from sources)
218218
3. PyYAML_ (only for ``watchmedo``)
219219

changelog.rst

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Changelog
88

99
2023-xx-xx • `full history <https://github.com/gorakhargosh/watchdog/compare/v3.0.0...HEAD>`__
1010

11+
- Drop support for Python 3.7.
12+
- Add support for Python 3.12.
1113
- [snapshot] Add typing to ``dirsnapshot`` (`#1012 <https://github.com/gorakhargosh/watchdog/pull/1012>`__)
1214
- [snapshot] Added ``DirectorySnapshotDiff.ContextManager`` (`#1011 <https://github.com/gorakhargosh/watchdog/pull/1011>`__)
1315
- [events] ``FileSystemEvent``, and subclasses, are now ``dataclass``es, and their ``repr()`` has changed

docs/source/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Watchdog
1111

1212
Python API library and shell utilities to monitor file system events.
1313

14-
Works on 3.7+.
14+
Works on 3.8+.
1515

1616
Directory monitoring made easy with
1717
-----------------------------------

docs/source/installation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Installation
66
============
7-
|project_name| requires 3.7+ to work. See a list of :ref:`installation-dependencies`.
7+
|project_name| requires 3.8+ to work. See a list of :ref:`installation-dependencies`.
88

99
Installing from PyPI using pip
1010
------------------------------

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@
129129
"Programming Language :: Python",
130130
"Programming Language :: Python :: 3",
131131
"Programming Language :: Python :: 3 :: Only",
132-
"Programming Language :: Python :: 3.7",
133132
"Programming Language :: Python :: 3.8",
134133
"Programming Language :: Python :: 3.9",
135134
"Programming Language :: Python :: 3.10",
136135
"Programming Language :: Python :: 3.11",
136+
"Programming Language :: Python :: 3.12",
137137
"Programming Language :: Python :: Implementation :: PyPy",
138138
"Programming Language :: C",
139139
"Topic :: Software Development :: Libraries",
@@ -154,6 +154,6 @@
154154
"watchmedo = watchdog.watchmedo:main [watchmedo]",
155155
]
156156
},
157-
python_requires=">=3.7",
157+
python_requires=">=3.8",
158158
zip_safe=False,
159159
)

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{311,310,39,38,37,36,py3}
3+
py{312,311,310,39,38,py3}
44
docs
55
mypy
66
skip_missing_interpreters = True

0 commit comments

Comments
 (0)