Skip to content

Commit

Permalink
update setup files
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Yu committed Mar 27, 2024
1 parent 6b8e6f1 commit 3effc94
Showing 3 changed files with 28 additions and 12 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -11,13 +11,8 @@ jobs:
matrix:
python-version: ["3.11", "3.10", "3.9"]
django: [42, 41, 32]
cms: [311, 39]
cms: [40]
continue-on-error: [true]
exclude:
- django: 41
cms: 39
- django: 42
cms: 39
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
24 changes: 24 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -46,3 +46,27 @@ formats = zip

[bdist_wheel]
universal = 1


[flake8]
max-line-length = 120
exclude =
.git,
__pycache__,
**/migrations/,
build/,
.tox/,

[isort]
line_length = 79
multi_line_output = 3
lines_after_imports = 2
combine_as_imports = true
include_trailing_comma = true
balanced_wrapping = true
skip = manage.py, migrations, .tox
extra_standard_library = mock
known_django = django
known_cms = cms, menus
known_first_party = djangocms_version_locking
sections = FUTURE, STDLIB, DJANGO, CMS, THIRDPARTY, FIRSTPARTY, LOCALFOLDER
9 changes: 3 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -8,20 +8,17 @@ envlist =
ruff
pypi-description
towncrier
py{311,310,39}-django{42,41}-cms{311}
py{311,310,39}-django{32}-cms{311,39}
py{311,310,39}-django{32,42}-cms{40}
minversion = 3.22

[testenv]
commands = {env:COMMAND:python} cms_helper.py djangocms_multisite test {posargs}
deps =
django32: Django~=3.2.0
django41: Django~=4.1.0
django42: Django~=4.2.0
cms39: https://github.com/django-cms/django-cms/archive/release/3.9.x.zip
cms311: https://github.com/yakky/django-cms/archive/release/3.11.x.zip
cms40: https://github.com/django-cms/django-cms/archive/release/4.0.1.x.tar.gz
djangocms-text-ckeditor>=4
https://github.com/protoroto/django-multisite/archive/refs/heads/feature/add-django4-support.zip
https://github.com/FidelityInternational/django-multisite/archive/feat/django-42-compat.tar.gz
-r{toxinidir}/requirements-test.txt
passenv =
COMMAND

0 comments on commit 3effc94

Please sign in to comment.