Skip to content

Commit

Permalink
exclude non working django and python combinations
Browse files Browse the repository at this point in the history
  • Loading branch information
kakulukia committed May 22, 2024
1 parent 60ccc93 commit 42eaa6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,16 @@ jobs:
python-version: ["3.8", "3.9", "3.10", "3.11"]
django: ["2.0", "3.0", "4.0", "5.0"]
exclude:
- python-version: "3.8"
django: "5.0"
- python-version: "3.9"
django: "5.0"
- python-version: "3.10"
django: "1.11"
- python-version: "3.10"
django: "2.0"
- python-version: "3.11"
django: "2.0"

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion pypugjs/ext/jinja.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,6 @@ def preprocess(self, source, name, filename=None):
if hasattr(loader, 'searchpath') and len(loader.searchpath):
self.options["basedir"] = loader.searchpath[0]

if not name or (name and not os.path.splitext(name)[1] in self.file_extensions):
if not name or (name and os.path.splitext(name)[1] not in self.file_extensions):
return source
return process(source, filename=name, compiler=Compiler, **self.options)

0 comments on commit 42eaa6f

Please sign in to comment.