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

Add support for official Python & Django versions #7

Open
wants to merge 1 commit 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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, pypy-3.7]
python-version: [3.8, 3.9, "3.10", "3.11", "pypy-3.9"]

steps:
- uses: actions/checkout@v1
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ Changelog
0.7.2 (unreleased)
------------------

- compatibility with Django 3.1 & 3.2
- add support for Django 4.1 & 4.2
- add support for Python 3.10, 3.11
- drop support for Python 3.5, 3.6 & 3.7
- drop support for PyPy 3.7
- add support for PyPy 3.9


0.7.1 (2019-12-02)
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,4 +273,4 @@ def _short_version(release):


# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'https://docs.python.org/3/': None}
intersphinx_mapping = {'Python 3': ('https://docs.python.org/3/', None)}
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def read(*parts):
url='https://github.com/Zegocover/enmerkar',
packages=find_packages(exclude=('tests',)),
install_requires=[
'django>=2.2',
'django>=3.2',
'babel>=1.3',
],
classifiers=[
Expand All @@ -37,11 +37,10 @@ def read(*parts):
'Topic :: Software Development :: Libraries :: Python Modules',
'Framework :: Django',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: Implementation :: CPython',
],
Expand Down
4 changes: 1 addition & 3 deletions tests/test_extract.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# -*- coding: utf-8 -*-
import unittest
from io import BytesIO

import pytest

from babel.messages import extract
from babel._compat import BytesIO

from enmerkar.extract import extract_django


default_keys = extract.DEFAULT_KEYWORDS.keys()


Expand Down
30 changes: 17 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,39 +1,43 @@
[tox]
envlist = py{35,36,37,38,39}-django22, py{36,37,38,39}-{django30,django31,django32}, pypy37-{django30,django31,django32}, py{38,39}-{djangomain}, lint, docs
envlist =
py{38,39}-{django32},
py{38,39,310,311}-django{41,42},
pypy39-django{32,41,42},
py{310,311}-{djangomain},
lint,
docs

[testenv]
deps =
coverage
pytest
pytest-cov
pytest-django
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
djangomain: https://github.com/django/django/archive/main.tar.gz#egg=Django
commands = py.test {posargs}

[testenv:docs]
basepython = python3.9
basepython = python3.11
deps =
sphinx
Django>=3.2,<3.3
Django>=4.2,<5.0
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/_build/html
sphinx-build -W -b linkcheck docs {envtmpdir}/_build/html

[testenv:lint]
basepython = python3.9
basepython = python3.11
deps =
flake8==3.9.2
flake8==6.1.0
commands=flake8 enmerkar tests

[gh-actions]
python =
3.5: py35
3.6: py36
3.7: py37
3.8: py38
3.9: py39, lint, docs
pypy-3.7: pypy37
3.9: py39
3.10: py310
3.11: py311, lint, docs
pypy-3.9: pypy39