Commit Graph

10 Commits

Author SHA1 Message Date
Alexei Frolov
b8aadc3c23 Expand Windows environment setup
- Write required environment variables to a batch file.
- Fix virtualenv bin path.
- Temporarily disable host_build and cargo steps on Windows.
- Update the python runner to work on Windows.
- Remove script_exectuable from the .gn file as it was added before
  Pigweed had an env_setup and was used to point to the correct system
  Python.

Change-Id: Ie4d0d0c5deb752c79ee5059dd812175775eae10c
2020-01-23 20:29:41 +00:00
Rob Mohr
03127af838 Install pyoxidizer using cipd cargo
Change-Id: I05368d5dd8786ae9b6cf858b9cebacebe9b0ee3f
2020-01-10 13:59:28 -08:00
Rob Mohr
32da3bad25 Use env_setup.py
Change-Id: Ie654d86d2267ad30170dbd845cf1cff456445bc0
2020-01-10 15:05:53 +00:00
Rob Mohr
9e1ee40f61 Move CIPD installation dir.
Change-Id: I5292aa513d1648761e72c9c56148d3c9a854493f
2019-12-11 11:23:09 -08:00
Rob Mohr
cacb877465 Adding env_setup folder and initial setup script.
Python 3 virtualenv setup and moves CIPD files from
https://pigweed.googlesource.com/infra/buildtools.

Change-Id: I0d0d8dfc2e80d9dadc80158201e71cda5c7a393b
2019-11-22 23:33:36 +00:00
Keir Mierle
43cd8634de pw_cmd: Convert 'pw' into Python module; tweaks
This reworks the 'pw' single-file script into a proper Python module
with a setup.py and appropriate main() handling. It also splits the
'watch' command into a separate file.

This is the first step in adding more 'pw' subcommands.

Other minor tweaks:
- Drop coloredlogs dependency in favor of simpler solution
- Make level log component 3 characters only
- Change colors to better separate command output from logs
- Make a new "logdemo" command to illustrate all log levels
- Make a new "help" command to show top-level help
- Put some space around command output for visual separation

New 'pw help' output
--------------------
% pw help

 ▒█████▄   █▓  ▄███▒  ▒█    ▒█ ░▓████▒ ░▓████▒ ▒▓████▄
  ▒█░  █░ ░█▒ ██▒ ▀█▒ ▒█░ █ ▒█  ▒█   ▀  ▒█   ▀  ▒█  ▀█▌
  ▒█▄▄▄█░ ░█▒ █▓░ ▄▄░ ▒█░ █ ▒█  ▒███    ▒███    ░█   █▌
  ▒█▀     ░█░ ▓█   █▓ ░█░ █ ▒█  ▒█   ▄  ▒█   ▄  ░█  ▄█▌
  ▒█      ░█░ ░▓███▀   ▒█▓▀▓█░ ░▓████▒ ░▓████▒ ▒▓████▀

usage: pw [-h] {help,watch,logdemo} ...

The Pigweed command line interface (CLI)

Example uses:
    pw watch     Watch for changes and re-build
    pw logdemo   Show log examples

positional arguments:
  {help,watch,logdemo}  pw subcommand to run
    help                Show the Pigweed CLI help
    watch               Watch files for changes
    logdemo             Show how logs look at different levels

optional arguments:
  -h, --help            show this help message and exit

Change-Id: I8730f0fdd7fef91c4c4a5ba40e7251b45ee38b83
2019-11-22 22:58:14 +00:00
Wyatt Hepler
a29c391311 Expand and organize .gitignore
Change-Id: Ic6efa8a33e71b96731ecf0ca5d6ab45baccf6d5a
2019-11-15 21:52:38 +00:00
Rob Mohr
443bb9d20e Initial presubmit.py script.
Change-Id: I4b22f34222078ed139fca747da3f5f1733951d63
2019-11-15 01:51:54 +00:00
Rob Mohr
be98ead12a Add bazel build system files.
Build everything with 'bazel build //...' and run all tests with
'bazel test //...'.

Change-Id: Ia912e999e33caa9b490002d639dc4c9a80034afc
2019-11-14 07:16:44 -08:00
Alexei Frolov
1a82c146ff
Initial Pigweed modules
This change adds Pigweed's first few (incomplete) modules: pw_build,
pw_status, and pw_toolchain. The main scaffolding for Pigweed's GN-based
build system is also included, with a root BUILDCONFIG and BUILD.gn file
defining a top-level modules build target.

Change-Id: I09599443d50696343d6c5b85853cb5cee3ce0026
2019-10-31 17:43:53 -07:00