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
|
# PyBuilder
|
||||||
target/
|
target/
|
||||||
|
|
||||||
# Dev env
|
# VSCode
|
||||||
|
/.vscode/
|
||||||
|
|
||||||
.env/
|
.env/
|
||||||
.vscode/
|
|
||||||
|
# Pipenv
|
||||||
|
Pipfile
|
||||||
|
Pipfile.lock
|
||||||
|
|
|
||||||
41
.travis.yml
41
.travis.yml
|
|
@ -3,42 +3,43 @@ language: python
|
||||||
dist: xenial
|
dist: xenial
|
||||||
|
|
||||||
python:
|
python:
|
||||||
- "3.7"
|
- "3.5"
|
||||||
- "3.6"
|
- "3.6"
|
||||||
|
- "3.7"
|
||||||
- "2.7"
|
- "2.7"
|
||||||
- pypy
|
- pypy
|
||||||
- pypy3
|
- pypy3
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Django 2.2.x
|
- DJANGO="django==3.0"
|
||||||
- DJANGO="django>=2.2,<2.3"
|
- DJANGO="django==2.2.8"
|
||||||
# Django 2.1.x
|
- DJANGO="django==1.11.26"
|
||||||
- DJANGO="django>=2.1,<2.2"
|
|
||||||
# Django 1.11.x
|
|
||||||
- DJANGO="django>=1.11,<1.12"
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install $DJANGO
|
- pip install $DJANGO
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
|
- pip install -r requirements_dev.txt
|
||||||
- pip install -e .
|
- pip install -e .
|
||||||
- pip install flake8 coverage coveralls
|
- pip install https://github.com/un33k/pyflakes/tarball/master
|
||||||
|
- pip install coveralls
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- "flake8 uuslug"
|
- "pycodestyle --exclude=migrations --ignore=E501,E225,E128 ."
|
||||||
|
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pyflakes -x W uuslug; fi
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
exclude:
|
exclude:
|
||||||
- python: "2.7"
|
- python: "3.5"
|
||||||
env: DJANGO="django>=2.2,<2.3"
|
env: DJANGO="django==3.0"
|
||||||
- python: "2.7"
|
- python: "2.7"
|
||||||
env: DJANGO="django>=2.1,<2.2"
|
env: DJANGO="django==2.2.8"
|
||||||
# pypy is the Python 2.7
|
- python: "2.7"
|
||||||
- python: "pypy"
|
env: DJANGO="django==3.0"
|
||||||
env: DJANGO="django>=2.2,<2.3"
|
- python: pypy
|
||||||
- python: "pypy"
|
env: DJANGO="django==2.2.8"
|
||||||
env: DJANGO="django>=2.1,<2.2"
|
- python: pypy
|
||||||
|
env: DJANGO="django==3.0"
|
||||||
|
|
||||||
script: coverage run --source=uuslug manage.py test
|
script: coverage run --source=uuslug manage.py test
|
||||||
|
|
||||||
after_success:
|
after_success: coveralls
|
||||||
coveralls
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
## 1.2.0
|
||||||
|
|
||||||
|
Maintenance:
|
||||||
|
|
||||||
|
- Up version python-slugify, remove support for old Django versions
|
||||||
|
|
||||||
## 1.1.8
|
## 1.1.8
|
||||||
|
|
||||||
Maintenance:
|
Maintenance:
|
||||||
|
|
|
||||||
|
|
@ -7,5 +7,5 @@
|
||||||
# -- E225 missing whitespace around operator
|
# -- E225 missing whitespace around operator
|
||||||
# -- E501 line too long
|
# -- 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
|
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]'
|
__author__ = 'Val Neekman @ Neekware Inc. [@vneekman]'
|
||||||
__description__ = 'A Python slugify application that also handles Unicode'
|
__description__ = 'A Python slugify application that also handles Unicode'
|
||||||
__version__ = '1.1.9'
|
__version__ = '1.2.0'
|
||||||
|
|
||||||
default_app_config = 'uuslug.apps.AppConfig'
|
default_app_config = 'uuslug.apps.AppConfig'
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
from django.db.models.base import ModelBase
|
from django.db.models.base import ModelBase
|
||||||
from slugify import slugify as pyslugify
|
from slugify import slugify as pyslugify
|
||||||
from django.utils import six
|
import six
|
||||||
if six.PY3:
|
if six.PY3:
|
||||||
from django.utils.encoding import smart_str
|
from django.utils.encoding import smart_str
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue