This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size: 1056, obj: <class 'pants.engine.fs.Digest'> | |
size: 1056, obj: <class 'pants.engine.fs.Snapshot'> | |
size: 1056, obj: <class 'pants.engine.fs.FileContent'> | |
size: 1056, obj: <class 'abc.Collection.of(FileContent)'> | |
size: 1056, obj: <class 'pants.engine.isolated_process.FallibleExecuteProcessResult'> | |
size: 493, obj: b'============================= test session starts ==============================\nplatform darwin -- Python 3.6.8, pytest-3.6.4, py-1.8.0, pluggy-0.7.1\nrootdir: /Users/eric/DocsLocal/code/projects/pants/.pants.d/process-executionBU0vrV, inifile:\nplugins: cov-2.4.0, timeout-1.2.1\ncollected 5 items\n\npants_test/util/test_strutil.py ..... [100%]\n\n=========================== 5 passed in 0.04 seconds ===========================\n' | |
size: 1022, obj: b"# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n# see/edit requirements.txt in this directory to change deps.\npython_requiremen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/3rdparty/python/requirements.txt b/3rdparty/python/requirements.txt | |
index e50da50f4..c76c110a9 100644 | |
--- a/3rdparty/python/requirements.txt | |
+++ b/3rdparty/python/requirements.txt | |
@@ -10,6 +10,7 @@ fasteners==0.14.1 | |
faulthandler==2.6 ; python_version<'3' | |
future==0.17.1 | |
futures==3.0.5 ; python_version<'3' | |
+objgraph | |
Markdown==2.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./pants --no-v1 --v2 test tests/python/pants_test/util:contextutil | |
time elapsed for pex download: 0.01029515266418457 | |
time elapsed for getting closure: 0.04847383499145508 | |
time elapsed for requirements pex: 8.583088159561157 | |
time elapsed for sources: 0.009785652160644531 | |
time elapsed for __init__: 0.01706719398498535 | |
time elapsed for merging files: 0.0031499862670898438 | |
time elapsed for pytest: 2.261147975921631 | |
total elapsed time: 10.933007955551147 |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pex: Building pex | |
pex: Building pex :: Resolving interpreters | |
pex: Constraints on interpreters: ['CPython>=3.6'], Matching Interpreter: /Users/eric/.pyenv/versions/3.6.8/bin/python3.6 | |
pex: Building pex :: Resolving interpreters :: Isolating pex | |
pex: Executing: PYTHONPATH=/Users/eric/.pex/isolated/0edff9f980790256c0e238e65ccca12cffa9085b /Users/eric/.pyenv/versions/3.6.8/bin/python3.6m -s -c import sys | |
from pex.interpreter import PythonIdentity | |
sys.stdout.write(PythonIdentity.get().encode()) | |
pex: Could not identify /Users/eric/.pyenv/versions/3.6.8/bin/python3.6m: received exit code 1 during execution of `['/Users/eric/.pyenv/versions/3.6.8/bin/python3.6m', '-s', '-c', 'import sys\nfrom pex.interpreter import PythonIdentity\n\nsys.stdout.write(PythonIdentity.get().encode())\n']` while trying to execute `['/Users/eric/.pyenv/versions/3.6.8/bin/python3.6m', '-s', '-c', 'import sys\nfrom pex.interpreter import PythonIdentity\n\nsys.stdout.write(PythonIdentity.get().encode())\n']` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3.7 | |
"""To run, first run `pex tqdm -o tqdm.pex --interpreter-constraint='CPython==3.7.*'` then run | |
`./tqdm.pex linter_performance_audit.py`. | |
""" | |
import shutil | |
import subprocess | |
from dataclasses import dataclass | |
from pathlib import Path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```#!/usr/bin/env python3 | |
import re | |
from pathlib import Path | |
def has_multiline(p: Path) -> bool: | |
text = p.read_text() | |
has_triple_quotes = bool(re.search('"""', text)) | |
if not has_triple_quotes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). | |
# Licensed under the Apache License, Version 2.0 (see LICENSE). | |
from abc import ABC, abstractmethod | |
from dataclasses import dataclass | |
from typing import Any, ClassVar, Iterable, List, Optional, Type, Union | |
from pants.engine.rules import UnionRule, union | |
from pants.util.collections import ensure_str_list | |
from pants.util.memo import memoized_property |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). | |
# Licensed under the Apache License, Version 2.0 (see LICENSE). | |
from abc import ABC, ABCMeta, abstractmethod | |
from dataclasses import dataclass | |
from typing import Any, ClassVar, Iterable, List, Optional, Tuple, Type, Union, cast | |
from pants.engine.objects import union | |
from pants.engine.rules import UnionMembership | |
from pants.util.collections import ensure_str_list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). | |
# Licensed under the Apache License, Version 2.0 (see LICENSE). | |
from abc import ABC, ABCMeta, abstractmethod | |
from dataclasses import dataclass | |
from typing import Any, ClassVar, Dict, Iterable, List, Optional, Tuple, Type, TypeVar, Union, cast | |
from pants.engine.objects import union | |
from pants.engine.rules import UnionMembership | |
from pants.util.collections import ensure_str_list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). | |
# Licensed under the Apache License, Version 2.0 (see LICENSE). | |
from abc import ABC, ABCMeta, abstractmethod | |
from dataclasses import dataclass | |
from typing import Any, ClassVar, Dict, Iterable, List, Optional, Tuple, Type, TypeVar, Union, cast | |
from pants.engine.objects import union | |
from pants.engine.rules import UnionMembership | |
from pants.util.collections import ensure_str_list |