Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Django 4.2 #119

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
max-parallel: 5
matrix:
python-version:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Release

on:
release:
types: [published]

jobs:
build-and-publish:
uses: less-action/reusables/.github/workflows/python-publish.yaml@v6
secrets:
pypi_api_token: ${{ secrets.PYPI_API_TOKEN }}
36 changes: 18 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default_language_version:
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: "v4.3.0"
hooks:
- id: check-case-conflict
- id: check-merge-conflict
Expand All @@ -11,51 +11,51 @@ repos:
- id: debug-statements
- id: detect-private-key
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
rev: "v2.37.3"
hooks:
- id: pyupgrade
args:
- --py36-plus
- --py37-plus
- repo: https://github.com/myint/autoflake
rev: v1.4
rev: "v1.5.1"
hooks:
- id: autoflake
args:
- --in-place
- --remove-all-unused-imports
- --ignore-init-module-imports
- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: "5.12.0"
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.3.0
rev: "22.6.0"
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
rev: "v1.12.1"
hooks:
- id: blacken-docs
additional_dependencies: [black==22.3.0]
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
additional_dependencies: ["black==22.6.0"]
- repo: https://github.com/pycqa/flake8
rev: "5.0.4"
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-comprehensions
- flake8-tidy-imports
- flake8-print
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.11.0
rev: "0.18.1"
hooks:
- id: check-github-workflows
# - repo: https://github.com/mgedmin/check-manifest
# rev: "0.47"
# hooks:
# - id: check-manifest
# # See https://github.com/mgedmin/check-manifest/issues/141
# args: ["--no-build-isolation"]
# Unsure how to solve this failing
- repo: https://github.com/mgedmin/check-manifest
rev: "0.48"
hooks:
- id: check-manifest
# See https://github.com/mgedmin/check-manifest/issues/141
args: ["--no-build-isolation"]

exclude: |
(?x)(
Expand Down
7 changes: 7 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
include setup.py README.md MANIFEST.in LICENSE AUTHORS
exclude runtests.py tox.ini *.yml *.yaml Makefile Dockerfile .dockerignore .gitmodules

recursive-include djedi/templates *
recursive-include djedi/static *
recursive-include djedi *.py
recursive-exclude djedi *.html
recursive-exclude djedi *.png
recursive-exclude djedi-react *
recursive-exclude docs *
recursive-exclude example *

global-exclude *~
2 changes: 1 addition & 1 deletion djedi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = (1, 3, 3, "final", 0)
VERSION = (1, 4, 0, "final", 0)


def get_version(version=None):
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
Expand Down
17 changes: 7 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,30 @@
# and then run "tox" from this directory.

[tox]
envlist = py36-django{ 22, 30, 31, 32 },
py37-django{ 22, 30, 31, 32 },
py38-django{ 22, 30, 31, 32, 40, 41 },
py39-django{ 22, 30, 31, 32, 40, 41 },
py310-django{ 22, 30, 31, 32, 40, 41 }
envlist = py37-django{ 32 },
py38-django{ 32, 40, 41, 42 },
py39-django{ 32, 40, 41, 42 },
py310-django{ 32, 40, 41, 42 }


[testenv]
passenv = COVERAGE_FILE
whitelist_externals = make
allowlist_externals = make
commands = make test
install_command = pip install --pre {opts} {packages}
deps = six
Pillow
markdown<=3.3
django-discover-runner
coverage
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3

[testenv:lcov]
passenv = COVERAGE_FILE
whitelist_externals = make
allowlist_externals = make
commands = make coverage-lcov
install_command = pip install --pre {opts} {packages}
deps = coverage
Expand Down