mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
Fix #368 -- Update Python and Django versions
This commit is contained in:
parent
27f67a58a4
commit
df2a7f18fd
8 changed files with 31 additions and 32 deletions
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
|
|
@ -11,19 +11,19 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.11
|
||||||
|
|
||||||
- name: Get pip cache dir
|
- name: Get pip cache dir
|
||||||
id: pip-cache
|
id: pip-cache
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=dir::$(pip cache dir)"
|
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Cache
|
- name: Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
|
|
@ -50,4 +50,4 @@ jobs:
|
||||||
with:
|
with:
|
||||||
user: jazzband
|
user: jazzband
|
||||||
password: ${{ secrets.JAZZBAND_RELEASE_KEY }}
|
password: ${{ secrets.JAZZBAND_RELEASE_KEY }}
|
||||||
repository_url: https://jazzband.co/projects/django-configurations/upload
|
repository-url: https://jazzband.co/projects/django-configurations/upload
|
||||||
|
|
|
||||||
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
|
@ -13,10 +13,10 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
max-parallel: 5
|
max-parallel: 5
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10']
|
python-version: ['3.8', '3.9', '3.10', '3.11', 'pypy-3.10']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
---
|
---
|
||||||
version: 2
|
version: 2
|
||||||
build:
|
build:
|
||||||
os: ubuntu-20.04
|
os: ubuntu-22.04
|
||||||
tools:
|
tools:
|
||||||
python: "3.9"
|
python: "3.10"
|
||||||
python:
|
python:
|
||||||
install:
|
install:
|
||||||
- requirements: docs/requirements.txt
|
- requirements: docs/requirements.txt
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
try:
|
from importlib.metadata import PackageNotFoundError, version
|
||||||
from importlib.metadata import PackageNotFoundError, version
|
|
||||||
except ImportError:
|
|
||||||
from importlib_metadata import PackageNotFoundError, version
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
__version__ = version("django-configurations")
|
__version__ = version("django-configurations")
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,20 @@
|
||||||
Changelog
|
Changelog
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
v2.5 (unreleased)
|
||||||
|
^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
- Update Github actions and fix pipeline warnings
|
||||||
|
- Add compatibility with Django 5.0
|
||||||
|
- **BACKWARD INCOMPATIBLE** Drop compatibility for Django 4.0
|
||||||
|
- **BACKWARD INCOMPATIBLE** Drop compatibility for Python 3.7 and PyPy < 3.10
|
||||||
|
|
||||||
|
v2.4.2 (2023-09-27)
|
||||||
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
- Replace imp (due for removal in Python 3.12) with importlib
|
||||||
|
- Test on PyPy 3.10.
|
||||||
|
|
||||||
v2.4.1 (2023-04-04)
|
v2.4.1 (2023-04-04)
|
||||||
^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|
|
||||||
5
setup.py
5
setup.py
|
|
@ -31,9 +31,8 @@ setup(
|
||||||
},
|
},
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'django>=3.2',
|
'django>=3.2',
|
||||||
'importlib-metadata;python_version<"3.8"',
|
|
||||||
],
|
],
|
||||||
python_requires='>=3.7, <4.0',
|
python_requires='>=3.8, <4.0',
|
||||||
extras_require={
|
extras_require={
|
||||||
'cache': ['django-cache-url'],
|
'cache': ['django-cache-url'],
|
||||||
'database': ['dj-database-url'],
|
'database': ['dj-database-url'],
|
||||||
|
|
@ -50,7 +49,6 @@ setup(
|
||||||
'Development Status :: 5 - Production/Stable',
|
'Development Status :: 5 - Production/Stable',
|
||||||
'Framework :: Django',
|
'Framework :: Django',
|
||||||
'Framework :: Django :: 3.2',
|
'Framework :: Django :: 3.2',
|
||||||
'Framework :: Django :: 4.0',
|
|
||||||
'Framework :: Django :: 4.1',
|
'Framework :: Django :: 4.1',
|
||||||
'Framework :: Django :: 4.2',
|
'Framework :: Django :: 4.2',
|
||||||
'Intended Audience :: Developers',
|
'Intended Audience :: Developers',
|
||||||
|
|
@ -59,7 +57,6 @@ setup(
|
||||||
'Programming Language :: Python',
|
'Programming Language :: Python',
|
||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
'Programming Language :: Python :: 3 :: Only',
|
'Programming Language :: Python :: 3 :: Only',
|
||||||
'Programming Language :: Python :: 3.7',
|
|
||||||
'Programming Language :: Python :: 3.8',
|
'Programming Language :: Python :: 3.8',
|
||||||
'Programming Language :: Python :: 3.9',
|
'Programming Language :: Python :: 3.9',
|
||||||
'Programming Language :: Python :: 3.10',
|
'Programming Language :: Python :: 3.10',
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
import os
|
import os
|
||||||
import uuid
|
import uuid
|
||||||
import django
|
|
||||||
|
|
||||||
from configurations import Configuration, pristinemethod
|
from configurations import Configuration, pristinemethod
|
||||||
from configurations.values import BooleanValue
|
from configurations.values import BooleanValue
|
||||||
|
|
@ -36,9 +35,6 @@ class Test(Configuration):
|
||||||
|
|
||||||
ROOT_URLCONF = 'tests.urls'
|
ROOT_URLCONF = 'tests.urls'
|
||||||
|
|
||||||
if django.VERSION[:2] < (1, 6):
|
|
||||||
TEST_RUNNER = 'discover_runner.DiscoverRunner'
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def ALLOWED_HOSTS(self):
|
def ALLOWED_HOSTS(self):
|
||||||
allowed_hosts = super().ALLOWED_HOSTS[:]
|
allowed_hosts = super().ALLOWED_HOSTS[:]
|
||||||
|
|
|
||||||
19
tox.ini
19
tox.ini
|
|
@ -3,23 +3,18 @@ skipsdist = true
|
||||||
usedevelop = true
|
usedevelop = true
|
||||||
minversion = 1.8
|
minversion = 1.8
|
||||||
envlist =
|
envlist =
|
||||||
py37-checkqa
|
py311-checkqa
|
||||||
docs
|
docs
|
||||||
py{37,py37}-dj{32}
|
py{38,39}-dj{32,41,42}
|
||||||
py{38,py38,39,py39}-dj{32,40,41,42}
|
py{310,py310}-dj{32,41,42,50,main}
|
||||||
py{310,py310}-dj{32,40,41,42,main}
|
py{311}-dj{41,42,50,main}
|
||||||
py{311}-dj{41,42,main}
|
|
||||||
|
|
||||||
[gh-actions]
|
[gh-actions]
|
||||||
python =
|
python =
|
||||||
3.7: py37,flake8,readme
|
|
||||||
3.8: py38
|
3.8: py38
|
||||||
3.9: py39
|
3.9: py39
|
||||||
3.10: py310
|
3.10: py310
|
||||||
3.11: py311
|
3.11: py311,flake8,readme
|
||||||
pypy-3.7: pypy37
|
|
||||||
pypy-3.8: pypy38
|
|
||||||
pypy-3.9: pypy39
|
|
||||||
pypy-3.10: pypy310
|
pypy-3.10: pypy310
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
|
@ -30,9 +25,9 @@ setenv =
|
||||||
COVERAGE_PROCESS_START = {toxinidir}/setup.cfg
|
COVERAGE_PROCESS_START = {toxinidir}/setup.cfg
|
||||||
deps =
|
deps =
|
||||||
dj32: django~=3.2.9
|
dj32: django~=3.2.9
|
||||||
dj40: django~=4.0.0
|
|
||||||
dj41: django~=4.1.3
|
dj41: django~=4.1.3
|
||||||
dj42: django~=4.2.0
|
dj42: django~=4.2.0
|
||||||
|
dj50: django~=5.0.0a1
|
||||||
djmain: https://github.com/django/django/archive/main.tar.gz
|
djmain: https://github.com/django/django/archive/main.tar.gz
|
||||||
coverage
|
coverage
|
||||||
coverage_enable_subprocess
|
coverage_enable_subprocess
|
||||||
|
|
@ -44,7 +39,7 @@ commands =
|
||||||
coverage report -m --skip-covered
|
coverage report -m --skip-covered
|
||||||
coverage xml
|
coverage xml
|
||||||
|
|
||||||
[testenv:py37-checkqa]
|
[testenv:py311-checkqa]
|
||||||
commands =
|
commands =
|
||||||
flake8 {toxinidir}
|
flake8 {toxinidir}
|
||||||
check-manifest -v
|
check-manifest -v
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue