Commit Graph

162 Commits

Author SHA1 Message Date
Tin Tvrtkovic 7b201eb199 Initial slots implementation. 2016-03-14 03:02:13 +01:00
Hynek Schlawack 38bd2a7d0d Fix coverage reporting for Python 2 2016-02-20 09:40:26 +01:00
Hynek Schlawack dfea064fa1 Meta 2016-02-20 09:34:45 +01: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 174d37f941 Allow mandatory attributes after init=False attrs
Maybe not the best design but a valid case nonetheless.
2016-02-06 12:20:37 +01:00
Hynek Schlawack b1cac22b42 Fix reST markup 2016-02-06 11:19:04 +01:00
Hynek Schlawack 632848ee0f 1.4 2016-02-01 09:34:51 +01:00
Hynek Schlawack 2a30ed2c6f Fix reST markup 2016-01-22 13:55:22 +01:00
Hynek Schlawack 27cc283bed readme has been renamed 2016-01-06 14:03:55 +01:00
Hynek Schlawack d590a0ee80 Merge pull request #32 from hynek/better-init-false
Allow the case of initializing attributes that are set to `init=False`
2015-12-20 07:55:45 +01:00
Hynek Schlawack 497d488176 Add PR # 2015-12-20 07:51:19 +01:00
Hynek Schlawack 071c3ffa4e Add docs 2015-12-19 13:51:31 +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 1f66134c0e Janitoring 2015-12-19 13:05:30 +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 e6a2b99cd8 More janitoring 2015-12-08 16:00:06 +01:00
Hynek Schlawack b3fd5c6387 Fix Travis flake8 2015-12-08 15:54:05 +01:00
Hynek Schlawack 5d66e482d8 Repo janitoring 2015-12-08 15:47:03 +01:00
Hynek Schlawack c523e0510f Add some pytest options 2015-12-02 07:47:15 +01:00
Hynek Schlawack fb724af0f9 Merge branch 'pr/27'
Fixes #27
2015-11-19 14:04:16 +01:00
Hynek Schlawack af669b5153 Minor fixes 2015-11-19 14:04:00 +01:00
Christopher Armstrong 716e8acace whoops, line length. 2015-11-19 14:01:00 +01:00
Christopher Armstrong e99a9d1348 use fancy :param <type> <name>: syntax in the rest of the attr.ib docstring 2015-11-19 14:01:00 +01:00
Christopher Armstrong be9a5525bd use semantic newlines in examples.rst 2015-11-19 14:01:00 +01:00
Christopher Armstrong eb38403381 fix markup and use semantic newlines 2015-11-19 14:01:00 +01:00
Christopher Armstrong c74c9b1f1e changelog 2015-11-19 14:01:00 +01:00
Christopher Armstrong 75cd960aaa add doctests to the example document 2015-11-19 13:59:25 +01:00
Christopher Armstrong 2e7b750696 convert before validate, also fix two-space thing 2015-11-19 13:59:25 +01:00
Christopher Armstrong 20357d4368 fix doctests and lint 2015-11-19 13:59:25 +01:00
Christopher Armstrong 365cd89921 add a `convert` keyword to attr.ib() that allows specifying a function to convert the passed-in value. 2015-11-19 13:59:25 +01:00
Hynek Schlawack 253491908b Fix codecov 2015-10-20 07:11:14 +02:00
Hynek Schlawack e6f9e9fac3 Simplify setup.py 2015-10-18 12:15:06 +02:00
Hynek Schlawack 4c085a7dda Allow for posargs in tox 2015-10-18 11:53:46 +02:00
Hynek Schlawack a0c74621e8 Minor style 2015-10-16 15:18:18 +02:00
Hynek Schlawack 7d765233b7 Combined coverage FTW 2015-10-16 15:11:10 +02:00
Hynek Schlawack 4c39a185ad Move package into src directory
Prevents accidental imports when running tests.
2015-10-16 15:11:10 +02:00
Hynek Schlawack 140c8c9288 Merge pull request #29 from cournape/speedup_construction
ENH: query attributes through private API to speed up validate.
2015-10-16 11:01:35 +02:00
David Cournapeau 362ca35275 DOC: document improvement in changelog. 2015-10-15 16:50:22 +01:00
David Cournapeau 01c922cb4d MAINT: add myself to the AUTHORS list. 2015-10-09 11:20:00 +01:00
David Cournapeau 9a3ae1beea REF: assume we get a decorated class in validate. 2015-10-06 14:04:26 +01:00
David Cournapeau 18062f6fef ENH: query attributes through private API to speed up validate.
the public API ``fields`` is at least one order of magnitude slower than
accessing the __attrs_attr__ field because of the deepcopy use in
``fields``.
2015-10-06 11:38:11 +01:00
Hynek Schlawack c855b08e5d Factor out more meta data 2015-09-22 14:46:57 +02:00
Hynek Schlawack f0b142382b Add Python 3.5 2015-09-22 10:41:38 +02:00
Hynek Schlawack 104487f803 Start new release cycle 2015-08-20 13:59:36 +02:00
Hynek Schlawack 5158b66af9 Prepare 15.1.0 2015-08-20 13:53:57 +02:00
Hynek Schlawack 3c426bb0a6 Credit Ying for her contribution 2015-08-20 13:47:32 +02:00
Hynek Schlawack e245f3d3df Fix multi-level inheritance
Fixes #24.
2015-08-20 13:25:32 +02:00
Hynek Schlawack 82de577932 Get rid of flaky shields.io 2015-08-14 16:47:51 +02:00