|
35 | 35 | ) |
36 | 36 | from pysetup.md_doc_paths import get_md_doc_paths |
37 | 37 |
|
| 38 | +# Ignore '1.5.0-alpha.*' to '1.5.0a*' messages. |
| 39 | +import warnings |
| 40 | +warnings.filterwarnings('ignore', message='Normalizing .* to .*') |
| 41 | + |
| 42 | +# Ignore 'running' and 'creating' messages |
| 43 | +import logging |
| 44 | +class PyspecFilter(logging.Filter): |
| 45 | + def filter(self, record): |
| 46 | + return not record.getMessage().startswith(('running ', 'creating ')) |
| 47 | +logging.getLogger().addFilter(PyspecFilter()) |
38 | 48 |
|
39 | 49 | # NOTE: have to programmatically include third-party dependencies in `setup.py`. |
40 | 50 | def installPackage(package: str): |
@@ -394,8 +404,6 @@ def initialize_options(self): |
394 | 404 | def finalize_options(self): |
395 | 405 | """Post-process options.""" |
396 | 406 | if len(self.md_doc_paths) == 0: |
397 | | - print("no paths were specified, using default markdown file paths for pyspec" |
398 | | - " build (spec fork: %s)" % self.spec_fork) |
399 | 407 | self.md_doc_paths = get_md_doc_paths(self.spec_fork) |
400 | 408 | if len(self.md_doc_paths) == 0: |
401 | 409 | raise Exception('no markdown files specified, and spec fork "%s" is unknown', self.spec_fork) |
@@ -428,6 +436,7 @@ def run(self): |
428 | 436 | if not self.dry_run: |
429 | 437 | dir_util.mkpath(self.out_dir) |
430 | 438 |
|
| 439 | + print(f'Building pyspec: {self.spec_fork}') |
431 | 440 | for (name, preset_paths, config_path) in self.parsed_build_targets: |
432 | 441 | spec_str = build_spec( |
433 | 442 | spec_builders[self.spec_fork].fork, |
@@ -492,7 +501,6 @@ def run_pyspec_cmd(self, spec_fork: str, **opts): |
492 | 501 | self.run_command('pyspec') |
493 | 502 |
|
494 | 503 | def run(self): |
495 | | - print("running build_py command") |
496 | 504 | for spec_fork in spec_builders: |
497 | 505 | self.run_pyspec_cmd(spec_fork=spec_fork) |
498 | 506 |
|
|
0 commit comments