Commit Graph

150 Commits

Author SHA1 Message Date
Alex Waygood
78d96cd17e Drop support for Python 2 (#8272) 2022-07-12 09:08:56 +02:00
Shantanu
e6482354dd Suggest updating mypy on stub removals (#8049)
Co-authored-by: hauntsaninja <>
2022-07-06 08:11:05 +01:00
Shantanu
64181e8dad stubtest: use separate table in METADATA.toml (#8096) 2022-06-19 00:43:24 -07:00
Sebastian Rittau
d8c0f25f0d Explain the no_longer_updated METADATA field (#8037) 2022-06-08 18:46:41 +02:00
Alex Waygood
a7ff433fc3 CONTRIBUTING.md: Fix broken link (#7994) 2022-05-30 16:36:06 -07:00
Alex Waygood
fa85367fc9 CONTRIBUTING: improve docs on running tests locally (#7992)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-05-30 15:44:13 -07:00
Sebastian Rittau
f7aa41245e Drop Python 2 support in third-party stubs (#7703) 2022-04-27 15:32:17 +03:00
Sebastian Rittau
c3907ab26b Remove Python 2 support from some third-party distributions (#7466)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-03-09 20:19:22 +02:00
Sebastian Rittau
24616d65d9 6-12 months -> six months (#7411)
"At least 6-12 months" is equivalent to "at least six months" and we
usually remove after six month, unless there are issues.
2022-03-01 17:37:53 -08:00
Sebastian Rittau
7a81bd41e9 Re-introduce the 'stubtest' key for third-party packages (#7351)
Some distributions can't be tested with stubtest for a variety of
reasons or because of bugs in stubtest. This key:

* let's us keep metadata about a distribution in one place,
* prevents us from modifying the scripts because of issues with a
  specific distribution, and
* will trigger tests if only the key is changed.
2022-02-22 15:59:27 +01:00
Martin Fischer
771813968a Fix broken link in CONTRIBUTING.md (#7282)
The section was moved in 3ba35f3552.
2022-02-19 03:50:20 -08:00
Akuli
62f22ef0cc CONTRIBUTING.md: remove duplicate info about how CI runs tests (#6910) 2022-01-13 08:01:20 -08:00
Akuli
11642f866c Recommend scripts/create_baseline_stubs.py in CONTRIBUTING.md (#6906) 2022-01-13 15:11:20 +01:00
Sebastian Rittau
14e5d16c3a Replace METADATA stubtest key with stubtest_apt_packages (#6704) 2021-12-27 17:28:59 +01:00
Sebastian Rittau
bb77f39b7c Add a 'stubtest' flag to METADATA.toml (#6687)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-25 17:02:57 +02:00
Alex Waygood
ae725c3f10 Add test to ensure certain names are not imported from typing_extensions (#6619) 2021-12-17 14:50:25 -08:00
Sebastian Rittau
206e1ae91b Remove 'py3' from requirements filename (#6509) 2021-12-06 12:59:04 +02:00
Alex Waygood
1c88ceeee9 Make example in CONTRIBUTING the same as in the stub` (#6461)
Looks like I made an argument in `datetime.pyi` positional-only a while back, and didn't realise the class was given as an example in `CONTRIBUTING.md`.
2021-11-30 13:35:44 -08:00
Joachim Jablon
3aa444b62f Remove deprecated pre-commit script (#6455) 2021-11-30 11:05:07 -08:00
Sebastian Rittau
77810277d5 Recommend to use mypy error codes if applicable (#6305) 2021-11-17 21:58:05 -08:00
Alex Waygood
4b3a8a8790 Improve support for running tests on Windows (#6284) 2021-11-12 17:09:20 +01:00
Shantanu
bf92378722 Bump typed-ast version, recommend Python 3.8 for tests (#6278) 2021-11-12 02:53:42 -08:00
Sebastian Rittau
bb24e77404 Update remaining versions for third-party stubs (#6094)
Also remove the python2 markers of packages that don't list Python 2
as supported in the latest version.

Don't special case version '0.1'

Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-10-12 12:30:45 +02:00
Sebastian Rittau
9f86972350 Add star to all non-0.1 versions (#6146) 2021-10-11 13:41:19 -07:00
Sebastian Rittau
46fc031ee7 Allow third-party versions to end in asterisk (#6129)
This is a first step towards #6095, where x.y and x.y.* are treated as
equivalent. The next step is to update existing versions to use x.y.*
where applicable and then treat x.y differently.

Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-10-11 00:46:18 +02:00
Sebastian Rittau
0506182348 Allow three-component third-party versions (#5995)
Closes: #5992
2021-09-18 20:08:51 -07:00
Sebastian Rittau
8e0e13a2d5 Commit messages for stubs are now used as changelog (#5950) 2021-08-28 12:11:22 -07:00
Sebastian Rittau
9b366daaec Explain adding new third-party stubs (#5951)
Closes: #5438
2021-08-23 20:47:54 -07:00
Sebastian Rittau
5f2e117bba CONTRIBUTING: Use PEP 604 syntax (#5925)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-08-14 20:48:40 -07:00
Akuli
c0e2346346 new union syntax in CONTRIBUTING.md (#5879) 2021-08-08 15:48:56 +02:00
Sebastian Rittau
ad3f0c8e34 Allow non-types dependencies (#5769)
Remove the check in check_consistency that ensures that only other
type packages from typeshed are being depended on. Instead, add an
explanation to CONTRIBUTING that spells out the requirements. This
adds a higher, but reasonable burden on maintainers to check the
dependencies manually.

Part of #5768
2021-07-14 14:29:53 +02:00
Jelle Zijlstra
14d7431ff1 Recommend Self in CONTRIBUTING.md (#5699)
Part of #5676.

Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-06-27 23:17:28 +03:00
Akuli
11b99e1141 @python2 nits (#5672)
* tiny tests/mypy_test.py cleanup

* try to make CONTRIBUTING.md less confusing
2021-06-21 21:42:45 +03:00
Sebastian Rittau
68dc2d132b Move Python 2-only stubs to @python2 directory (#5660) 2021-06-21 11:28:25 -07:00
Jelle Zijlstra
04627bfb83 Update PEP 612 status in CONTRIBUTING.md (#5635)
And add a new "Partially supported" section
2021-06-14 17:20:27 +02:00
Sebastian Rittau
d143a5d04b Metadata versions field now reflects the latest supported version (#5600) 2021-06-09 20:30:44 +02:00
Jelle Zijlstra
bfc83c365a Use PEP 604 in types.pyi (#5553) 2021-05-29 11:09:50 -07:00
scaramallion
a32d24cae0 Use __new__ for datetime.time (#5530) 2021-05-26 11:00:37 +03:00
Jelle Zijlstra
02be4b5da2 Add section on supported type-system features (#5479) 2021-05-17 09:30:45 +02:00
Sebastian Rittau
453963b536 Describe METADATA.toml files (#5436) 2021-05-16 22:26:49 +02:00
Sebastian Rittau
5b739e0ccb Split stdlib into Python 2 and 3 versions (#5442)
All new files in stdlib/@python2 are straight copies of the
corresponding files in stdlib.
2021-05-14 12:04:12 -07:00
Sebastian Rittau
3ba35f3552 Split the tests section, extend ToC (#5433)
Move and consolidate venv setup and running isort/black/flake8 into
separate sections and link those sections from the ToC. Also extend
those sections slightly.

Move the tests section into a separate file.

Make venv name in pre-commit match name in CONTRIBUTING.
2021-05-13 15:41:04 +02:00
Sebastian Rittau
d98fdd934c Move VERSIONS description to file itself (#5434) 2021-05-13 06:14:44 -07:00
Sebastian Rittau
a34e5a36a8 Describe third-party removal process (#5435) 2021-05-13 06:08:55 -07:00
Sebastian Rittau
b1577ad1cb Rework README and CONTRIBUTING (#5429)
This shuffles sections around between README.md and CONTRIBUTING.md. CONTRIBUTING now contains information pertaining to opening PRs, README all other information. I have also moved the list of maintainers to a separate file.

I have kept most information intact for now, with two main exceptions:

I removed duplicated information.
For brevity's sake, I trimmed some explanations from the section about version checks.
I have restructured the CONTRIBUTING file to follow the order of the introductory "contribution process at a glance" section. This now serves as a bit of a table of contents.

Closes: #5422
2021-05-12 16:25:47 -07:00
Akuli
4b39a0fe43 CONTRIBUTING.md: explicitly avoid --amend (#5371)
* tell not to use --amend

* clarify how pull requests show up in git history
2021-05-07 23:52:26 +03:00
Akuli
0bfb28b0b6 do not require running tests locally (#5356) 2021-05-06 14:33:53 -07:00
Jelle Zijlstra
fc0db5f2b6 Add a suggestion to CONTRIBUTING.md (#5205)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2021-04-11 06:50:08 -07:00
Sebastian Rittau
2b9cd1e342 Suggest splitting Python 2 stubs (#5189)
Closes: #5049
2021-04-08 14:40:46 +02:00
Akuli
00da323113 sort contributor list by last name (#5158) 2021-03-30 20:27:09 +03:00