pants-pyspark: A Demo for PySpark based monorepo slides
- User Friendly
- Fast
- Reproducible
- cat: smart dependency inference (
rikai==0.1.13
is not required) - dog: demo usage of
customize_tests
- lion: demo usage of
customize_sources
- tiger: demo usage of
runtime_deps
Just use ./pants
bootstrap script and make sure that python3
is available. If python3
is not available,
just use homebrew
to install python3 or use conda
to create a python3 environment. Please use Python >=3.8.
You could use the following command line to test installation of pants:
./pants version
See #8
# run single unit tests
./pants test tests/tubi/cat/tail_test.py -- -s
# run all unit tests
./pants test :: -- -s
# test only the changed part
./pants --changed-since=main test
# list all packages
bin/package
# package for tubi-cat
bin/package tubi-cat
./pants export ::
For PyCharm, just select the Python interpreter. For example,
dist/export/python/virtualenvs/cat/3.8.10/bin/python