Commit Graph

35 Commits

Author SHA1 Message Date
Tin Tvrtković 0fac9215b8 Introduce attribute metadata. (#96) 2016-11-19 09:47:03 +01:00
Roger Pate 4849dc12de don't overwrite __name__ with __qualname__ (#100) 2016-09-30 15:48:31 +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
inso 1b419e304b Add attr.astuple
Fixes #77 and fixes #78
2016-09-11 08:55:30 +02:00
Hynek Schlawack 62cb2e7347 Document new method of accessing attributes 2016-09-10 19:55:27 +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 a624035cec Fix converters on frozen classes
Fixes #76

This should be reasonably fast @Tinche?
2016-09-05 14:47:06 +02:00
Hynek Schlawack f09cc7f74b Start new release cycle 2016-08-30 12:33:11 +02:00
Hynek Schlawack dae4e40446 Prepare 16.1.0 2016-08-30 12:23:28 +02:00
Fabian Kochem c6fbec9637 Optionally retain collection types (fixes #69) 2016-08-23 13:31:29 +02:00
Hynek Schlawack cfa6d2e99f Implement immutability (#60) 2016-08-20 18:45:15 +02:00
Hynek Schlawack 24e60944ec Add better serious business aliases 2016-08-16 12:18:03 +02:00
Hynek Schlawack 07366e18c1 Rename cl to cls 2016-08-15 15:59:10 +02:00
Tin Tvrtković 46ac6b6046 Make Attribute instances immutable and slotted. (#51) 2016-08-13 16:16:37 +02:00
Hynek Schlawack 28204bef92 Deprecate Attribute instances on decorated classes
The changelog deprecation error explains it best.  It's to avoid
confusing errors if some attribute hasn't been initialized for whatever
reason (usually `init=False` + typo).
2016-08-08 12:11:06 +02:00
Tin Tvrtković 588fe48019 Simplify asdict and has (#48) 2016-08-08 08:44:30 +02:00
Hynek Schlawack 8ad22d5e8c Add changelog entry for #45 2016-06-02 15:43:43 -07:00
Hynek Schlawack e83f0e51ac Start new release cycle 2016-05-23 20:34:11 +02:00
Hynek Schlawack c37f4423be Prepare 16.0.0 2016-05-23 20:29:31 +02:00
Hynek Schlawack 1c6a8e59e0 Fix changelog 2016-05-23 17:33:13 +02:00
Hynek Schlawack 5edf483173 Add changelog entry 2016-05-22 07:57:07 +02:00
Tin Tvrtkovic 6ce0a0d80d Fix flake8. Tweak changelog. 2016-05-15 16:43:17 +02:00
Tin Tvrtkovic 96e217dcd3 Changelog entry. 2016-05-15 02:04:02 +02:00
Hynek Schlawack c7842b8cb6 CHANGELOG & small nits
Fixes #35, #31
2016-03-31 13:12:36 +02:00
Hynek Schlawack 0b79e086b6 Wording 2016-02-17 13:52:21 +01:00
Hynek Schlawack 89b542331d Drop support for legacy Python versions
Keep 2.7 and PyPy though.
2016-02-17 12:51:02 +01:00
Hynek Schlawack b1cac22b42 Fix reST markup 2016-02-06 11:19:04 +01:00
Hynek Schlawack 497d488176 Add PR # 2015-12-20 07:51:19 +01:00
Hynek Schlawack 1af3eaa877 Allow the case of initializing attributes that are set to `init=False`
This allows for clean initializer parameter lists while being able to
initialize attributes to default values.
2015-12-19 13:43:07 +01:00
Hynek Schlawack 8b172c5988 Start new release cycle 2015-12-08 16:34:45 +01:00
Hynek Schlawack 81ff5309d9 Prepare 15.2.0 2015-12-08 16:24:46 +01:00
Hynek Schlawack 5d66e482d8 Repo janitoring 2015-12-08 15:47:03 +01:00