repo stringlengths 2 99 | file stringlengths 13 225 | code stringlengths 0 18.3M | file_length int64 0 18.3M | avg_line_length float64 0 1.36M | max_line_length int64 0 4.26M | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
pip | pip-main/tests/unit/test_models_wheel.py | import pytest
from pip._vendor.packaging.tags import Tag
from pip._internal.exceptions import InvalidWheelFilename
from pip._internal.models.wheel import Wheel
from pip._internal.utils import compatibility_tags
class TestWheelFile:
def test_std_wheel_pattern(self) -> None:
w = Wheel("simple-1.1.1-py2-non... | 6,561 | 35.455556 | 78 | py |
pip | pip-main/tests/unit/test_logging.py | import logging
import time
from threading import Thread
from unittest.mock import patch
import pytest
from pip._internal.utils.logging import (
BrokenStdoutLoggingError,
IndentingFormatter,
RichPipStreamHandler,
indent_log,
)
from pip._internal.utils.misc import captured_stderr, captured_stdout
logge... | 6,240 | 31.336788 | 85 | py |
pip | pip-main/tests/unit/test_direct_url_helpers.py | import os
from functools import partial
from pathlib import Path
from unittest import mock
from pip._internal.models.direct_url import ArchiveInfo, DirectUrl, DirInfo, VcsInfo
from pip._internal.models.link import Link
from pip._internal.utils.direct_url_helpers import (
direct_url_as_pep440_direct_reference,
... | 6,559 | 36.485714 | 86 | py |
pip | pip-main/tests/unit/test_command_install.py | import errno
from unittest import mock
import pytest
from pip._internal.commands import install
from pip._internal.commands.install import create_os_error_message, decide_user_install
class TestDecideUserInstall:
@mock.patch("site.ENABLE_USER_SITE", True)
@mock.patch("pip._internal.commands.install.site_pac... | 3,860 | 30.390244 | 87 | py |
pip | pip-main/tests/unit/test_cache.py | import os
from pathlib import Path
from pip._vendor.packaging.tags import Tag, interpreter_name, interpreter_version
from pip._internal.cache import WheelCache, _hash_dict
from pip._internal.models.link import Link
from pip._internal.utils.misc import ensure_dir
def test_falsey_path_none() -> None:
wc = WheelCa... | 4,200 | 34.302521 | 85 | py |
pip | pip-main/tests/unit/test_network_session.py | import logging
import os
from pathlib import Path
from typing import Any, List, Optional
from urllib.parse import urlparse
from urllib.request import getproxies
import pytest
from pip._vendor import requests
from pip import __version__
from pip._internal.models.link import Link
from pip._internal.network.session impo... | 10,363 | 36.415162 | 87 | py |
pip | pip-main/tests/unit/test_index.py | import logging
from typing import FrozenSet, List, Optional, Set, Tuple
import pytest
from pip._vendor.packaging.specifiers import SpecifierSet
from pip._vendor.packaging.tags import Tag
from pip._internal.index.collector import LinkCollector
from pip._internal.index.package_finder import (
CandidateEvaluator,
... | 31,455 | 33.79646 | 88 | py |
pip | pip-main/tests/unit/test_appdirs.py | # mypy: no-warn-unused-ignores
import os
import sys
from unittest import mock
import pytest
from pip._vendor import platformdirs
from pip._internal.utils import appdirs
class TestUserCacheDir:
@pytest.mark.skipif(sys.platform != "win32", reason="Windows-only test")
def test_user_cache_dir_win(self, monkeyp... | 8,275 | 36.447964 | 86 | py |
pip | pip-main/tests/unit/test_utils_wheel.py | import os
from contextlib import ExitStack
from email import message_from_string
from io import BytesIO
from pathlib import Path
from typing import Callable, Iterator
from zipfile import ZipFile
import pytest
from pip._internal.exceptions import UnsupportedWheel
from pip._internal.utils import wheel
from tests.lib im... | 4,782 | 32.921986 | 86 | py |
pip | pip-main/tests/unit/test_finder.py | import logging
from typing import Iterable
from unittest.mock import Mock, patch
import pytest
from pip._vendor.packaging.specifiers import SpecifierSet
from pip._vendor.packaging.tags import Tag
from pip._vendor.packaging.version import parse as parse_version
import pip._internal.utils.compatibility_tags
from pip._i... | 19,722 | 33.662566 | 86 | py |
pip | pip-main/tests/unit/test_req_file.py | import collections
import logging
import os
import textwrap
from optparse import Values
from pathlib import Path
from typing import TYPE_CHECKING, Any, Iterator, List, Optional, Tuple, Union
from unittest import mock
import pytest
import pip._internal.req.req_file # this will be monkeypatched
from pip._internal.exce... | 30,425 | 33.071669 | 88 | py |
pip | pip-main/tests/unit/test_commands.py | from typing import Callable, List
from unittest import mock
import pytest
from pip._internal.cli.base_command import Command
from pip._internal.cli.req_command import (
IndexGroupCommand,
RequirementCommand,
SessionCommandMixin,
)
from pip._internal.commands import commands_dict, create_command
# These a... | 3,895 | 30.674797 | 87 | py |
pip | pip-main/tests/unit/test_direct_url.py | import pytest
from pip._internal.models.direct_url import (
ArchiveInfo,
DirectUrl,
DirectUrlValidationError,
DirInfo,
VcsInfo,
)
def test_from_json() -> None:
json = '{"url": "file:///home/user/project", "dir_info": {}}'
direct_url = DirectUrl.from_json(json)
assert direct_url.url ==... | 6,363 | 35.786127 | 87 | py |
pip | pip-main/tests/unit/test_link.py | from typing import Optional
import pytest
from pip._internal.models.link import Link, links_equivalent
from pip._internal.utils.hashes import Hashes
class TestLink:
@pytest.mark.parametrize(
"url, expected",
[
(
"https://user:password@example.com/path/page.html",
... | 8,625 | 34.065041 | 83 | py |
pip | pip-main/tests/unit/test_wheel.py | """Tests for wheel binary packages and .dist-info."""
import csv
import logging
import os
import pathlib
import sys
import textwrap
from email import message_from_string
from pathlib import Path
from typing import Dict, List, Optional, Tuple, cast
from unittest.mock import patch
import pytest
from pip._vendor.packagin... | 24,996 | 33.621884 | 88 | py |
pip | pip-main/tests/unit/test_req_uninstall.py | import os
import sys
from pathlib import Path
from typing import Iterator, List, Optional, Tuple
from unittest.mock import Mock
import pytest
import pip._internal.req.req_uninstall
from pip._internal.req.req_uninstall import (
StashedUninstallPathSet,
UninstallPathSet,
UninstallPthEntries,
compact,
... | 13,487 | 30.736471 | 86 | py |
pip | pip-main/tests/unit/test_pep517.py | import os
from pathlib import Path
from textwrap import dedent
import pytest
from pip._internal.exceptions import InstallationError, InvalidPyProjectBuildRequires
from pip._internal.req import InstallRequirement
from tests.lib import TestData
@pytest.mark.parametrize(
("source", "expected"),
[
("pep... | 3,112 | 30.13 | 88 | py |
pip | pip-main/tests/unit/test_utils_compatibility_tags.py | import sysconfig
from typing import Any, Callable, Dict, List, Tuple
from unittest.mock import patch
import pytest
from pip._internal.utils import compatibility_tags
@pytest.mark.parametrize(
"version_info, expected",
[
((2,), "2"),
((2, 8), "28"),
((3,), "3"),
((3, 6), "36")... | 3,392 | 30.12844 | 84 | py |
pip | pip-main/tests/unit/test_packaging.py | from typing import Optional, Tuple
import pytest
from pip._vendor.packaging import specifiers
from pip._vendor.packaging.requirements import Requirement
from pip._internal.utils.packaging import check_requires_python, get_requirement
@pytest.mark.parametrize(
"version_info, requires_python, expected",
[
... | 1,480 | 31.911111 | 86 | py |
pip | pip-main/tests/unit/test_locations.py | """
locations.py tests
"""
import getpass
import os
import shutil
import sys
import sysconfig
import tempfile
from pathlib import Path
from typing import Any, Dict
from unittest.mock import Mock
import pytest
from pip._internal.locations import SCHEME_KEYS, _should_use_sysconfig, get_scheme
if sys.platform == "win3... | 6,450 | 34.640884 | 82 | py |
pip | pip-main/tests/unit/test_compat.py | import os
from pathlib import Path
import pytest
from pip._internal.utils.compat import get_path_uid
def test_get_path_uid() -> None:
path = os.getcwd()
assert get_path_uid(path) == os.stat(path).st_uid
@pytest.mark.skipif("not hasattr(os, 'O_NOFOLLOW')")
def test_get_path_uid_without_NOFOLLOW(monkeypatch... | 1,326 | 27.234043 | 80 | py |
pip | pip-main/tests/unit/test_self_check_outdated.py | import datetime
import json
import logging
import os
import sys
from optparse import Values
from pathlib import Path
from typing import Optional
from unittest.mock import ANY, Mock, patch
import pytest
from freezegun import freeze_time
from pip._vendor.packaging.version import Version
from pip._internal import self_o... | 5,583 | 29.850829 | 79 | py |
pip | pip-main/tests/unit/test_network_auth.py | import functools
import os
import subprocess
import sys
from typing import Any, Dict, Iterable, List, Optional, Tuple
import pytest
import pip._internal.network.auth
from pip._internal.network.auth import MultiDomainBasicAuth
from tests.lib.requests_mocks import MockConnection, MockRequest, MockResponse
@pytest.fix... | 17,584 | 31.504621 | 88 | py |
pip | pip-main/tests/unit/test_operations_prepare.py | import os
import shutil
from pathlib import Path
from shutil import rmtree
from tempfile import mkdtemp
from typing import Any, Dict
from unittest.mock import Mock, patch
import pytest
from pip._internal.exceptions import HashMismatch
from pip._internal.models.link import Link
from pip._internal.network.download impo... | 4,619 | 33.222222 | 86 | py |
pip | pip-main/tests/unit/test_base_command.py | import logging
import os
import time
from optparse import Values
from pathlib import Path
from typing import Callable, Iterator, List, NoReturn, Optional
from unittest.mock import Mock, patch
import pytest
from pip._internal.cli.base_command import Command
from pip._internal.cli.status_codes import SUCCESS
from pip._... | 6,857 | 32.291262 | 85 | py |
pip | pip-main/tests/unit/test_utils_subprocess.py | import locale
import sys
from logging import DEBUG, ERROR, INFO, WARNING
from typing import List, Optional, Tuple, Type
import pytest
from pip._internal.cli.spinners import SpinnerInterface
from pip._internal.exceptions import InstallationSubprocessError
from pip._internal.utils.logging import VERBOSE
from pip._inter... | 13,349 | 32.458647 | 88 | py |
pip | pip-main/tests/unit/test_models.py | """Tests for various classes in pip._internal.models
"""
from pip._vendor.packaging.version import parse as parse_version
from pip._internal.models import candidate, index
from pip._internal.models.link import Link
class TestPackageIndex:
"""Tests for pip._internal.models.index.PackageIndex"""
def test_giv... | 2,321 | 37.7 | 78 | py |
pip | pip-main/tests/unit/test_req_install.py | import os
import tempfile
from pathlib import Path
import pytest
from pip._vendor.packaging.requirements import Requirement
from pip._internal.exceptions import InstallationError
from pip._internal.req.constructors import (
install_req_from_line,
install_req_from_req_string,
)
from pip._internal.req.req_insta... | 4,326 | 37.292035 | 86 | py |
pip | pip-main/tests/unit/test_utils_filesystem.py | import os
from pathlib import Path
def make_file(path: str) -> None:
Path(path).touch()
def make_valid_symlink(path: str) -> None:
target = path + "1"
make_file(target)
os.symlink(target, path)
def make_broken_symlink(path: str) -> None:
os.symlink("foo", path)
def make_dir(path: str) -> Non... | 342 | 15.333333 | 43 | py |
pip | pip-main/tests/unit/test_pyproject_config.py | from typing import Dict, List
import pytest
from pip._internal.commands import create_command
@pytest.mark.parametrize(
("command", "expected"),
[
("install", True),
("wheel", True),
("freeze", False),
],
)
def test_supports_config(command: str, expected: bool) -> None:
c = c... | 1,540 | 27.537037 | 85 | py |
pip | pip-main/tests/unit/test_vcs_mercurial.py | """
Contains functional tests of the Mercurial class.
"""
import configparser
import os
from pathlib import Path
from pip._internal.utils.misc import hide_url
from pip._internal.vcs.mercurial import Mercurial
from tests.lib import need_mercurial
@need_mercurial
def test_mercurial_switch_updates_config_file_when_fou... | 873 | 24.705882 | 79 | py |
pip | pip-main/tests/unit/test_resolution_legacy_resolver.py | import email.message
import logging
import os
from typing import List, Optional, Type, TypeVar, cast
from unittest import mock
import pytest
from pip._vendor.packaging.specifiers import SpecifierSet
from pip._vendor.packaging.utils import NormalizedName
from pip._internal.exceptions import (
InstallationError,
... | 12,761 | 33.214477 | 86 | py |
pip | pip-main/tests/unit/test_wheel_builder.py | import logging
import os
from pathlib import Path
from typing import Optional, cast
import pytest
from pip._internal import wheel_builder
from pip._internal.models.link import Link
from pip._internal.operations.build.wheel_legacy import format_command_result
from pip._internal.req.req_install import InstallRequiremen... | 6,386 | 30.935 | 87 | py |
pip | pip-main/tests/unit/test_utils_temp_dir.py | import itertools
import os
import stat
import tempfile
from pathlib import Path
from typing import Any, Iterator, Optional, Union
import pytest
from pip._internal.utils import temp_dir
from pip._internal.utils.misc import ensure_dir
from pip._internal.utils.temp_dir import (
AdjacentTempDirectory,
TempDirecto... | 8,517 | 29.750903 | 87 | py |
pip | pip-main/tests/unit/test_search_scope.py | from pip._internal.models.search_scope import SearchScope
from pip._internal.req.constructors import install_req_from_line
class TestSearchScope:
def test_get_formatted_locations_basic_auth(self) -> None:
"""
Test that basic authentication credentials defined in URL
is not included in form... | 1,502 | 34.785714 | 70 | py |
pip | pip-main/tests/unit/test_target_python.py | from typing import Any, Dict, Optional, Tuple
from unittest import mock
import pytest
from pip._vendor.packaging.tags import Tag
from pip._internal.models.target_python import TargetPython
from tests.lib import CURRENT_PY_VERSION_INFO, pyversion
class TestTargetPython:
@pytest.mark.parametrize(
"py_vers... | 4,147 | 32.184 | 79 | py |
pip | pip-main/tests/unit/test_urls.py | import os
import sys
import urllib.request
from typing import Optional
import pytest
from pip._internal.utils.urls import get_url_scheme, path_to_url, url_to_path
@pytest.mark.parametrize(
"url,expected",
[
("http://localhost:8080/", "http"),
("file:c:/path/to/file", "file"),
("file:... | 2,378 | 31.589041 | 81 | py |
pip | pip-main/tests/unit/test_utils_virtualenv.py | import logging
import os
import site
import sys
from pathlib import Path
from typing import List, Optional
import pytest
from pip._internal.utils import virtualenv
@pytest.mark.parametrize(
"real_prefix, base_prefix, expected",
[
(None, None, False), # Python 2 base interpreter
(None, sys.p... | 4,517 | 29.945205 | 86 | py |
pip | pip-main/tests/unit/test_vcs.py | import os
import pathlib
from typing import Any, Dict, List, Optional, Tuple, Type
from unittest import TestCase, mock
import pytest
from pip._internal.exceptions import BadCommand, InstallationError
from pip._internal.utils.misc import HiddenText, hide_url, hide_value
from pip._internal.utils.subprocess import Comma... | 27,099 | 31.533013 | 88 | py |
pip | pip-main/tests/unit/test_cmdoptions.py | import os
from pathlib import Path
from typing import Optional, Tuple
from venv import EnvBuilder
import pytest
from pip._internal.cli.cmdoptions import _convert_python_version
from pip._internal.cli.main_parser import identify_python_interpreter
@pytest.mark.parametrize(
"value, expected",
[
("", (... | 1,733 | 31.716981 | 75 | py |
pip | pip-main/tests/unit/test_format_control.py | from optparse import Values
from typing import FrozenSet, List, Set
import pytest
from pip._internal.cli import cmdoptions
from pip._internal.cli.base_command import Command
from pip._internal.cli.status_codes import SUCCESS
from pip._internal.models.format_control import FormatControl
class SimpleCommand(Command):... | 2,454 | 32.175676 | 87 | py |
pip | pip-main/tests/unit/__init__.py | 0 | 0 | 0 | py | |
pip | pip-main/tests/unit/test_options.py | import os
from contextlib import contextmanager
from optparse import Values
from tempfile import NamedTemporaryFile
from typing import Any, Dict, Iterator, List, Tuple, Union, cast
import pytest
import pip._internal.configuration
from pip._internal.cli.main import main
from pip._internal.commands import create_comman... | 25,459 | 37.751903 | 88 | py |
pip | pip-main/tests/unit/test_network_lazy_wheel.py | from typing import Iterator
from pip._vendor.packaging.version import Version
from pytest import fixture, mark, raises
from pip._internal.exceptions import InvalidWheel
from pip._internal.network.lazy_wheel import (
HTTPRangeRequestUnsupported,
dist_from_wheel_url,
)
from pip._internal.network.session import ... | 2,213 | 32.044776 | 87 | py |
pip | pip-main/tests/unit/test_exceptions.py | """Tests the presentation style of exceptions."""
import io
import locale
import logging
import pathlib
import sys
import textwrap
from typing import Optional, Tuple
import pytest
from pip._vendor import rich
from pip._internal.exceptions import DiagnosticPipError, ExternallyManagedEnvironment
class TestDiagnostic... | 19,427 | 28.661069 | 85 | py |
pip | pip-main/tests/unit/test_collector.py | import itertools
import json
import logging
import os
import re
import uuid
from pathlib import Path
from textwrap import dedent
from typing import Dict, List, Optional, Tuple
from unittest import mock
import pytest
from pip._vendor import requests
from pip._vendor.packaging.requirements import Requirement
from pip._... | 39,741 | 33.498264 | 147 | py |
pip | pip-main/tests/unit/test_req.py | import contextlib
import email.message
import os
import shutil
import sys
import tempfile
from functools import partial
from pathlib import Path
from typing import Iterator, Optional, Tuple, cast
from unittest import mock
import pytest
from pip._vendor.packaging.markers import Marker
from pip._vendor.packaging.require... | 38,090 | 38.76096 | 88 | py |
pip | pip-main/tests/unit/test_configuration.py | """Tests for all things related to the configuration
"""
import re
from unittest.mock import MagicMock
import pytest
from pip._internal.configuration import get_configuration_files, kinds
from pip._internal.exceptions import ConfigurationError
from tests.lib.configuration_helpers import ConfigurationMixin
class Te... | 10,236 | 36.498168 | 87 | py |
pip | pip-main/tests/unit/test_network_download.py | import logging
import sys
from typing import Dict
import pytest
from pip._internal.models.link import Link
from pip._internal.network.download import (
_prepare_download,
parse_content_disposition,
sanitize_content_filename,
)
from tests.lib.requests_mocks import MockResponse
@pytest.mark.parametrize(
... | 3,402 | 25.795276 | 85 | py |
pip | pip-main/tests/unit/test_utils.py | """
util tests
"""
import codecs
import os
import shutil
import stat
import sys
import time
from io import BytesIO
from pathlib import Path
from typing import Any, Callable, Iterator, List, NoReturn, Optional, Tuple, Type
from unittest.mock import Mock, patch
import pytest
from pip._internal.exceptions import HashMi... | 36,730 | 33.816114 | 88 | py |
pip | pip-main/tests/unit/test_utils_unpacking.py | import io
import os
import shutil
import stat
import sys
import tarfile
import tempfile
import time
import zipfile
from pathlib import Path
from typing import List, Tuple
import pytest
from pip._internal.exceptions import InstallationError
from pip._internal.utils.unpacking import is_within_directory, untar_file, unz... | 7,833 | 36.304762 | 87 | py |
pip | pip-main/tests/unit/resolution_resolvelib/test_provider.py | from typing import TYPE_CHECKING, List, Optional
from pip._vendor.resolvelib.resolvers import RequirementInformation
from pip._internal.models.candidate import InstallationCandidate
from pip._internal.models.link import Link
from pip._internal.req.constructors import install_req_from_req_string
from pip._internal.res... | 2,986 | 36.810127 | 127 | py |
pip | pip-main/tests/unit/resolution_resolvelib/conftest.py | from typing import Iterator
import pytest
from pip._internal.cli.req_command import RequirementCommand
from pip._internal.commands.install import InstallCommand
from pip._internal.index.collector import LinkCollector
from pip._internal.index.package_finder import PackageFinder
# from pip._internal.models.index impor... | 2,623 | 32.21519 | 87 | py |
pip | pip-main/tests/unit/resolution_resolvelib/test_resolver.py | from typing import Dict, List, Optional, Set, Tuple, cast
from unittest import mock
import pytest
from pip._vendor.packaging.utils import canonicalize_name
from pip._vendor.resolvelib.resolvers import Result
from pip._vendor.resolvelib.structs import DirectedGraph
from pip._internal.index.package_finder import Packag... | 9,424 | 30.416667 | 79 | py |
pip | pip-main/tests/unit/resolution_resolvelib/__init__.py | 0 | 0 | 0 | py | |
pip | pip-main/tests/unit/resolution_resolvelib/test_requirement.py | import os
from pathlib import Path
from typing import Iterator, List, Tuple
import pytest
from pip._vendor.resolvelib import BaseReporter, Resolver
from pip._internal.resolution.resolvelib.base import Candidate, Constraint, Requirement
from pip._internal.resolution.resolvelib.factory import Factory
from pip._internal... | 3,963 | 34.392857 | 87 | py |
pip | pip-main/tests/unit/metadata/test_metadata.py | import logging
import os
from pathlib import Path
from typing import cast
from unittest import mock
import pytest
from pip._vendor.packaging.utils import NormalizedName
from pip._internal.metadata import (
BaseDistribution,
get_directory_distribution,
get_environment,
get_wheel_distribution,
)
from pi... | 4,874 | 35.931818 | 86 | py |
pip | pip-main/tests/unit/metadata/test_metadata_pkg_resources.py | import email.message
import itertools
from typing import List, cast
from unittest import mock
import pytest
from pip._vendor.packaging.specifiers import SpecifierSet
from pip._vendor.packaging.version import parse as parse_version
from pip._internal.exceptions import UnsupportedWheel
from pip._internal.metadata.pkg_r... | 3,766 | 29.379032 | 88 | py |
pip | pip-main/tests/data/src/pep518_with_namespace_package-1.0/setup.py | from setuptools import setup
import simple_namespace.module
setup(
name="pep518_with_namespace_package",
version="1.0",
py_modules=["pep518_with_namespace_package"],
)
| 182 | 17.3 | 49 | py |
pip | pip-main/tests/data/src/pep518_with_namespace_package-1.0/pep518_with_namespace_package.py | 0 | 0 | 0 | py | |
pip | pip-main/tests/data/src/chattymodule/setup.py | # A chatty setup.py for testing pip subprocess output handling
import os
import sys
from setuptools import setup
print(f"HELLO FROM CHATTYMODULE {sys.argv[1]}")
print(sys.argv)
print(sys.executable)
print(sys.version)
if "--fail" in sys.argv:
print("I DIE, I DIE")
sys.exit(1)
setup(
name="chattymodule"... | 442 | 18.26087 | 63 | py |
pip | pip-main/tests/data/src/chattymodule/chattymodule.py | def main():
"""Entry point for the application script"""
print("Call your main application code here")
| 111 | 27 | 49 | py |
pip | pip-main/tests/data/src/simplewheel-2.0/setup.py | #!/usr/bin/env python
from setuptools import setup
import simplewheel
setup(
name="simplewheel",
version=simplewheel.__version__,
packages=["simplewheel"],
)
| 172 | 14.727273 | 36 | py |
pip | pip-main/tests/data/src/simplewheel-2.0/simplewheel/__init__.py | __version__ = "2.0"
| 20 | 9.5 | 19 | py |
pip | pip-main/tests/data/src/extension/setup.py | from setuptools import Extension, setup
module = Extension("extension", sources=["extension.c"])
setup(name="extension", version="0.0.1", ext_modules=[module])
| 161 | 31.4 | 62 | py |
pip | pip-main/tests/data/src/pep518_conflicting_requires/pep518.py | # dummy
| 8 | 3.5 | 7 | py |
pip | pip-main/tests/data/src/pep518_conflicting_requires/setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name="pep518_conflicting_requires",
version="1.0.0",
py_modules=["pep518"],
)
| 149 | 15.666667 | 39 | py |
pip | pip-main/tests/data/src/TopoRequires2/setup.py | from setuptools import setup
setup(
name="TopoRequires2",
version="0.0.1",
packages=["toporequires2"],
install_requires=["TopoRequires"],
)
| 157 | 16.555556 | 38 | py |
pip | pip-main/tests/data/src/TopoRequires2/toporequires2/__init__.py | 0 | 0 | 0 | py | |
pip | pip-main/tests/data/src/pep517_setup_and_pyproject/setup.py | from setuptools import setup
setup(name="dummy", version="0.1")
| 65 | 15.5 | 34 | py |
pip | pip-main/tests/data/src/compilewheel/setup.py | #!/usr/bin/env python
from setuptools import find_packages, setup
setup(name="compilewheel", version="1.0", packages=find_packages())
| 135 | 26.2 | 67 | py |
pip | pip-main/tests/data/src/compilewheel/simple/__init__.py | def spam(gen):
yield from gen
| 34 | 10.666667 | 18 | py |
pip | pip-main/tests/data/src/pep517_setup_only/setup.py | from setuptools import setup
setup(name="dummy", version="0.1")
| 65 | 15.5 | 34 | py |
pip | pip-main/tests/data/src/pep518-3.0/pep518.py | # dummy
| 8 | 3.5 | 7 | py |
pip | pip-main/tests/data/src/pep518-3.0/setup.py | #!/usr/bin/env python
from setuptools import setup
import simplewheel # ensure dependency is installed
setup(
name="pep518",
version="3.0",
py_modules=["pep518"],
)
| 180 | 15.454545 | 52 | py |
pip | pip-main/tests/data/src/requires_requires_capitalized/setup.py | from setuptools import setup
setup(
name="requires_requires_capitalized",
version="1.0",
install_requires=["requires_Capitalized==0.1"],
)
| 152 | 18.125 | 51 | py |
pip | pip-main/tests/data/src/requires_capitalized/setup.py | from setuptools import setup
setup(name="Requires_Capitalized", version="0.1", install_requires=["simple==1.0"])
| 114 | 27.75 | 83 | py |
pip | pip-main/tests/data/src/setup_error/setup.py | from setuptools import setup
# This is to get an error that originates from setuptools, which generates a
# decently sized output.
setup(
cmdclass={
"egg_info": "<make-me-fail>",
"install": "<make-me-fail>",
"bdist_wheel": "<make-me-fail>",
}
)
| 278 | 22.25 | 76 | py |
pip | pip-main/tests/data/src/TopoRequires4/setup.py | from setuptools import setup
setup(
name="TopoRequires4",
version="0.0.1",
packages=["toporequires4"],
install_requires=["TopoRequires2", "TopoRequires", "TopoRequires3"],
)
| 191 | 20.333333 | 72 | py |
pip | pip-main/tests/data/src/TopoRequires4/toporequires4/__init__.py | 0 | 0 | 0 | py | |
pip | pip-main/tests/data/src/prjwithdatafile/setup.py | from setuptools import setup
setup(
name="prjwithdatafile",
version="1.0",
packages=["prjwithdatafile"],
data_files=[
(r"packages1", ["prjwithdatafile/README.txt"]),
(r"packages2", ["prjwithdatafile/README.txt"]),
],
)
| 256 | 20.416667 | 55 | py |
pip | pip-main/tests/data/src/prjwithdatafile/prjwithdatafile/somemodule.py | 0 | 0 | 0 | py | |
pip | pip-main/tests/data/src/requires_simple_extra/requires_simple_extra.py | 0 | 0 | 0 | py | |
pip | pip-main/tests/data/src/requires_simple_extra/setup.py | from setuptools import setup
setup(
name="requires_simple_extra",
version="0.1",
py_modules=["requires_simple_extra"],
extras_require={"extra": ["simple==1.0"]},
)
| 181 | 19.222222 | 46 | py |
pip | pip-main/tests/data/src/pep518_forkbomb-235/pep518_forkbomb.py | 0 | 0 | 0 | py | |
pip | pip-main/tests/data/src/pep518_forkbomb-235/setup.py | from setuptools import setup
setup(name="pep518_forkbomb", version="235", py_modules=["pep518_forkbomb"])
| 107 | 26 | 76 | py |
pip | pip-main/tests/data/src/simplewheel-1.0/setup.py | #!/usr/bin/env python
from setuptools import setup
import simplewheel
setup(
name="simplewheel",
version=simplewheel.__version__,
packages=["simplewheel"],
)
| 172 | 14.727273 | 36 | py |
pip | pip-main/tests/data/src/simplewheel-1.0/simplewheel/__init__.py | __version__ = "1.0"
| 20 | 9.5 | 19 | py |
pip | pip-main/tests/data/src/pep518_invalid_build_system/pep518.py | # dummy
| 8 | 3.5 | 7 | py |
pip | pip-main/tests/data/src/pep518_invalid_build_system/setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name="pep518_invalid_build_system",
version="1.0.0",
py_modules=["pep518"],
)
| 149 | 15.666667 | 39 | py |
pip | pip-main/tests/data/src/withpyproject/setup.py | from setuptools import setup
setup(name="withpyproject", version="0.0.1")
| 75 | 18 | 44 | py |
pip | pip-main/tests/data/src/pep518_with_extra_and_markers-1.0/setup.py | #!/usr/bin/env python
from setuptools import setup
# ensure dependencies are installed
import simple
import simplewheel
assert simplewheel.__version__ == "2.0"
setup(
name="pep518_with_extra_and_markers",
version="1.0",
py_modules=["pep518_with_extra_and_markers"],
)
| 283 | 17.933333 | 49 | py |
pip | pip-main/tests/data/src/pep518_with_extra_and_markers-1.0/pep518_with_extra_and_markers.py | # dummy
| 8 | 3.5 | 7 | py |
pip | pip-main/tests/data/src/pep518_invalid_requires/pep518.py | # dummy
| 8 | 3.5 | 7 | py |
pip | pip-main/tests/data/src/pep518_invalid_requires/setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name="pep518_invalid_requires",
version="1.0.0",
py_modules=["pep518"],
)
| 145 | 15.222222 | 35 | py |
pip | pip-main/tests/data/src/TopoRequires/setup.py | from setuptools import setup
setup(
name="TopoRequires",
version="0.0.1",
packages=["toporequires"],
)
| 116 | 13.625 | 30 | py |
pip | pip-main/tests/data/src/TopoRequires/toporequires/__init__.py | 0 | 0 | 0 | py | |
pip | pip-main/tests/data/src/TopoRequires3/setup.py | from setuptools import setup
setup(
name="TopoRequires3",
version="0.0.1",
packages=["toporequires3"],
install_requires=["TopoRequires"],
)
| 157 | 16.555556 | 38 | py |
pip | pip-main/tests/data/src/TopoRequires3/toporequires3/__init__.py | 0 | 0 | 0 | py | |
pip | pip-main/tests/data/src/singlemodule/setup.py | from setuptools import setup
setup(
name="singlemodule",
version="0.0.1",
description="A sample Python project with a single module",
py_modules=["singlemodule"],
)
| 182 | 19.333333 | 63 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.