Commit Graph

84 Commits

Author SHA1 Message Date
github-actions[bot]
06d83d48e7 [stubsabot] Bump setuptools to 68.2.* (#10674)
Release: https://pypi.org/pypi/setuptools/68.2.0
Homepage: https://github.com/pypa/setuptools
Repository: https://github.com/pypa/setuptools
Changelog: https://setuptools.pypa.io/en/stable/history.html
Diff: https://github.com/pypa/setuptools/compare/v68.1.2...v68.2.0

Stubsabot analysis of the diff between the two releases:
 - 1 public Python file has been added: `setuptools/tests/test_core_metadata.py`.
 - 0 files included in typeshed's stubs have been deleted.
 - 7 files included in typeshed's stubs have been modified or renamed: `setuptools/__init__.py`, `setuptools/command/editable_wheel.py`, `setuptools/command/egg_info.py`, `setuptools/depends.py`, `setuptools/dist.py`, `setuptools/monkey.py`, `setuptools/namespaces.py`.
 - Total lines of Python code added: 1051.
 - Total lines of Python code deleted: 682.
2023-09-07 02:36:30 +01:00
Alex Waygood
a4f08bd07f setuptools: add various missing objects and annotations (#10639) 2023-08-30 13:46:20 -07:00
github-actions[bot]
8ca41166c0 [stubsabot] Bump setuptools to 68.1.* (#10588)
Release: https://pypi.org/pypi/setuptools/68.1.0
Homepage: https://github.com/pypa/setuptools
Repository: https://github.com/pypa/setuptools
Changelog: https://setuptools.pypa.io/en/stable/history.html
Diff: https://github.com/pypa/setuptools/compare/v68.0.0...v68.1.0

Stubsabot analysis of the diff between the two releases:
 - 0 public Python files have been added.
 - 0 files included in typeshed's stubs have been deleted.
 - 42 files included in typeshed's stubs have been modified or renamed.
 - Total lines of Python code added: 3401.
 - Total lines of Python code deleted: 2264.
2023-08-16 01:22:21 +01:00
Sebastian Rittau
afe18e95a9 Add an upstream_repository field to METADATA.toml (#10487)
Closes: #10478
2023-07-20 16:45:41 +02:00
Alex Waygood
47fc836259 Add stubs for pkg_resources._vendor.packaging (#10423) 2023-07-15 13:56:21 -07:00
Shantanu
614aa1a2ba Bring back a few setuptools._distutils files (#10401) 2023-07-04 12:11:37 +02:00
Sebastian Rittau
06c2fb047a Bump setuptools to 68.0 (#10339)
* Any -> Incomplete in a few files
* Bump setuptools to 68.0.*

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-21 13:26:55 +01:00
github-actions[bot]
35450d9c0d [stubsabot] Bump setuptools to 67.8.* (#10194)
Release: https://pypi.org/pypi/setuptools/67.8.0
Homepage: https://github.com/pypa/setuptools
Changelog: https://setuptools.pypa.io/en/stable/history.html
Diff: https://github.com/pypa/setuptools/compare/v67.7.2...v67.8.0

Stubsabot analysis of the diff between the two releases:
 - 0 public Python files have been added.
 - 0 files included in typeshed's stubs have been deleted.
 - 2 files included in typeshed's stubs have been modified or renamed: `setuptools/command/easy_install.py`, `setuptools/version.py`.
 - Total lines of Python code added: 425.
 - Total lines of Python code deleted: 215.

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-05-20 09:46:05 +01:00
Avasam
b5c9d8d677 Don't ignore missing stubs in setuptools (#10058) 2023-05-19 07:03:34 +01:00
Avasam
db0149859c Add partial_stub metadata field (#10157) 2023-05-10 17:04:18 +02:00
Alex Waygood
e816acffdd Avoid unnecessary forward refs in class definitions (#10124) 2023-05-01 07:50:50 -07:00
Shantanu
cc35f4be3b setuptools: bump to 67.7 (#10069)
Fixes #10067

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-04-22 09:50:42 -06:00
Ben Mares
0b17fafbe3 Add missing exception classes in setuptools.errors (#10057)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2023-04-17 13:13:44 -06:00
Alex Waygood
755e2bda7e google-cloud-ndb, paramiko, setuptools: remove unnecessary = ...s (#10011) 2023-04-04 13:40:16 +01:00
Alex Waygood
b69b17c3d8 Add defaults for third-party stubs Q-T (#9959) 2023-03-28 13:16:31 +02:00
Alex Waygood
ca55889329 distutils/setuptools: Don't use wildcards for allowlist entries (#9900) 2023-03-17 14:05:12 -07:00
Henry Schreiner
2d990ee2f7 Fill out more annotations for distutils & setuptools dist (#9895)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-03-17 18:48:24 +00:00
Henry Schreiner
629f12e9a1 [setuptools] Fully annotate Extension.__init__ (#9899)
Add defaults to distutils.Extension.__init__
2023-03-17 16:44:51 +01:00
Henry Schreiner
3a82796d1e [distutils] Add generated methods to Distribution (#9896) 2023-03-17 12:14:36 +01:00
Henry Schreiner
bcff9cd51f distutils.command.build_ext: add more annotations to get_ext_* methods (#9894)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
2023-03-16 20:29:11 +00:00
Henry Schreiner
ed1fd8fc35 Add missing distribution attribute to distutils.cmd.Command (#9893)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
2023-03-16 20:21:23 +00:00
Henry Schreiner
eb3f8f3307 Add remaining types to setuptools.build_meta (#9890)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-16 17:01:39 +00:00
github-actions[bot]
4b9c1b9ed3 [stubsabot] Bump setuptools to 67.6.* (#9858)
Release: https://pypi.org/pypi/setuptools/67.6.0
Homepage: https://github.com/pypa/setuptools
Changelog: https://setuptools.pypa.io/en/stable/history.html
Diff: https://github.com/pypa/setuptools/compare/v67.5.1...v67.6.0

Stubsabot analysis of the diff between the two releases:
 - 0 public Python files have been added.
 - 0 files included in typeshed's stubs have been deleted.
 - 1 file included in typeshed's stubs has been modified or renamed: `setuptools/wheel.py`.
 - Total lines of Python code added: 38.
 - Total lines of Python code deleted: 19.
2023-03-09 00:19:39 +00:00
Avasam
635493a8f6 Update pkg_resources-stubs for use in pytype_test (#9747)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-05 16:24:57 -08:00
github-actions[bot]
aadd0d2eff [stubsabot] Bump setuptools to 67.5.* (#9841)
Release: https://pypi.org/pypi/setuptools/67.5.0
Homepage: https://github.com/pypa/setuptools
Changelog: https://setuptools.pypa.io/en/stable/history.html
Diff: https://github.com/pypa/setuptools/compare/v67.4.0...v67.5.0

Stubsabot analysis of the diff between the two releases:
 - 0 public Python files have been added.
 - 0 files included in typeshed's stubs have been deleted.
 - 1 file included in typeshed's stubs has been modified or renamed: `pkg_resources/__init__.py`.
 - Total lines of Python code added: 28.
 - Total lines of Python code deleted: 23.
2023-03-06 00:24:30 +00:00
Avasam
fee5f1b765 Remove most of setuptools._distutils (#9795) 2023-02-26 10:49:24 +00:00
Avasam
52ec44fa58 Improve many __(a)exit__ annotations (#9696) 2023-02-25 21:50:30 +00:00
Avasam
078c6a0958 Update Unused parameters in stubs/ (#9704)
* Update _Unused TypeAlias

* Update `object | None` params

* Replace unused `object` parameters with `Unused` alias
2023-02-21 23:52:52 -08:00
github-actions[bot]
6ac15185fb [stubsabot] Bump setuptools to 67.4.* (#9794)
Release: https://pypi.org/pypi/setuptools/67.4.0
Homepage: https://github.com/pypa/setuptools
Changelog: https://setuptools.pypa.io/en/stable/history.html
Diff: https://github.com/pypa/setuptools/compare/v67.3.3...v67.4.0

Stubsabot analysis of the diff between the two releases:
 - Total lines of Python code added: 877.
 - Total lines of Python code deleted: 433.
2023-02-22 00:16:40 +00:00
Avasam
ed6748fb32 Stubtest settings: change ignore_missing_stub default to false (#9779)
If you're reading about this commit from an autogenerated changelog entry, this should have no user-visible impact on how the stubs are interpreted by a type checker; it's just an internal change to how typeshed's tests work.
2023-02-20 22:37:45 +00:00
Alex Waygood
7180d0223b Use typing_extensions.Self instead of _typeshed.Self (#9702) 2023-02-15 11:32:43 +01:00
github-actions[bot]
c50ceada0f [stubsabot] Bump setuptools to 67.3.* (#9738) 2023-02-15 08:15:49 +01:00
Avasam
372073d35b Use _typeshed.FileDescriptorOrPath in stubs (#9695) 2023-02-09 08:30:19 +01:00
github-actions[bot]
cf6ff75952 [stubsabot] Bump setuptools to 67.2.* (#9691)
Release: https://pypi.org/pypi/setuptools/67.2.0
Homepage: https://github.com/pypa/setuptools
Changelog: https://setuptools.pypa.io/en/stable/history.html
Diff: https://github.com/pypa/setuptools/compare/v67.1.0...v67.2.0

Stubsabot analysis of the diff between the two releases:
 - 0 public Python files have been added.
 - 0 files included in typeshed's stubs have been deleted.
 - 33 files included in typeshed's stubs have been modified or renamed.
 - Total lines of Python code added: 152.
 - Total lines of Python code deleted: 111.

If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR

Note that you will need to close and re-open the PR in order to trigger CI

Co-authored-by: stubsabot <>
2023-02-08 00:16:53 +00:00
Alex Waygood
0ef9c3f8e8 Enable flake8-pyi's Y037 (#9686) 2023-02-06 19:01:02 -08:00
Alex Waygood
efee70abfa Bump mypy to 1.0 (#9684) 2023-02-06 15:57:17 -08:00
Sebastian Rittau
dc389eafe7 Update setuptools to 67.1 (#9664)
Replace some instances of `Any` with `Incomplete` or proper types.
2023-02-03 11:43:35 +00:00
Peter Pentchev
1e5d72314f setuptools: add pkg_resources.Requirement.url (#9657)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2023-02-01 23:44:08 -08:00
Avasam
6ac24ed923 Replace Any with Incomplete in many places (#9565) 2023-01-18 19:12:46 +00:00
Alex Waygood
4fea314594 Replace Any with Incomplete in many places (#9558) 2023-01-18 08:48:16 +00:00
Avasam
b216053432 Fix setuptools stubtest on windows (#9521) 2023-01-13 08:16:39 +00:00
github-actions[bot]
af1a505963 [stubsabot] Bump setuptools to 65.7.* (#9504)
Release: https://pypi.org/pypi/setuptools/65.7.0
Homepage: https://github.com/pypa/setuptools
Changelog: https://setuptools.pypa.io/en/stable/history.html
Diff: https://github.com/pypa/setuptools/compare/v65.6.3...v65.7.0
2023-01-12 00:24:16 +00:00
Avasam
9041a925cf Add types-docutils as a dependency of types-setuptools (#9460)
Remove the need for subclassing `Any`
2023-01-05 10:37:44 +00:00
Avasam
0c3cf8f5e6 More pywin32 stub completion (#9308)
Completed based on usage of the following libraries in mypy_primer:
- apprise
- comtypes
As well as some of the most popular libraries that use both pywin32 and mypy (all over 1k stars on github):
- certbot
- anki
- flexget
- monkey
- twisted
- salt

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-12-05 22:23:35 +00:00
Nikita Sobolev
18e2ae762b Mark first argument of __[get|set|del]attr__ as str (#9245) 2022-11-22 11:06:50 +00:00
github-actions[bot]
c10ed87f6e [stubsabot] Bump setuptools to 65.6.* (#9227)
Release: https://pypi.org/pypi/setuptools/65.6.0
Homepage: https://github.com/pypa/setuptools
Changelog: https://setuptools.pypa.io/en/stable/history.html
Diff: https://github.com/pypa/setuptools/compare/v65.5.1...v65.6.0

Stubsabot analysis of the diff between the two releases:
 - 0 public Python files have been added.
 - 0 files included in typeshed's stubs have been deleted.
 - 40 files included in typeshed's stubs have been modified or renamed.
 - Total lines of Python code added: 637.
 - Total lines of Python code deleted: 630.

Co-authored-by: stubsabot <>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-11-19 16:49:37 -08:00
Avasam
4bad015bbb Remove setuptools._distutils.command.bdst_msi (#9174)
It does not exist
2022-11-12 18:30:56 +00:00
Kyle Benesch
6aae57783a Fix pkg_resources.split_sections (#8975)
This function is currently documented as returning a list of lines as
the 2nd pair value.  It does not return plain str here.
2022-10-24 12:58:31 -07:00
Nikita Sobolev
3e828bd307 Remove empty __init__ methods from classes with 0 parents (#8907) 2022-10-16 12:47:47 +01:00
github-actions[bot]
51e18a8601 [stubsabot] Bump setuptools to 65.5.* (#8900)
Release: https://pypi.org/pypi/setuptools/65.5.0
Homepage: https://github.com/pypa/setuptools
Changelog: https://setuptools.pypa.io/en/stable/history.html
Diff: https://github.com/pypa/setuptools/compare/v65.4.1...v65.5.0

Stubsabot analysis of the diff between the two releases:
 - 0 public Python files have been added.
 - 0 files included in typeshed's stubs have been deleted.
 - 4 files included in typeshed's stubs have been modified or renamed: `setuptools/build_meta.py`, `setuptools/command/test.py`, `setuptools/monkey.py`, `setuptools/wheel.py`.
 - Total lines of Python code added: 111.
 - Total lines of Python code deleted: 59.

If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR

Note that you will need to close and re-open the PR in order to trigger CI

Co-authored-by: stubsabot <>
2022-10-14 17:42:37 -07:00