Commit Graph

281 Commits

Author SHA1 Message Date
Hynek Schlawack 0657718e64 Actually make them deeper 2017-02-18 07:39:19 +01:00
Hynek Schlawack e176eca887 Fix examples headings 2017-02-18 07:35:57 +01:00
Hynek Schlawack ac461ff155 fix double changes 2017-02-18 07:32:56 +01:00
Hynek Schlawack 0563f44b47 Move doc theme to alabaster
Reason is that the RTD theme looks weird for multi-paragraph parameter API
docs.
2017-02-12 08:48:35 +01:00
Hynek Schlawack 97a02470e8 Fix inheritence of frozen-ness
Fixes #128
2017-02-12 08:33:20 +01:00
Hynek Schlawack 37d38c4dc3 Allow inline definitions of validators using a decorator
Also make previous changes for multiple validators backward-compatible.
2017-02-11 16:56:56 +01:00
Hynek Schlawack 72363a2a09 Allow validator to be a list of validators
Fixes #138
2017-02-04 14:38:05 +01:00
Hynek Schlawack 3507e67bf3 Tune readme
ref #123
2017-02-04 11:46:10 +01:00
Hynek Schlawack f6fbc0d0f3 Fix in-dev version 2017-02-03 13:07:15 +01:00
Hynek Schlawack 14556429b5 Fix changelog 2017-02-03 13:05:42 +01:00
Hynek Schlawack 735ba4121b Move assoc to deprecated section 2017-02-03 11:03:16 +01:00
Tin Tvrtković 0d3cf3f624 Evolve and docs. (#135)
assoc is now deprecated in favor of evolve.
2017-01-21 17:11:45 +01:00
Eugene Pakhomov 1481227583 Fix post init hook not being called if validators are disabled (#129) (#130)
Fixes #129
2017-01-06 15:08:17 +01:00
Hynek Schlawack cfb7a319a9 Add note on sections to contributing guide 2016-12-14 10:57:38 +01:00
Hynek Schlawack 4894377846 Fix changelog 2016-12-14 10:57:32 +01:00
Thomas A Caswell 72743d2b32 ENH: forbid delete attr from frozen class (#118)
Raise FrozenInstanceError when trying to delete an attribute from
a frozen class.
2016-12-14 10:55:43 +01:00
Adam Dangoor a26ab0374e Fix typo in docstring (fully features > fully featured). (#125) 2016-12-14 08:35:56 +01:00
Rich Wareham 49e847052e docs: "less [...] calls" -> "fewer [...] calls" (#122)
Since function calls are discrete one has "fewer" of them.
2016-12-08 17:01:39 +01:00
Tin Tvrtković 0c8211d922 Feature/better simple classes (#119) 2016-12-05 09:50:50 +01:00
Hynek Schlawack 6771640853 Yay https @ arxiv.org 2016-11-24 14:58:15 +01:00
Hynek Schlawack df0800d771 Start new release cycle 2016-11-24 14:07:12 +01:00
Hynek Schlawack 5516d5452c Prepare 16.3.0 2016-11-24 14:01:14 +01:00
Hynek Schlawack b0942e1b2e Add str argument to @attr.s
Fixes #112
2016-11-20 15:52:11 +01:00
Hynek Schlawack 1fbaa2070d Merge branch 'pr/111'
Fixes #111
2016-11-20 14:46:31 +01:00
Hynek Schlawack 3964f9d37b Rename __post_init__ to __attrs_post_init__
This makes it clearer its coming from attrs and is consistent with
__attrs__attrs__.
2016-11-20 14:39:34 +01:00
Hynek Schlawack 7e4cecdac2 Minor tweaks 2016-11-20 14:30:29 +01:00
Tommy Beadle 3dc5fb0a5a Add ability for ``__post_init__`` method to be defined.
If this method is defined for a class, it will get executed at the end
of ``__init__``.  Previously, there was no way to extend what was
done during ``__init__`` when using ``@attr.s``.
2016-11-20 14:05:34 +01:00
Tin Tvrtković 0fac9215b8 Introduce attribute metadata. (#96) 2016-11-19 09:47:03 +01:00
Hynek Schlawack cbfb229bf3 Improve contributing guide 2016-11-13 09:58:00 +01:00
Roger Pate 4849dc12de don't overwrite __name__ with __qualname__ (#100) 2016-09-30 15:48:31 +02:00
Philippe Ombredanne 61d66e4d66 Ensure the LICENSE file is included in wheel metadata (#98)
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
2016-09-24 13:11:18 +02:00
Hynek Schlawack 33607a7895 Start new release cycle 2016-09-17 08:00:44 +02:00
Hynek Schlawack cc980c1f53 Prepare 16.2.0 2016-09-17 07:49:51 +02:00
Hynek Schlawack b20e1cf1ea Fix zope.interface links 2016-09-17 07:48:21 +02:00
Hynek Schlawack cdfac7c400 Only run py27 and py35 under coverage
Hypothesis & Coverage together are a handbrake.
2016-09-12 07:54:22 +02:00
Hynek Schlawack 91da85935b Oops 2016-09-11 09:33:38 +02:00
inso 1b419e304b Add attr.astuple
Fixes #77 and fixes #78
2016-09-11 08:55:30 +02:00
Tin Tvrtković ca2a1e10f0 The ClassAttributes tuple is now slotted. (#90) 2016-09-10 22:04:24 +02:00
Hynek Schlawack aad822a32b Add a why not dicts section
Fixes #89

Shamelessly ripping off @glyph and @cournape .

Sources:

- https://news.ycombinator.com/item?id=12363487
- https://twitter.com/cournape/status/769120659783950336
2016-09-10 20:27:44 +02:00
Hynek Schlawack 62cb2e7347 Document new method of accessing attributes 2016-09-10 19:55:27 +02:00
Hynek Schlawack adfdbf9560 Stop using deprecated APIs (#86)
Also use nicer exceptions that subclass the old ones.
2016-09-10 19:14:34 +02:00
Tin Tvrtković 024a16c434 Feature/fields properties (#88)
🙈
2016-09-10 17:50:17 +02:00
Glyph dcfbb7b955 remove unnecessary and ugly `exec_` compat hack (#87) 2016-09-10 15:15:48 +02:00
Tin Tvrtković 1897dfdf19 Improve tests, bandage assoc
Refactored and documented the simple_classes strategy. Applied the strategy to
assoc tests.
2016-09-10 08:40:47 +02:00
Tin Tvrtković 5428710ead Generate __init__ with converters inline
Fixes #80
2016-09-10 08:23:41 +02:00
mathieu longtin e59c360ee2 Fix pickle support for __slots__ classes
We add conditionally pickle methods to frozen __slots__ classes and document
that protocol 2 is required for any __slots__ class.

This fixes #81 and fixes #79.
2016-09-10 07:58:55 +02:00
Hynek Schlawack dd36808a5a Don't run PyPy under coverage
It's too slow and keeps breaking the tests.
2016-09-05 14:50:08 +02:00
Hynek Schlawack a624035cec Fix converters on frozen classes
Fixes #76

This should be reasonably fast @Tinche?
2016-09-05 14:47:06 +02:00
Roger Pate 60017ee06f add attr docstring (#74) 2016-09-01 12:09:55 +02:00
Hynek Schlawack f09cc7f74b Start new release cycle 2016-08-30 12:33:11 +02:00