plain-river-51682
09/11/2020, 7:51 AMnarrow-activity-17405
09/11/2020, 8:06 AMwooden-thailand-8386
09/11/2020, 7:48 PMtests
folder that branches into a similar structure as I have for my projects ands libs.. something like:
tests/
libs/
libA/
libB/
projects/
projectA/
projectB/
and for libA and libB I might have a couple of fixtures that are basically the same. Should I create a “fixtures-lib” and use / put a fixtures folder under tests
and reuse it or duplicate code?wooden-thailand-8386
09/12/2020, 3:35 PMacceptable-guitar-79854
09/13/2020, 12:25 PMacceptable-guitar-79854
09/13/2020, 12:34 PMERROR: Could not find a version that satisfies <interal-package> (from -c constraints.txt (line 1)) (from versions: none)
pid: <PID> -> path/to/python /.../.cache/pants/named_caches/pex_root/pip.pex/<hash> --disable-pip-version-check --isolated --no-python-version-warning --exists-action a -q -cache-dir /.../.cache/pants/named_caches/pex_root download --dest /tmp/<tmp dir>/<path to python bin separated with .> --index-url <https://pypi.org/simple> --extra-index-url <http://our-artifactory>:port/.../simple --trusted-host our-actifactory:port --header Cache-Control:max-age=3600 --retries 5 timeout 15 --constraint constraints.txt <internal-package> flask requests
raised Executing <<the command above>>
• In pants.toml I added
[python-repos]
indexes.add = ["<http://our-artifactory>:port/.../simple"]
acceptable-guitar-79854
09/13/2020, 12:40 PM/tmp/<tmp dir>/<path to python bin separated with .>
there is a <internal-package>.whl
along with other packages. So basically that command works if not run through pants.acceptable-guitar-79854
09/13/2020, 12:44 PM[GLOBAL]
local_execution_root_dir = '...'
but this doesn't change --dest
in the command abovealoof-angle-91616
09/14/2020, 11:23 AMwonderful-iron-54019
09/15/2020, 6:59 PMwitty-crayon-22786
09/15/2020, 9:56 PMfancy-motherboard-24956
09/16/2020, 2:30 PM./pants --version
Bootstrapping pants_deps with requirements:
/Users/pchevalier/Documents/code/pants/3rdparty/python/requirements.txt
/Users/pchevalier/Documents/code/pants/3rdparty/python/twitter/commons/requirements.txt
/Users/pchevalier/Documents/code/pants/pants-plugins/3rdparty/python/requirements.txt
/Users/pchevalier/Documents/code/pants/contrib/python/src/python/pants/contrib/python/checks/checker/3rdparty/requirements.txt
Using python at /usr/bin/python3
Using base prefix '/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8'
New python executable in /Users/pchevalier/Documents/code/pants/build-support/virtualenvs/Darwin/pants_dev_deps.py38.venv/bin/python3
Also creating executable in /Users/pchevalier/Documents/code/pants/build-support/virtualenvs/Darwin/pants_dev_deps.py38.venv/bin/python
Traceback (most recent call last):
File "/Users/pchevalier/Documents/code/pants/build-support/virtualenv.dist/virtualenv.py", line 2619, in <module>
main()
File "/Users/pchevalier/Documents/code/pants/build-support/virtualenv.dist/virtualenv.py", line 857, in main
create_environment(
File "/Users/pchevalier/Documents/code/pants/build-support/virtualenv.dist/virtualenv.py", line 1142, in create_environment
install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages=site_packages, clear=clear, symlink=symlink)
File "/Users/pchevalier/Documents/code/pants/build-support/virtualenv.dist/virtualenv.py", line 1607, in install_python
shutil.copy(original_python, py_executable)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/shutil.py", line 415, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/shutil.py", line 240, in copyfile
if _samefile(src, dst):
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/shutil.py", line 217, in _samefile
return os.path.samefile(src, dst)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/genericpath.py", line 100, in samefile
s1 = os.stat(f1)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
Failed to create venv.
fancy-motherboard-24956
09/16/2020, 2:31 PMhundreds-breakfast-49010
09/16/2020, 7:09 PMplain-river-51682
09/17/2020, 8:42 AMlist, dependees, minimize, filter
). Is there a way to write a pants plugin that invokes these goals?hundreds-father-404
09/17/2020, 7:08 PMuser
09/18/2020, 5:59 PMbillowy-motherboard-58443
09/21/2020, 2:19 PMtest
goal, code which runs fine with plain pytest namespace/pkg/tests/
has trouble with resolving modules.billowy-motherboard-58443
09/21/2020, 2:19 PMbillowy-motherboard-58443
09/21/2020, 2:22 PMns/foo/
ns/bar/
as packages (ns == namespace)billowy-motherboard-58443
09/21/2020, 2:23 PMtests
dir underneathaloof-angle-91616
09/21/2020, 2:24 PMbillowy-motherboard-58443
09/21/2020, 2:24 PMpython_tests(
name = "tests",
dependencies = [
ns/bar",
]
)
billowy-motherboard-58443
09/21/2020, 2:24 PMaloof-angle-91616
09/21/2020, 2:25 PMbillowy-motherboard-58443
09/21/2020, 2:25 PMfrom ns.bar.baz import xxx
billowy-motherboard-58443
09/21/2020, 2:26 PMfrom ns.bar import yyy
works finebillowy-motherboard-58443
09/21/2020, 2:26 PMbillowy-motherboard-58443
09/21/2020, 2:27 PMImportError while importing test module '/tmp/process-executionTdDU86/ns/foo/tests/test_object_input.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
gh/util/tests/test_object_input.py:8: in <module>
from ns.bar.common.model.security.claim import Claim
E ModuleNotFoundError: No module named 'ns.bar.common'
billowy-motherboard-58443
09/21/2020, 2:27 PM