This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from kreneskyp/django4.1
Django4.1
- Loading branch information
Showing
23 changed files
with
173 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: test | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 3 | ||
matrix: | ||
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update -y && sudo apt-get install -y libldap2-dev libssl-dev libsasl2-dev | ||
python -m pip install --upgrade pip | ||
python -m venv venv | ||
source venv/bin/activate | ||
pip install -r requirements-setup.txt | ||
- name: Test with tox | ||
run: | | ||
source venv/bin/activate | ||
tox -vv | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update -y && sudo apt-get install -y libldap2-dev libssl-dev libsasl2-dev | ||
python -m pip install --upgrade pip | ||
python -m venv venv | ||
source venv/bin/activate | ||
pip install -r requirements-setup.txt | ||
- name: lint | ||
run: | | ||
source venv/bin/activate | ||
tox -vv -e lint | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "2.0.3" | ||
__version__ = "2.1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from baya.admin.options import BayaModelAdmin # nopep8 | ||
from baya.admin.options import BayaInlineMixin # nopep8 | ||
from baya.admin.options import BayaModelAdmin # noqa: F401 | ||
from baya.admin.options import BayaInlineMixin # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
coverage==5.1 | ||
django-nose==1.4.6 | ||
funcparserlib==0.3.6 | ||
mock==1.0.1 | ||
mockldap==0.2.6 | ||
nose==1.3.7 | ||
pycodestyle==2.0.0 | ||
pyflakes==0.9 | ||
flake8==2.6.2 | ||
pycodestyle==2.9.1 | ||
pyflakes==2.5.0 | ||
flake8==5.0.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
# Requirements needed for the setup make target and the test target | ||
# outside of the individual tox environments. | ||
|
||
Django>=1.11,<2.0 | ||
pluggy==0.3.0 | ||
py==1.10.0 | ||
tox==2.0.1 | ||
virtualenv==16.7.4 | ||
pluggy==1.0.0 | ||
py==1.11.0 | ||
tox==3.27.1 | ||
tox-pyenv==1.1.0 | ||
tox-setuptools-version==0.0.0.3 | ||
tox-gh-actions==2.11.0 | ||
virtualenv==20.16.7 | ||
xunitmerge==1.0.4 | ||
|
||
# dependencies | ||
filelock>=3.0.0 # tox | ||
packaging>=14 # tox | ||
tomli>=2.0.1 # tox | ||
importlib_resources==5.10.0 # tox-gh-actions | ||
zipp==3.10.0 # tox-gh-actions | ||
pyparsing==3.0.9 | ||
platformdirs==2.5.4 | ||
distlib==0.3.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
[flake8] | ||
max-line-length = 99 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,40 @@ | ||
[tox] | ||
install_command = pip install {opts} {packages} | ||
downloadcache = {toxworkdir}/_download/ | ||
envlist = {py36}-{1.11,2.0,2.1} | ||
envlist = {py37}-django{3.1,3.2},{py38,py39,py310,py311}-django{3.1,3.2,4.0,4.1} | ||
indexserver = | ||
default = https://pypi.python.org/simple | ||
|
||
|
||
[testenv] | ||
setuptools_version = setuptools<58.0 | ||
usedevelop = True | ||
commands = | ||
coverage run --omit="*tests*" --source=baya --branch \ | ||
./baya/tests/manage.py test {posargs:baya} | ||
deps = | ||
-r{toxinidir}/requirements-dev.txt | ||
1.11: Django>=1.11,<2.0 | ||
2.0: Django>=2.0,<2.1 | ||
2.1: Django>=2.1,<2.2 | ||
django3.1: Django>=3.1,<3.2 | ||
django3.2: Django>=3.2,<3.3 | ||
django4.0: Django>=4.0,<4.1 | ||
django4.1: Django>=4.1,<4.2 | ||
|
||
|
||
[testenv:lint] | ||
whitelist_externals = flake8 | ||
commands = | ||
flake8 -v baya/ | ||
|
||
|
||
[flake8] | ||
ignore = E731,E402 | ||
max-line-length = 99 | ||
ignore = E731,E402,W504 | ||
|
||
|
||
[gh-actions] | ||
python = | ||
3.7: py37 | ||
3.8: py38 | ||
3.9: py39 | ||
3.10: py310 | ||
3.11: py311 |