-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/0.1.19' into main
- Loading branch information
Showing
17 changed files
with
142 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: CI | ||
|
||
on: [push, pull_request, ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'bnzk/djangocms-misc' | ||
strategy: | ||
matrix: | ||
python: [3.6, 3.7, 3.8] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python ${{ matrix.python }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install Tox and any other packages | ||
run: pip install tox tox-gh-actions | ||
- name: Run Tox | ||
# Run tox using the version of Python in `PATH` | ||
# run: tox -e py${{ matrix.python }}-${{ matrix.django }} | ||
run: tox | ||
|
||
coverage: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: [3.7] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python ${{ matrix.python }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install tox | ||
run: pip install tox | ||
- name: Run tox with coverage | ||
# Run tox using the version of Python in `PATH` | ||
# run: tox -e py${{ matrix.python }}-${{ matrix.django }} | ||
run: tox -e py37-django22-cms37-treebeard43-coverage | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: [3.7] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python ${{ matrix.python }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install flake8 | ||
run: pip install flake8 | ||
- name: Run flake8 | ||
run: flake8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Release on PYPI | ||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'bnzk/djangocms-misc' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
- name: Install build dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install --upgrade setuptools wheel twine | ||
- name: Build | ||
run: | | ||
python setup.py sdist | ||
python setup.py bdist_wheel --universal | ||
- name: Publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USER_BNZK }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PW_BNZK }} | ||
run: twine upload dist/* |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
__version__ = '0.1.18' | ||
__version__ = '0.1.19' | ||
__author__ = 'benzkji' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
{% load static from staticfiles %} | ||
{% load static %} | ||
<link href="{% static 'admin/djangocms_misc/css/admin_style.css' %}" media="all" rel="stylesheet"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from __future__ import unicode_literals | ||
|
||
from django.test import TestCase | ||
|
||
from ..models import AppTemplate | ||
|
||
|
||
# add some basic things (admin list view, detail view, etc) | ||
class AppTemplateTests(TestCase): | ||
|
||
def fetch_objs(self): | ||
all = AppTemplate.objects.all() | ||
self.assertEqual(all.count(), 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
from django.conf import settings | ||
from modeltranslation.translator import TranslationOptions, translator | ||
from modeltranslation.translator import TranslationOptions | ||
from modeltranslation.decorators import register | ||
|
||
from djangocms_baseplugins.baseplugin import defaults | ||
from djangocms_baseplugins.baseplugin.utils import check_in_migration_modules | ||
|
||
from .models import PluginTemplate | ||
from . import conf | ||
|
||
|
||
translation_fields = defaults.TRANSLATED_FIELDS \ | ||
+ conf.TRANSLATED_FIELDS | ||
from .models import AppTemplate | ||
|
||
|
||
@register(AppTemplate) | ||
class AppTemplateTranslationOptions(TranslationOptions): | ||
fields = translation_fields | ||
fields = ['title', ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,7 +143,7 @@ | |
'menus', | ||
'filer', | ||
'mptt', | ||
'hvad', | ||
# 'hvad', | ||
'modeltranslation', | ||
# 'ckeditor', | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters