Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pypa/setuptools
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7746f90114bcb6d0e926a35ad3e925c2ac65292b
Choose a base ref
..
head repository: pypa/setuptools
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: eb26141a50d595092468139ddcdb9bd7519fbc39
Choose a head ref
Showing with 1 addition and 2 deletions.
  1. +1 −2 setuptools/command/sdist.py
3 changes: 1 addition & 2 deletions setuptools/command/sdist.py
Original file line number Diff line number Diff line change
@@ -4,7 +4,6 @@
import os
import contextlib
from itertools import chain
from typing import ClassVar

from .._importlib import metadata
from ..dist import Distribution
@@ -47,7 +46,7 @@ class sdist(orig.sdist):
]

distribution: Distribution # override distutils.dist.Distribution with setuptools.dist.Distribution
negative_opt: ClassVar[dict[str, str]] = {} # type: ignore[misc] # Fixed upstream in typeshed to be a ClassVar. Should be included in mypy 1.12
negative_opt: dict[str, str] = {}

README_EXTENSIONS = ['', '.rst', '.txt', '.md']
READMES = tuple('README{0}'.format(ext) for ext in README_EXTENSIONS)