Skip to content

Commit

Permalink
Added django 3.2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
matllubos committed Jan 3, 2023
1 parent 6280e7c commit d68696b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@ jobs:
max-parallel: 4
matrix:
include:
- python-version: 3.6
django-version: Django==3.1

- python-version: 3.7
django-version: Django==3.1

- python-version: 3.8
django-version: Django==3.1

- python-version: 3.7
django-version: Django==3.2

- python-version: 3.8
django-version: Django==3.2


services:
elasticsearch:
image: elasticsearch:7.6.2
Expand Down Expand Up @@ -49,8 +53,8 @@ jobs:
run: |
python -m pip install --upgrade pip
cd example
pip install -r requirements.txt
pip install ${{ matrix.django-version }}
pip install -r requirements.txt
- name: Flake
run: |
flake8 --config .config/flake8 pyston
Expand Down
4 changes: 2 additions & 2 deletions example/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Django==3.1.14
Django<=3.2
flake8
coveralls
html5lib==1.1
Expand All @@ -15,6 +15,6 @@ pytz==2020.5
psycopg2-binary==2.8.6
elasticsearch==7.13.4
elasticsearch-dsl==7.4.0
https://github.com/druids/pynamodb/tarball/AddTagsSupport#egg=pynamodb
pynamodb==5.3.3
pydjamodb==0.0.7
-e ../
4 changes: 2 additions & 2 deletions pyston/filters/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ def parse(self, request):
pp.QuotedString("'", escChar='\\', unquoteResults=True) | pp.QuotedString('"', escChar='\\',
unquoteResults=True)
)
null = pp.Literal('null').setParseAction(lambda s, l, t: None)
boolean = pp.Regex('|'.join(('true', 'false'))).setParseAction(lambda s, l, t: t[0] == 'true')
null = pp.Literal('null').setParseAction(lambda _s, _l, _t: None)
boolean = pp.Regex('|'.join(('true', 'false'))).setParseAction(lambda _s, _l, _t: _t[0] == 'true')

comparison_term << (string | number | list_term | null | boolean)

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
'Topic :: Internet :: WWW/HTTP',
],
install_requires=[
'django>=2.2,<4.0',
'django>=2.2, <4.0',
'python-mimeparse>=1.6.0',
'django-chamber>=0.6.11',
'django-chamber>=0.6.16',
'pyparsing==2.4.7',
'defusedxml>=0.6.0',
],
Expand Down

0 comments on commit d68696b

Please sign in to comment.