Skip to content
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
48 changes: 48 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Tests

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
tests:
runs-on: ubuntu-22.04
strategy:
max-parallel: 4
matrix:
include:
- python: 3.11.11
django: 5.2.0
djangorestframework: 3.16.0
- python: 3.11.11
django: 4.1.13
djangorestframework: 3.14.0
- python: 3.9.16
django: 3.2.17
djangorestframework: 3.13.0
- python: 3.7.15
django: 2.2.28
djangorestframework: 3.9.4
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Dependencies
run: >-
python -m pip
install --upgrade
pip
'setuptools<58'
wheel
flake8
'Django==${{ matrix.django }}'
'djangorestframework==${{ matrix.djangorestframework }}'
- name: Run Tests
run: |
./runtests.sh
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ A number of Pystache/Mustache backends for Django exist, though many are outdate
[![GitHub Forks](https://img.shields.io/github/forks/wq/django-mustache.svg)](https://github.com/wq/django-mustache/network)
[![GitHub Issues](https://img.shields.io/github/issues/wq/django-mustache.svg)](https://github.com/wq/django-mustache/issues)

[![Travis Build Status](https://img.shields.io/travis/wq/django-mustache/master.svg)](https://travis-ci.org/wq/django-mustache)
[![Python Support](https://img.shields.io/pypi/pyversions/django-mustache.svg)](https://pypi.org/project/django-mustache)
[![Django Support](https://img.shields.io/pypi/djversions/django-mustache.svg)](https://pypi.org/project/django-mustache)

Expand Down
22 changes: 10 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,30 +26,28 @@ def readme():
long_description_content_type='text/markdown',
install_requires=[
'Django>=1.8',
'pystache',
'pystache<0.6',
],
classifiers=[
'Framework :: Django',
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'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',

'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.11',
'Framework :: Django :: 2.0',
'Framework :: Django :: 2.1',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Framework :: Django :: 3.1',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.1',
'Framework :: Django :: 4.2',

'Topic :: Text Processing :: Markup :: HTML',
],
Expand All @@ -58,6 +56,6 @@ def readme():
'djangorestframework'
],
setup_requires=[
'setuptools_scm',
'setuptools_scm<8',
],
)
15 changes: 9 additions & 6 deletions tests/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from django.conf.urls import url
try:
from django.urls import re_path
except ImportError:
from django.conf.urls import url as re_path

from tests.views import (
ContextView,
Expand All @@ -9,9 +12,9 @@
)

urlpatterns = [
url('^context$', ContextView.as_view()),
url('^partials$', PartialsView.as_view()),
url('^mustachecp$', MustacheCPView.as_view()),
url('^djangocp$', DjangoCPView.as_view()),
url('^apptemplate$', AppTemplateView.as_view()),
re_path('^context$', ContextView.as_view()),
re_path('^partials$', PartialsView.as_view()),
re_path('^mustachecp$', MustacheCPView.as_view()),
re_path('^djangocp$', DjangoCPView.as_view()),
re_path('^apptemplate$', AppTemplateView.as_view()),
]