Commit Graph

664 Commits

Author SHA1 Message Date
Hynek Schlawack 38d21a7ce6 Remove unnecessary newsfragment 2019-11-18 08:54:43 +01:00
Tim Gates ee44563094 Fix simple typo: developement -> development (#600)
* Fix simple typo: developement -> development

* Add towncrier file

* Fix PR number
2019-11-18 08:54:17 +01:00
Matt Bullock 179b1c4bf0 minor typo in attr.s docstring (#597)
* minor typo in attr.s docstring

* update wording to match intent
2019-11-05 08:55:42 -08:00
Philippe Ombredanne 5e028e9858 Fix minor docstring typo (#592)
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
2019-10-23 16:08:17 +02:00
Hlynur Freyr Jónsson 4a48b24988 Fix typo (#591)
one -> None
2019-10-23 05:00:04 +02:00
Hynek Schlawack 0023e5bdce Ah, why not. pytest & tox are related 2019-10-17 12:46:22 +02:00
Hynek Schlawack a9a32a21a1 Get rid of setup.cfg
I don't mind having a pytest.ini and I know I could fold it into tox.ini.
I just don't want to have two general purpose config files.
2019-10-17 10:31:11 +02:00
Hynek Schlawack b7814c6b1f Get rid of packaging sections in setup.cfg
License files are automatically collected by pep517.
2019-10-16 20:04:20 +02:00
Hynek Schlawack bb7b1f4650 Start 19.4.0 cycle 2019-10-15 07:55:29 +02:00
Hynek Schlawack 823c1c332c Prepare 19.3.0 2019-10-15 07:46:04 +02:00
Hynek Schlawack eec7e43d37 Fix links 2019-10-15 07:44:05 +02:00
Hynek Schlawack 6d2f127059 pre-commit autoupdate 2019-10-15 07:23:58 +02:00
Bruno Oliveira e2b02ec39e Fix default values that are not comparable with '==' (#586)
Fix #585
2019-10-15 06:56:12 +02:00
Hynek Schlawack 3432df5711 At least mention pytype 2019-10-14 16:44:23 +02:00
John Belmonte 8cd3054020 fix grammar in frozen docs (#583) 2019-10-09 07:50:07 -04:00
Hynek Schlawack 686ee940fd We totally support 3.8 2019-10-02 17:07:02 +02:00
Hynek Schlawack 7b49d375c7 Rename _version.py into _version_info.py
Makes a lot more sense.
2019-10-02 16:12:03 +02:00
Hynek Schlawack c0eda39363 Start 19.3 cycle 2019-10-01 17:13:44 +02:00
Hynek Schlawack 7fcd616aab Complete suffix handling coverage 2019-10-01 16:48:30 +02:00
Hynek Schlawack 8a98469616 fix changelog 2019-10-01 16:40:49 +02:00
Hynek Schlawack 9e15786967 Merge branch 'version-info' 2019-10-01 16:25:50 +02:00
Hynek Schlawack 528323040f Prepare 19.2.0 2019-10-01 16:21:36 +02:00
Hynek Schlawack 955d622493
Add attr.__version_info__ (#580)
* Add attr.__version_info__

This allows users to check for features and avoid deprecation warnings without
breaking backward compatibility.

* Add newsfragment

* Stay ASCII

* Typo

* Add stubs for _version.py

* Address David's feedback

* Handle PY2 better in comparability test

* drop the ing
2019-10-01 16:06:36 +02:00
Hynek Schlawack 735b3bef48 drop the ing 2019-10-01 16:00:33 +02:00
Hynek Schlawack 568aa33d56 Handle PY2 better in comparability test 2019-10-01 15:58:57 +02:00
Hynek Schlawack c1681f7b49
Merge branch 'master' into version-info 2019-10-01 15:49:21 +02:00
Hynek Schlawack 754fae0699 Clarify that unannotated attributes are ignored too
Ref #220
2019-10-01 15:47:52 +02:00
Hynek Schlawack 0614510159
Merge branch 'master' into version-info 2019-10-01 15:16:30 +02:00
Hynek Schlawack f083cd7b65 Clarify need for attr.ib for attr decorator validators
Ref #466
2019-10-01 14:38:22 +02:00
Hynek Schlawack 346024aa3f Address David's feedback 2019-09-26 07:38:04 +02:00
Hynek Schlawack f8f3496d04 Add stubs for _version.py 2019-09-26 07:02:53 +02:00
Hynek Schlawack 516fc28186 Typo 2019-09-26 06:50:04 +02:00
Hynek Schlawack 25735e7a3c Stay ASCII 2019-09-26 06:50:04 +02:00
Hynek Schlawack fb5728a357 Add newsfragment 2019-09-26 06:50:04 +02:00
Hynek Schlawack bd135d43f1 Add attr.__version_info__
This allows users to check for features and avoid deprecation warnings without
breaking backward compatibility.
2019-09-26 06:50:04 +02:00
David Euresti 08bbaabaca Fix some typing issues (#581)
* Typecheck stubs in CI and fix type errors.  Fixes #578

* Add overloads to instance_of definition.

Improves #576
2019-09-26 06:49:15 +02:00
Hynek Schlawack d381f49fc2 We don't have bugfix newsfragments 2019-09-25 16:21:56 +02:00
Hynek Schlawack 08fcfe91d4
Split cmp into eq and order (#574)
* Split cmp into eq and order

Fixes #170

* Fix tests on old pypy3 versions

Old as in: currently on AP.

* Fix issue number and clarify newsfragment

* Clarify behavior and interaction between cmp/eq/order

* This sounds better

* Address Julian's review comments

* Missed a cmp

* Test the behavior of Attribute.cmp

* Make test more idiomatic

* Explain assumptions

* Clarify comment

* Grammar

* One more cmp!
2019-09-22 15:07:19 +02:00
Hynek Schlawack 6e7b9f2cfa Better explanation of the slots arg 2019-09-16 17:10:37 +02:00
Hynek Schlawack df32b75886 Link our docs when explaining the hash argument 2019-09-16 17:03:09 +02:00
Julian Berman 8824dc26c2 Add default_role for Sphinx. (#571)
* Add default_role for Sphinx.

Fix a bunch of broken refs along the way, which become
errors now via -W if you have default_role set.

In theory you can catch those via sphinx-build -n (i.e.
nitpick mode), which IMHO is a decent idea anyhow, but it's
a longer diff to enable that because it'd involve fixing a
bunch of the places that try to reference types that don't
exist (e.g. :type foo: Any value). But obviously can be done.

Also didn't actually use this anywhere yet (the any role),
but will do so in a follow-up if this is acceptable.

* Remove the roles from builtin objects to demo any.

* Style.

* Add z.i to intersphinx.

Enables the link to z.i.Interface.

* Enable nitpick mode.

Fix the remaining broken links or whitelist them via nitpick_ignore.

* Kill all :func:s.

* Kill all :class:es.

* Kill all :doc:s.

* Kill all :ref:s.

Except one, that probably meant :func:, and which
is a duplicate ref.

* Kill :exc: and :data:.

* Kill :mod:s.

* Kill new explicit refs from the merge.
2019-09-09 15:02:16 +02:00
Hynek Schlawack b8671adf98 re_matches: test for error messages 2019-09-09 12:19:01 +02:00
Hynek Schlawack 424e14382c Explain re_matches' default better 2019-09-09 11:59:15 +02:00
Hynek Schlawack d153daa4ef Split up re_matches tests 2019-09-09 11:56:44 +02:00
Hynek Schlawack 78cb7d4903 Refactor matches_re a bit 2019-09-09 11:38:08 +02:00
Hynek Schlawack 9bc319b7c8 Add example for matches_re typing 2019-09-09 11:11:50 +02:00
Hynek Schlawack 2a2e0f2ebb Polish matches_re docstring 2019-09-09 11:05:04 +02:00
Hynek Schlawack ef488122eb Add more verbose explanation for matches_re 2019-09-09 10:50:31 +02:00
Kurt Rose 08b15877c7 Add matches_re validator (#552)
* matches

* added flags pass-through, and multiple function options; defaults to fullmatch

* move logic from validate to constructor

* cleaned up default args / fullmatch emulation

* fixed meta validator

* cleaned up default args / fullmatch emulation

* test cleanup

* versionadded tag

* added changelog entry

* cleaned up type checks, added to api docs and pyi type signature

* black formats

* black formatting

* 100% test coverage

* added example usage of matches_re to docs

* fixing py2 swallow type error and wrong quote in doctest

* explicit tests for all possible func args

* pragma no branch to get coverage 100%
2019-09-09 10:48:52 +02:00
Hynek Schlawack f84f451557
Stop comparing/ordering subclasses (#570)
* Stop comparing/ordering subclasses

This has been deprecated for a year and was raising a warning.

* Kill double consider
2019-09-07 12:19:10 +02:00