New Pants plugin template using cookiecutter: <htt...
# plugins
c
New Pants plugin template using cookiecutter: https://github.com/kaos/cookiecutter-pants-plugin
πŸ‘€ 2
πŸ™ 2
It’s very bare bones and basic atm, but should setup a new plugin project fairly easy to get going:
Copy code
$ cookiecutter gh:kaos/cookiecutter-pants-plugin
project_name [My Pantsbuild Plugin]: Pants Query Plugin
project_slug [pants-query-plugin]: 
package_name [pants_query]: 
pants_version [2.12.0.dev1]: 
project_version [0.0.1]: 
interpreter_constraints [>=3.8, <3.9]: 
Select enable_anonymous_telemetry:
1 - true
2 - false
Choose from 1, 2 [1]: 
twine_publish_repo [@pypi]: 
 * Downloading pants bootstrap script...
 * Smoke test...
13:30:30.17 [INFO] Initializing scheduler...
13:30:30.38 [INFO] Scheduler initialized.
2.12.0.dev1
 * Creating initial pants.lock...
13:30:55.26 [INFO] Completed: Generate lockfile for 3rdparty-deps
13:30:55.27 [INFO] Wrote lockfile for the resolve `3rdparty-deps` to pants.lock

 == All Done! ==

$ tree pants-query-plugin/
pants-query-plugin/
β”œβ”€β”€ 3rdparty
β”‚   β”œβ”€β”€ BUILD
β”‚   └── requirements.txt
β”œβ”€β”€ BUILD
β”œβ”€β”€ README.md
β”œβ”€β”€ mypy.ini
β”œβ”€β”€ pants
β”œβ”€β”€ pants.lock
β”œβ”€β”€ pants.toml
β”œβ”€β”€ pyproject.toml
└── src
    └── pants_query
        β”œβ”€β”€ BUILD
        β”œβ”€β”€ example
        β”‚   β”œβ”€β”€ BUILD
        β”‚   β”œβ”€β”€ goal.py
        β”‚   β”œβ”€β”€ rule.py
        β”‚   β”œβ”€β”€ rule_test.py
        β”‚   └── target_types.py
        └── register.py

4 directories, 16 files