Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -174,6 +174,35 @@
run: |
make test-django

django-6:
needs: functional
runs-on: ubuntu-latest
strategy:
matrix:
# https://docs.djangoproject.com/en/6.0/faq/install/#what-python-version-can-i-use-with-django
python-version: ["3.12", "3.13", "3.14"]
django-version: ["6.0"]
steps:
- uses: actions/checkout@v4
- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: install poetry
uses: snok/install-poetry@v1

Check failure on line 192 in .github/workflows/test.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use full commit SHA hash for this dependency.

See more on https://sonarcloud.io/project/issues?id=uploadcare_pyuploadcare&issues=AZ_RJTG6K6vsonOx4WSx&open=AZ_RJTG6K6vsonOx4WSx&pullRequest=322
with:
virtualenvs-create: true
virtualenvs-in-project: false
- name: install dependencies
run: |
poetry install --with dev

Check warning on line 198 in .github/workflows/test.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Poetry allows execution of setup scripts on source builds by default. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=uploadcare_pyuploadcare&issues=AZ_RJTG6K6vsonOx4WSy&open=AZ_RJTG6K6vsonOx4WSy&pullRequest=322
- name: install specific django version
run: |
poetry run pip install django~=${{ matrix.django-version }}
- name: test with pytest
run: |
make test-django

integration:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium test

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
needs: functional
runs-on: ubuntu-latest
Expand Down
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,23 @@ pip install pyuploadcare[django]

## Requirements

* Python 3.8, 3.9, 3.10, 3.11, 3.12, 3.13
* Python 3.8, 3.9, 3.10, 3.11, 3.12, 3.13, 3.14

To use pyuploadcare with Python 3.6 or 3.7 please install `pyuploadcare < 5.0`.

To use pyuploadcare with Python 2.7 please install `pyuploadcare < 3.0`.

Django compatibility:

| Py/Dj | 2.2 | 3.0 | 3.1 | 3.2 | 4.0 | 4.1 | 4.2 | 5.0 | 5.1 | 5.2 |
| ----- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 3.8 | v | v | v | v | v | v | v | | | |
| 3.9 | v | v | v | v | v | v | v | | | |
| 3.10 | | | | v | v | v | v | v | v | v |
| 3.11 | | | | | | v | v | v | v | v |
| 3.12 | | | | | | | v | v | v | v |
| 3.13 | | | | | | | | | v | v |
| Py/Dj | 2.2 | 3.0 | 3.1 | 3.2 | 4.0 | 4.1 | 4.2 | 5.0 | 5.1 | 5.2 | 6.0 |
| ----- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 3.8 | v | v | v | v | v | v | v | | | | |
| 3.9 | v | v | v | v | v | v | v | | | | |
| 3.10 | | | | v | v | v | v | v | v | v | |
| 3.11 | | | | | | v | v | v | v | v | |
| 3.12 | | | | | | | v | v | v | v | v |
| 3.13 | | | | | | | | | v | v | v |
| 3.14 | | | | | | | | | | v | v |

*Note: See `.github/workflows/test.yml` for the exact tested matrix.*

Expand Down
Loading