Skip to content

Commit c7c5afa

Browse files
committed
Dropped support django <2.0, prepare for release
1 parent f000e19 commit c7c5afa

File tree

10 files changed

+28
-31
lines changed

10 files changed

+28
-31
lines changed

HISTORY.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
Changelog
22
---------
33

4+
7.0.0 (2019-06-10)
5+
~~~~~~~~~~~~~~~~~~
6+
7+
* Renamed package from `tri.form` to `tri_form`. This is a breaking change
8+
9+
* Dropped python2 support
10+
11+
* Dropped Django < 2.0 support
12+
13+
414
6.0.2 (2019-06-03)
515
~~~~~~~~~~~~~~~~~~
616

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
from tri_declarative import generate_rst_docs
3434

35-
generate_rst_docs('.', [tri.form.Form, tri.form.Field], (tri.form.MISSING,))
35+
generate_rst_docs('.', [tri_form.Form, tri_form.Field], (tri_form.MISSING,))
3636

3737

3838
# -- General configuration -----------------------------------------------------
@@ -69,9 +69,9 @@
6969
# built documents.
7070
#
7171
# The short X.Y version.
72-
version = tri.form.__version__
72+
version = tri_form.__version__
7373
# The full version, including alpha/beta/rc tags.
74-
release = tri.form.__version__
74+
release = tri_form.__version__
7575

7676
# The language for content autogenerated by Sphinx. Refer to documentation
7777
# for a list of supported languages.

examples/examples/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
'django.contrib.sessions',
3636
'django.contrib.messages',
3737
'django.contrib.staticfiles',
38-
'tri.form',
38+
'tri_form',
3939
'examples',
4040
)
4141

lib/tri_form/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
# Prevent django templates from calling That Which Must Not Be Called
6161
Namespace.do_not_call_in_templates = True
6262

63-
__version__ = '6.0.2' # pragma: no mutate
63+
__version__ = '7.0.0' # pragma: no mutate
6464

6565

6666
def capitalize(s):

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
tri.declarative >=2.0.0,<3.0.0
2-
tri.struct >= 2.5.3
1+
tri.declarative>=3.0.0,<4.0.0
2+
tri.struct>=3.0.0,<4.0.0
33
six

setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ def run(self):
8989
'Intended Audience :: Developers',
9090
'License :: OSI Approved :: BSD License',
9191
'Natural Language :: English',
92-
"Programming Language :: Python :: 2",
93-
'Programming Language :: Python :: 2.7',
9492
'Programming Language :: Python :: 3',
9593
'Programming Language :: Python :: 3.6',
9694
],

test_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
beautifulsoup4==4.7.1
2-
pytest==4.3.1
2+
pytest==4.6.2
33
-rrequirements.txt

tests/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
INSTALLED_APPS = [
2525
'django.contrib.auth',
2626
'django.contrib.contenttypes',
27-
'tri.form',
27+
'tri_form',
2828
'tests'
2929
]
3030

tests/test_forms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ class MyTestForm(Form):
8181

8282

8383
def test_repr():
84-
assert '<tri.form.Field foo>' == repr(Field(name='foo'))
85-
assert '<tri.form.Field foo>' == str(Field(name='foo'))
84+
assert '<tri_form.Field foo>' == repr(Field(name='foo'))
85+
assert '<tri_form.Field foo>' == str(Field(name='foo'))
8686

8787

8888
def test_required_choice():

tox.ini

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
[tox]
2-
envlist = py27-django{19,110,111},py36-django{110,111,20,21},py37-django{20,21},py36-flask
2+
envlist = py36-django{20,21,22},py36-flask
33

44
[testenv]
55
commands = {envpython} -m pytest {posargs}
66
deps =
7-
django19: Django >= 1.9, <1.10
8-
django110: Django >= 1.10, <1.11
9-
django111: Django >= 1.11, <1.12
107
django20: Django >= 2.0, <2.1
118
django21: Django >= 2.1, <2.2
12-
django{19,110,111,20,21}: pytest-django
9+
django22: Django >= 2.2, <2.3
10+
django{20,21,22}: pytest-django
1311
flask: flask
1412
-rtest_requirements.txt
1513
usedevelop = True
@@ -34,11 +32,11 @@ deps =
3432
basepython = python3.6
3533
usedevelop = True
3634
commands =
37-
{envpython} -m pytest --cov tri.form --cov-config .coveragerc {posargs}
35+
{envpython} -m pytest --cov tri_form --cov-config .coveragerc {posargs}
3836
coverage report -m
3937
coverage html
4038
deps =
41-
Django >= 2.1, <2.2
39+
Django >= 2.2, <2.3
4240
coverage
4341
pytest-cov
4442
pytest-django
@@ -50,7 +48,7 @@ usedevelop = True
5048
commands =
5149
{envpython} -m flake8 lib/tri tests setup.py {posargs}
5250
deps =
53-
Django >= 2.1, <2.2
51+
Django >= 2.2, <2.3
5452
flake8
5553

5654
[testenv:venv]
@@ -59,7 +57,7 @@ usedevelop = True
5957
basepython = python3.6
6058
commands = {posargs:python --version}
6159
deps =
62-
Django >= 2.1, <2.2
60+
Django >= 2.2, <2.3
6361
-rvenv_requirements.txt
6462
whitelist_externals =
6563
make
@@ -75,12 +73,3 @@ deps =
7573
-rvenv_requirements.txt
7674
whitelist_externals =
7775
make
78-
79-
[testenv:ipython]
80-
basepython = python3.6
81-
usedevelop = True
82-
commands = ipython {posargs}
83-
deps =
84-
ipython
85-
Django >= 2.1, <2.2
86-
-rtest_requirements.txt

0 commit comments

Comments
 (0)