Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete unused v1 sources. #10411

Merged
merged 1 commit into from Jul 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion src/python/pants/auth/cookies.py
Expand Up @@ -21,7 +21,6 @@ def register_options(cls, register):
register(
"--path",
advanced=True,
fingerprint=True,
default=os.path.join(register.bootstrap.pants_bootstrapdir, "auth", "cookies"),
help="Path to file that stores persistent cookies. "
"Defaults to <pants bootstrap dir>/auth/cookies.",
Expand Down
3 changes: 0 additions & 3 deletions src/python/pants/backend/native/subsystems/libc_dev.py
Expand Up @@ -46,7 +46,6 @@ def register_options(cls, register):
"--enable-libc-search",
type=bool,
default=False,
fingerprint=True,
advanced=True,
help="Whether to search for the host's libc installation. Set to False if the host "
"does not have a libc install with crti.o -- this file is necessary to create "
Expand All @@ -56,15 +55,13 @@ def register_options(cls, register):
"--libc-dir",
type=dir_option,
default=None,
fingerprint=True,
advanced=True,
help="A directory containing a host-specific crti.o from libc.",
)
register(
"--host-compiler",
type=str,
default="gcc",
fingerprint=True,
advanced=True,
help="The host compiler to invoke with -print-search-dirs to find the host libc.",
)
Expand Down
Expand Up @@ -60,7 +60,6 @@ def register_options(cls, register):
"--install-prefixes",
type=list,
default=cls.INSTALL_PREFIXES_DEFAULT,
fingerprint=True,
advanced=True,
help="Locations to search for resources from the XCode CLI tools, including a "
"compiler, linker, header files, and some libraries. "
Expand Down
5 changes: 1 addition & 4 deletions src/python/pants/backend/project_info/cloc.py
Expand Up @@ -66,10 +66,7 @@ class CountLinesOfCodeOptions(GoalSubsystem):
def register_options(cls, register) -> None:
super().register_options(register)
register(
"--ignored",
type=bool,
fingerprint=True,
help="Show information about files ignored by cloc.",
"--ignored", type=bool, help="Show information about files ignored by cloc.",
)


Expand Down
8 changes: 1 addition & 7 deletions src/python/pants/backend/python/python_artifact.py
@@ -1,11 +1,8 @@
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

from pants.base.hash_utils import stable_json_sha1
from pants.base.payload_field import PayloadField


class PythonArtifact(PayloadField):
class PythonArtifact:
"""Represents a Python setup.py-based project."""

class MissingArgument(Exception):
Expand Down Expand Up @@ -66,9 +63,6 @@ def binaries(self):
def __str__(self):
return self.name

def _compute_fingerprint(self):
return stable_json_sha1((self._kw, self._binaries))

def with_binaries(self, *args, **kw):
"""Add binaries tagged to this artifact.

Expand Down
7 changes: 1 addition & 6 deletions src/python/pants/backend/python/subsystems/pytest.py
Expand Up @@ -19,20 +19,15 @@ def register_options(cls, register):
"--args",
type=list,
member_type=shell_str,
fingerprint=True,
passthrough=True,
help='Arguments to pass directly to Pytest, e.g. `--pytest-args="-k test_foo --quiet"`',
)
register(
"--version",
default="pytest>=5.3.5,<5.4",
fingerprint=True,
help="Requirement string for Pytest.",
"--version", default="pytest>=5.3.5,<5.4", help="Requirement string for Pytest.",
)
register(
"--pytest-plugins",
type=list,
fingerprint=True,
default=[
"pytest-timeout>=1.3.4,<1.4",
"pytest-cov>=2.8.1,<2.9",
Expand Down
Expand Up @@ -23,15 +23,13 @@ def register_options(cls, register):
"--cpp-flags",
type=list,
default=safe_shlex_split(os.environ.get("CPPFLAGS", "")),
fingerprint=True,
advanced=True,
help="Override the `CPPFLAGS` environment variable for any forked subprocesses.",
)
register(
"--ld-flags",
type=list,
default=safe_shlex_split(os.environ.get("LDFLAGS", "")),
fingerprint=True,
advanced=True,
help="Override the `LDFLAGS` environment variable for any forked subprocesses.",
)
Expand Down
Expand Up @@ -23,7 +23,6 @@ def register_options(cls, register):
"--version",
type=str,
advanced=True,
fingerprint=True,
default=cls.default_version,
help="Requirement string for the tool.",
)
Expand All @@ -32,7 +31,6 @@ def register_options(cls, register):
type=list,
member_type=str,
advanced=True,
fingerprint=True,
default=cls.default_extra_requirements,
help="Any additional requirement strings to use with the tool. This is useful if the "
"tool allows you to install plugins or if you need to constrain a dependency to "
Expand All @@ -42,7 +40,6 @@ def register_options(cls, register):
"--interpreter-constraints",
type=list,
advanced=True,
fingerprint=True,
default=cls.default_interpreter_constraints,
help="Python interpreter constraints for this tool. An empty list uses the default "
"interpreter constraints for the repo.",
Expand All @@ -51,7 +48,6 @@ def register_options(cls, register):
"--entry-point",
type=str,
advanced=True,
fingerprint=True,
default=cls.default_entry_point,
help="The main module for the tool. If unspecified, the code using this tool "
"must provide it explicitly on invocation, or it can use the tool as a "
Expand Down
Expand Up @@ -22,14 +22,12 @@ def register_options(cls, register):
register(
"--lang",
default=os.environ.get("LANG"),
fingerprint=True,
advanced=True,
help="Override the `LANG` environment variable for any forked subprocesses.",
)
register(
"--lc-all",
default=os.environ.get("LC_ALL"),
fingerprint=True,
advanced=True,
help="Override the `LC_ALL` environment variable for any forked subprocesses.",
)
Expand Down
1 change: 0 additions & 1 deletion src/python/pants/backend/python/target_types.py
Expand Up @@ -101,7 +101,6 @@ def register_options(cls, register):
advanced=True,
type=bool,
default=True,
fingerprint=True,
help=(
"Whether built PEX binaries should emit pex warnings at runtime by default. "
"Can be over-ridden by specifying the `emit_warnings` parameter of individual "
Expand Down
66 changes: 0 additions & 66 deletions src/python/pants/base/fingerprint_strategy.py

This file was deleted.

154 changes: 0 additions & 154 deletions src/python/pants/base/payload.py

This file was deleted.