Skip to content

Commit 0839646

Browse files
committed
uprev
1 parent f46dc0c commit 0839646

File tree

6 files changed

+26
-10
lines changed

6 files changed

+26
-10
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,28 @@
11
<!-- Thank you for your contribution! -->
2+
<!-- Don't worry about making lots of commits on a pull request, they'll be squashed on merge anyway -->
23

3-
## What do these changes do?
4+
## Change Summary
45

5-
<!-- Please give a short summaryof the changes. -->
6+
<!-- Please give a short summary of the changes. -->
67

78
## Related issue number
89

910
<!-- Are there any issues opened that will be resolved by merging this change? -->
1011

12+
## Performance Changes
13+
14+
pydantic cares about performance, if there's any risk performance changed on this PR,
15+
please run `make benchmark-pydantic` before and after the change:
16+
* before: **?**
17+
* after: **?**
18+
1119
## Checklist
1220

1321
* [ ] Unit tests for the changes exist
14-
* [ ] Coverage remains at 100%
22+
* [ ] Tests pass on CI and coverage remains at 100%
1523
* [ ] Documentation reflects the changes
24+
* [ ] No performance deterioration (if applicable)
1625
* [ ] `HISTORY.rst` has been updated
1726
* if this is the first change since a release, please add a new section
18-
* include the issue number or this pull request number
27+
* include the issue number or this pull request number `#<number>`
1928
* if you're not a regular contributer please include your github username `@whatever`

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ script:
3030

3131
- make mypy
3232
- make docs
33-
- BENCHMARK_REPEATS=1 make benchmark
33+
- BENCHMARK_REPEATS=1 make benchmark-all
3434
- ./tests/check_tag.py
3535

3636
after_success:

HISTORY.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
History
44
-------
55

6-
v0.13.0 (XXXX-XX-XX)
7-
....................
6+
v0.13.0 (20180-08-25)
7+
.....................
88
* raise an exception if a field's name shadows an existing ``BaseModel`` attribute #242
99
* add ``UrlStr`` and ``urlstr`` types #236
1010
* timedelta json encoding ISO8601 and total seconds, custom json encoders #247, by @cfkanesan and @samuelcolvin

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,14 @@ testcov:
4141
.PHONY: all
4242
all: testcov mypy lint
4343

44-
.PHONY: benchmark
45-
benchmark:
44+
.PHONY: benchmark-all
45+
benchmark-all:
4646
python benchmarks/run.py
4747

48+
.PHONY: benchmark-pydantic
49+
benchmark-pydantic:
50+
python benchmarks/run.py pydantic-only
51+
4852
.PHONY: clean
4953
clean:
5054
rm -rf `find . -name __pycache__`

docs/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,9 @@ over how non-standard types are encoded to JSON.
508508

509509
(This script is complete, it should run "as is")
510510

511+
By default timedelta's are encoded as a simple float of total seconds. The ``timedelta_isoformat`` is provided
512+
as an optional alternative which implements ISO 8601 time diff encoding.
513+
511514
Pickle Serialisation
512515
~~~~~~~~~~~~~~~~~~~~
513516

pydantic/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
__all__ = ['VERSION']
44

5-
VERSION = StrictVersion('0.13a1')
5+
VERSION = StrictVersion('0.13')

0 commit comments

Comments
 (0)