mirror of
https://github.com/Hopiu/django-uuslug.git
synced 2026-03-16 20:10:24 +00:00
up version packages
This commit is contained in:
commit
ff61da206e
8 changed files with 40 additions and 26 deletions
9
.gitignore
vendored
9
.gitignore
vendored
|
|
@ -56,6 +56,11 @@ docs/_build/
|
|||
# PyBuilder
|
||||
target/
|
||||
|
||||
# Dev env
|
||||
# VSCode
|
||||
/.vscode/
|
||||
|
||||
.env/
|
||||
.vscode/
|
||||
|
||||
# Pipenv
|
||||
Pipfile
|
||||
Pipfile.lock
|
||||
|
|
|
|||
41
.travis.yml
41
.travis.yml
|
|
@ -3,42 +3,43 @@ language: python
|
|||
dist: xenial
|
||||
|
||||
python:
|
||||
- "3.7"
|
||||
- "3.5"
|
||||
- "3.6"
|
||||
- "3.7"
|
||||
- "2.7"
|
||||
- pypy
|
||||
- pypy3
|
||||
|
||||
env:
|
||||
# Django 2.2.x
|
||||
- DJANGO="django>=2.2,<2.3"
|
||||
# Django 2.1.x
|
||||
- DJANGO="django>=2.1,<2.2"
|
||||
# Django 1.11.x
|
||||
- DJANGO="django>=1.11,<1.12"
|
||||
- DJANGO="django==3.0"
|
||||
- DJANGO="django==2.2.8"
|
||||
- DJANGO="django==1.11.26"
|
||||
|
||||
install:
|
||||
- pip install $DJANGO
|
||||
- pip install -r requirements.txt
|
||||
- pip install -r requirements_dev.txt
|
||||
- pip install -e .
|
||||
- pip install flake8 coverage coveralls
|
||||
- pip install https://github.com/un33k/pyflakes/tarball/master
|
||||
- pip install coveralls
|
||||
|
||||
before_script:
|
||||
- "flake8 uuslug"
|
||||
- "pycodestyle --exclude=migrations --ignore=E501,E225,E128 ."
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pyflakes -x W uuslug; fi
|
||||
|
||||
matrix:
|
||||
exclude:
|
||||
- python: "2.7"
|
||||
env: DJANGO="django>=2.2,<2.3"
|
||||
- python: "2.7"
|
||||
env: DJANGO="django>=2.1,<2.2"
|
||||
# pypy is the Python 2.7
|
||||
- python: "pypy"
|
||||
env: DJANGO="django>=2.2,<2.3"
|
||||
- python: "pypy"
|
||||
env: DJANGO="django>=2.1,<2.2"
|
||||
- python: "3.5"
|
||||
env: DJANGO="django==3.0"
|
||||
- python: "2.7"
|
||||
env: DJANGO="django==2.2.8"
|
||||
- python: "2.7"
|
||||
env: DJANGO="django==3.0"
|
||||
- python: pypy
|
||||
env: DJANGO="django==2.2.8"
|
||||
- python: pypy
|
||||
env: DJANGO="django==3.0"
|
||||
|
||||
script: coverage run --source=uuslug manage.py test
|
||||
|
||||
after_success:
|
||||
coveralls
|
||||
after_success: coveralls
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
## 1.2.0
|
||||
|
||||
Maintenance:
|
||||
|
||||
- Up version python-slugify, remove support for old Django versions
|
||||
|
||||
## 1.1.8
|
||||
|
||||
Maintenance:
|
||||
|
|
|
|||
|
|
@ -7,5 +7,5 @@
|
|||
# -- E225 missing whitespace around operator
|
||||
# -- E501 line too long
|
||||
|
||||
pep8 --exclude=migrations --ignore=E128,E225,E501 .
|
||||
pycodestyle --exclude=migrations --ignore=E128,E225,E501 .
|
||||
|
||||
|
|
@ -1,2 +1,3 @@
|
|||
Django>=1.8
|
||||
python-slugify>=1.2.0
|
||||
python-slugify>=1.2.1
|
||||
six>=1.13.0
|
||||
1
requirements_dev.txt
Normal file
1
requirements_dev.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
pycodestyle>=2.5.0
|
||||
|
|
@ -2,6 +2,6 @@ from .uuslug import * # noqa
|
|||
|
||||
__author__ = 'Val Neekman @ Neekware Inc. [@vneekman]'
|
||||
__description__ = 'A Python slugify application that also handles Unicode'
|
||||
__version__ = '1.1.9'
|
||||
__version__ = '1.2.0'
|
||||
|
||||
default_app_config = 'uuslug.apps.AppConfig'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
from django.db.models.base import ModelBase
|
||||
from slugify import slugify as pyslugify
|
||||
from django.utils import six
|
||||
import six
|
||||
if six.PY3:
|
||||
from django.utils.encoding import smart_str
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue