rough-dog-96241
02/07/2017, 10:18 PMpurple-oil-45048
02/08/2017, 7:50 AMbundle
goal with the --bundle-jvm-deployjar
option, what is expected to happen? My simplistic view is that it first generates all the jars as normally, and then starts merging those ..bitter-thailand-61333
02/08/2017, 8:14 AM[compile.zinc]
args: [
'-S-Xmax-classfile-name', '-S128'
]
also did the trick.purple-oil-45048
02/08/2017, 8:52 AMtest-prep-command
and was wondering how it is used ..
Could it technically spin up docker images for example when running test ..:integration
?
The question then remains how to spin it down after the run has completed ..victorious-potato-60449
02/08/2017, 12:01 PMpants setup
. My directory structure looks like this:
build-support
plugins
testplugin
__init__.py
register.py
targets
__init__.py
setup_k8s.py
pants.ini
In my register.py
I have this
from pants.build_graph.build_file_aliases import BuildFileAliases
from testplugin.targets.setup_k8s import setup_k8s
def build_file_aliases():
return BuildFileAliases(
objects={
'setup': setup_k8s
}
)
in setup_k8s
I have this:
def setup_k8s():
print('it worked!')
and in pants.ini
I have this:
[DEFAULT]
pants_version: 1.1.0
pythonpath: [
'%(buildroot)s/build-support/plugins',
]
backend_packages: [
'testplugin',
]
However when I do ./pants setup
I get
Unknown goals: setup
Use `pants goals` to list goals.
Use `pants help` to get help.
If anyone can give me any insight into what I'm doing wrong that would be awesome 🙂fast-megabyte-33579
02/08/2017, 12:05 PMfast-megabyte-33579
02/08/2017, 12:05 PMvictorious-potato-60449
02/08/2017, 1:13 PMpurple-oil-45048
02/08/2017, 1:15 PMvictorious-potato-60449
02/08/2017, 1:19 PMvictorious-potato-60449
02/08/2017, 1:20 PMpurple-oil-45048
02/08/2017, 1:24 PMvictorious-potato-60449
02/08/2017, 1:24 PMvictorious-potato-60449
02/08/2017, 3:16 PM3rdparty/
python/
BUILD
requirements.txt
build-support/
plugins/
testplugin/
targets/
setup_terraform.py
BUILD
register.py
in 3rdparty/python/BUILD
I have
python_requirements()
in 3rdparty/python/requirements.txt
I have
appdirs==1.4.0
boto3==1.4.4
botocore==1.5.8
docutils==0.13.1
jmespath==0.9.1
packaging==16.8
pyparsing==2.1.10
python-dateutil==2.6.0
s3transfer==0.1.10
six==1.10.0
in build-support/plugins/testplugin/BUILD
I have
python_library(
dependencies = [
'3rdparty/python:boto3'
]
)
However pants is still not able to find a module named boto3
when I do import boto3
in my code. What am I missing?purple-oil-45048
02/08/2017, 3:21 PM./pants list ::
telling you?victorious-potato-60449
02/08/2017, 3:28 PMuser
02/08/2017, 3:38 PMvictorious-potato-60449
02/08/2017, 3:39 PMuser
02/08/2017, 3:40 PMnumerous-dog-63744
02/08/2017, 4:51 PMpants
in root of repo) to install additional requirements files when bootstrapping the python venv.high-advantage-47550
02/08/2017, 6:29 PMrough-minister-58256
02/08/2017, 6:43 PMrough-minister-58256
02/08/2017, 6:43 PMhigh-advantage-47550
02/08/2017, 6:46 PMrough-dog-96241
02/08/2017, 8:38 PMstraight-waiter-86090
02/08/2017, 9:08 PMnumerous-dog-63744
02/08/2017, 11:06 PMpurple-oil-45048
02/09/2017, 3:26 PMpants.backend.jvm.tasks.jar_task
and the JarTool
?
According to [1] all content of a dir will be added to the jar .. but when the JarTool
actually is executed [2], nothing happens
Finally, [3] seems to show that JarTool
is working as expected .. so I wonder what I am missing 💤
[1] https://github.com/pantsbuild/pants/blob/1e45167fab9a30f32207d025d91d2a071c8981fe/src/python/pants/backend/jvm/tasks/jar_task.py#L161-L161
[2] https://github.com/pantsbuild/pants/blob/1e45167fab9a30f32207d025d91d2a071c8981fe/src/python/pants/backend/jvm/tasks/jar_task.py#L361-L361
[3] https://github.com/pantsbuild/pants/blob/664429cb687ec9e81c92cb9c9d48115117d74691/tests/java/org/pantsbuild/tools/jar/JarBuilderTest.java#L422witty-crayon-22786
02/09/2017, 7:53 PMwitty-crayon-22786
02/09/2017, 7:53 PMexport
task exports classpaths, but not the node.js resolve directories