Skip to content

Commit

Permalink
Delete unused v1 sources.
Browse files Browse the repository at this point in the history
Also, removes superfluous fingerprint=True option kwargs.

[ci skip-rust-tests]
  • Loading branch information
benjyw committed Jul 21, 2020
1 parent 669b5f3 commit 5078e0f
Show file tree
Hide file tree
Showing 25 changed files with 3 additions and 669 deletions.
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.

0 comments on commit 5078e0f

Please sign in to comment.