Commit Graph

34 Commits

Author SHA1 Message Date
Hynek Schlawack da24151b1c
Drop Ko-fi
PayPal fees are egregious.
2023-02-12 14:28:48 +01:00
Hynek Schlawack c9c7595b69
Switch to hatch-vcs (#1094)
Also start publishing every commit to main to <https://test.pypi.org/project/attrs/>.
2023-01-29 11:21:20 +01:00
Hynek Schlawack d7eb692ff6
Ensure we have a toml-enable coverage
Currently tomli is pulled in by other packages but that might change in
the future.
2023-01-25 12:46:33 +01:00
Tin Tvrtković 14354bbd67
Update Mypy tests for new Mypy output (#1070)
* Update Mypy tests for new Mypy output

* Finish rebase

* Tweak tox mypy

* Limit tox version
2023-01-16 15:50:52 +01:00
Hynek Schlawack d4934b14f1
Drop 3.6 & switch to 100% static packaging configuration (#993)
* Drop 3.6 & move to Hatch + static metadata

Use ubuntu-latest again

* Use hatch-autorun instead of coverage-enable-subprocess

* Fix hostname

* Simplify tox.ini

* Move changelog check to docs jobs

* Hatchling supports PEP 639 just fine
2023-01-11 16:50:27 +01:00
Hynek Schlawack 0f62805c7d
Make towncrier marker independent from warning 2022-12-21 09:31:13 +01:00
Hynek Schlawack 37e46c0761
Add fix for coverage 7 2022-12-19 12:12:43 +01:00
Hynek Schlawack afe211143d
Switch changelog to markdown (#1067)
* Switch changelog to markdown

* Add changelog except back to long description

* Fix MANIFEST.in

* Re-add towncrier draft entries

* Write the title outselves

* Add warning box

* Make changelog format more KeepAChangelog-ish

* Link latest changes to main tree

* Move link into warning

* KAC has no empty lines between entries

* There's no more .rst in the root dir
2022-12-07 09:15:46 +01:00
Hynek Schlawack 70b3cf16e1
Use pytest-xdist in tox / CI (#1011)
Co-authored-by: Thomas Grainger <413772+graingert@users.noreply.github.com>
Co-authored-by: Ionel Cristian Mărieș <129501+ionelmc@users.noreply.github.com>
Co-authored-by: Sviatoslav Sydorenko <578543+webknjaz@users.noreply.github.com>
2022-08-21 09:38:37 +02:00
Hynek Schlawack fbcae2a8b0
Switch to 1% static packaging configuration (#998)
* Switch to 1% static packaging configuration

* Add shim for @pganssle

* Not worth interpolation

* Kill extra line
2022-08-10 14:15:32 +02:00
Hynek Schlawack 5d84d9a568 Move mypy config to pyproject.toml 2022-07-28 07:55:37 +02:00
Hynek Schlawack 0f08b84f3f Unpin towncrier & update template 2022-04-07 07:25:20 +02:00
Hynek Schlawack e0dda396bc Black does match just fine 2022-02-08 08:07:39 +01:00
Hynek Schlawack 8f9558d93d coverage: ignore covered files in report 2022-01-31 06:21:18 +01:00
Hynek Schlawack 9424a930f9 Tell coverage about import attrs 2021-12-29 09:15:47 +01:00
Hynek Schlawack e7345584ff
Add attrs namespace (#887) 2021-12-25 15:15:10 +01:00
Karthikeyan Singaravelan 8613af97bb
Add __match_args__ to support match case destructuring in Python 3.10 (#815)
* Add support to generate __match_args__ for Python 3.10.

* Add versionadded directive.

* Update stubs.

* Update changelog and add a test to typing examples.

* Fix error regarding new-style classes in Python 2.

* Fix lint error regarding line length.

* Fix lint error regarding trailing whitespace.

* Add docstrings for interrogate.

* Use _has_own_attribute instead of cls.__dict__ contains check.

* Update docs as per review comments.

* Revert mistaken changelog update.

* Add Python 3.10 pattern matching syntax test cases.

* Update define signature with match_args.

* Fix conftest formatting.

* Fix isort formatting.

* Bump to Python 3.10 to parse syntax.

* Bump basepython of lint to Python 3.10 for parsing.

* Move lint to py310

Co-authored-by: Hynek Schlawack <hs@ox.cx>
2021-05-18 07:02:06 +02:00
Hynek Schlawack f2dabeae82
Fix exception chaining on PyPy (#712)
* Fix exception chaining on PyPy

Fixes #703

* Add newsfragment

* Blankly exclude PyPy from coverage reporting

* Manually add default no cover marker
2020-11-04 11:02:15 +01:00
Hynek Schlawack 48157a5741 isort 5 doesn't need seed-isort anymore 2020-11-02 13:44:10 +01:00
Hynek Schlawack 0103c860c8 More consistency 2020-09-18 10:29:36 +02:00
Hynek Schlawack 58c27a4c77 Thank you @timothycrosley! 2020-09-18 10:02:51 +02:00
Paul Ganssle dfb2ee284d
Make `zope` a semi-optional test dependency (#685) 2020-09-03 06:56:17 +02:00
Hynek Schlawack f680c5b83e pre-commit autoupdate
Latest black required to remove a bunch of commas to prevent line explosion.
2020-09-01 09:56:52 +02:00
Hynek Schlawack 3a5b5a2052 Use interrogate's pyproject.toml support 2020-08-25 09:54:28 +02:00
Hynek Schlawack 6fcb759862 Put coverage config into pyproject.toml 2020-01-06 09:14:24 +01: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 2f63f2c5fe
Use isolated builds (#499)
* Use isolated builds

* try to upgrade all the things

* Try to upgrade only setuptools
2019-02-09 18:36:30 +01:00
Hynek Schlawack f8f4aef5a8 Revert isolated builds because they break mypy 2019-02-09 14:48:06 +01:00
Hynek Schlawack d21eed5165 Use isolated builds 2019-02-09 13:59:26 +01:00
Hynek Schlawack 8707eee437 Janitor packaging 2018-06-23 11:50:49 +02:00
Hynek Schlawack a372d51b7b
Fade to Black (#392) 2018-06-10 19:40:07 +02:00
Hynek Schlawack ea99d26666 Clean up main directory a bit 2017-12-27 13:32:32 +01:00
Hynek Schlawack bf159b30df Tweak towncrier
Please not that we currently build our changelog using a fork of towncrier
that can be found at <https://github.com/hynek/towncrier/tree/no-reflow>.
2017-12-27 12:35:09 +01:00
Hynek Schlawack 55ae1945b3 Move changelog to towncrier (#236) 2017-08-20 07:58:08 +02:00