Skip to content

Commit

Permalink
Add Python 3.12 support, remove Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
thp committed Oct 24, 2023
1 parent 8a3f4b3 commit 77f4f3b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
fail-fast: false
matrix:
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format mostly follows [Keep a Changelog](http://keepachangelog.com/en/1.0.0/

## UNRELEASED

### Changed

- Remove EOL'd Python 3.7 (new minimum requirement is Python 3.8), add Python 3.12 testing

### Fixed

- Fix documentation for watching Github tags and releases, again (#723)
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# https://hub.docker.com/_/python
FROM python:3.11.0-alpine3.17
FROM python:3.12.0-alpine3.18

# Optional python modules for additional functionality
# https://urlwatch.readthedocs.io/en/latest/dependencies.html#optional-packages
Expand Down
2 changes: 1 addition & 1 deletion docs/source/dependencies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ additional packages -- however, those are not needed to run urlwatch.
Mandatory Packages
------------------

- Python 3.7 or newer
- Python 3.8 or newer
- `PyYAML <http://pyyaml.org/>`__
- `minidb <https://thp.io/2010/minidb/>`__
- `requests <http://python-requests.org/>`__
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
m = dict(re.findall("\n__([a-z]+)__ = '([^']+)'", main_py))
docs = re.findall('"""(.*?)"""', main_py, re.DOTALL)

if sys.version_info < (3, 7):
sys.exit('urlwatch requires Python 3.7 or newer')
if sys.version_info < (3, 8):
sys.exit('urlwatch requires Python 3.8 or newer')

m['name'] = 'urlwatch'
m['author'], m['author_email'] = re.match(r'(.*) <(.*)>', m['author']).groups()
Expand Down

0 comments on commit 77f4f3b

Please sign in to comment.