Skip to content

Commit

Permalink
0.9.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhrysteve committed Jan 18, 2020
1 parent 407ae7f commit 48a5ae8
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 12 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ matrix:
include:
# Separate job for linting
- os: linux
python: "3.7"
python: "3.8"
env: TOXENV=lint
# Separate testing for different marshmallow versions in different jobs to ease debugging
- os: linux
python: "3.7"
env: TOXENV=py37-marshmallow2
python: "3.8"
env: TOXENV=py38-marshmallow2
- os: linux
python: "3.7"
env: TOXENV=py37-marshmallow3
python: "3.8"
env: TOXENV=py38-marshmallow3
# These will test for both versions of marshmallow thanks to tox-travis package
- os: linux
python: "3.7"
- os: linux
python: "3.6"
- os: linux
Expand Down
6 changes: 6 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
0.9.0 (2020-01-18)

0.8.0 (2019-10-08)

0.7.0 (2019-08-11)

0.6.0 (2019-06-16)
- lots of various fixes
- fix compatibility with brutusin/json-form
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PROJECT = marshmallow_jsonschema

PYTHON_VERSION ?= 3.7
PYTHON_VERSION ?= 3.8
VIRTUAL_ENV ?= .venv
PYTHON ?= $(VIRTUAL_ENV)/bin/python

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[tool.black]
target-version = ['py27', 'py35', 'py36', 'py37']
target-version = ['py27', 'py35', 'py36', 'py37', 'py38']
2 changes: 1 addition & 1 deletion requirements-tox.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tox>=3.13
tox>=3.14.3
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def read(fname):

setup(
name="marshmallow-jsonschema",
version="0.8.0",
version="0.9.0",
description="JSON Schema Draft v4 (http://json-schema.org/)"
" formatting with marshmallow",
long_description=long_description,
Expand Down Expand Up @@ -61,6 +61,7 @@ def read(fname):
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
test_suite="tests",
)
6 changes: 5 additions & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from jsonschema import Draft7Validator
from marshmallow import Schema, fields, validate
from marshmallow_jsonschema.compat import MARSHMALLOW_3

from marshmallow_jsonschema import JSONSchema
from marshmallow_jsonschema.compat import dot_data_backwards_compatible
Expand All @@ -26,7 +27,6 @@ class UserSchema(Schema):
)
created_iso = fields.DateTime(format="iso", attribute="created", dump_only=True)
updated = fields.DateTime()
updated_local = fields.LocalDateTime(attribute="updated", dump_only=True)
species = fields.String(attribute="SPECIES")
id = fields.String(default="no-id")
homepage = fields.Url()
Expand Down Expand Up @@ -54,6 +54,10 @@ class UserSchema(Schema):
const = fields.String(validate=validate.Length(equal=50))


if MARSHMALLOW_3:
UserSchema.updated_naive = fields.NaiveDateTime(attribute="updated", dump_only=True)


def _validate_schema(schema):
"""
raises jsonschema.exceptions.SchemaError
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[tox]
envlist=lint,py{35,36,37,py3}-marshmallow{2,3}, py{27, py}-marshmallow2
envlist=lint,py{27,35,36,37,38,py3}-marshmallow{2,3}, py{27, py}-marshmallow2

[testenv]
deps=
-r requirements-test.txt
marshmallow2: marshmallow<3.0
py{35,36,37,py3}-marshmallow3: marshmallow==3.0.0rc8
py{35,36,37,38,py3}-marshmallow3: marshmallow==3.3.0
whitelist_externals=make
commands=make test_coverage

Expand Down

0 comments on commit 48a5ae8

Please sign in to comment.