Initial updates to remove 3.9 support
This commit is contained in:
parent
5e687d9a93
commit
0d4195e6e7
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -16,9 +16,9 @@ on:
|
|||||||
env:
|
env:
|
||||||
# This is the version of pipenv all the steps will use
|
# This is the version of pipenv all the steps will use
|
||||||
# If changing this, change Dockerfile
|
# If changing this, change Dockerfile
|
||||||
DEFAULT_PIP_ENV_VERSION: "2024.0.1"
|
DEFAULT_PIP_ENV_VERSION: "2024.0.3"
|
||||||
# This is the default version of Python to use in most steps which aren't specific
|
# This is the default version of Python to use in most steps which aren't specific
|
||||||
DEFAULT_PYTHON_VERSION: "3.10"
|
DEFAULT_PYTHON_VERSION: "3.11"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pre-commit:
|
pre-commit:
|
||||||
@ -100,7 +100,7 @@ jobs:
|
|||||||
- pre-commit
|
- pre-commit
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['3.9', '3.10', '3.11']
|
python-version: ['3.10', '3.11', '3.12']
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
|
@ -1 +1 @@
|
|||||||
3.9.19
|
3.10.15
|
||||||
|
@ -2,7 +2,7 @@ fix = true
|
|||||||
line-length = 88
|
line-length = 88
|
||||||
respect-gitignore = true
|
respect-gitignore = true
|
||||||
src = ["src"]
|
src = ["src"]
|
||||||
target-version = "py39"
|
target-version = "py310"
|
||||||
output-format = "grouped"
|
output-format = "grouped"
|
||||||
show-fixes = true
|
show-fixes = true
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ If you want to implement something big:
|
|||||||
|
|
||||||
## Python
|
## Python
|
||||||
|
|
||||||
Paperless supports python 3.9 - 3.11 at this time. We format Python code with [ruff](https://docs.astral.sh/ruff/formatter/).
|
Paperless supports python 3.10 - 3.12 at this time. We format Python code with [ruff](https://docs.astral.sh/ruff/formatter/).
|
||||||
|
|
||||||
## Branches
|
## Branches
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ COPY Pipfile* ./
|
|||||||
|
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
&& echo "Installing pipenv" \
|
&& echo "Installing pipenv" \
|
||||||
&& python3 -m pip install --no-cache-dir --upgrade pipenv==2024.0.1 \
|
&& python3 -m pip install --no-cache-dir --upgrade pipenv==2024.0.3 \
|
||||||
&& echo "Generating requirement.txt" \
|
&& echo "Generating requirement.txt" \
|
||||||
&& pipenv requirements > requirements.txt
|
&& pipenv requirements > requirements.txt
|
||||||
|
|
||||||
|
1674
Pipfile.lock
generated
1674
Pipfile.lock
generated
File diff suppressed because it is too large
Load Diff
@ -250,7 +250,7 @@ a minimal installation of Debian/Buster, which is the current stable
|
|||||||
release at the time of writing. Windows is not and will never be
|
release at the time of writing. Windows is not and will never be
|
||||||
supported.
|
supported.
|
||||||
|
|
||||||
Paperless requires Python 3. At this time, 3.9 - 3.11 are tested versions.
|
Paperless requires Python 3. At this time, 3.10 - 3.12 are tested versions.
|
||||||
Newer versions may work, but some dependencies may not fully support newer versions.
|
Newer versions may work, but some dependencies may not fully support newer versions.
|
||||||
Support for older Python versions may be dropped as they reach end of life or as newer versions
|
Support for older Python versions may be dropped as they reach end of life or as newer versions
|
||||||
are released, dependency support is confirmed, etc.
|
are released, dependency support is confirmed, etc.
|
||||||
|
@ -1638,9 +1638,8 @@ class RemoteVersionView(GenericAPIView):
|
|||||||
try:
|
try:
|
||||||
remote_json = json.loads(remote)
|
remote_json = json.loads(remote)
|
||||||
remote_version = remote_json["tag_name"]
|
remote_version = remote_json["tag_name"]
|
||||||
# Basically PEP 616 but that only went in 3.9
|
# Some early tags used ngx-x.y.z
|
||||||
if remote_version.startswith("ngx-"):
|
remote_version = remote_version.removeprefix("ngx-")
|
||||||
remote_version = remote_version[len("ngx-") :]
|
|
||||||
except ValueError:
|
except ValueError:
|
||||||
logger.debug("An error occurred parsing remote version json")
|
logger.debug("An error occurred parsing remote version json")
|
||||||
except urllib.error.URLError:
|
except urllib.error.URLError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user