Skip to content

Commit

Permalink
Show version info for package being processed (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau authored Nov 12, 2023
2 parents ee39c0a + 46ddfff commit 595b0ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion papyri/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ def gen_main(
if limit_to is None:
limit_to = set()
target_module_name, conf, meta = load_configuration(target_file)

conf["early_error"] = fail_early
conf["fail_unseen_error"] = fail_unseen_error
config = Config(**conf, dry_run=dry_run, dummy_progress=dummy_progress)
Expand All @@ -534,7 +535,7 @@ def gen_main(
target_dir = Path(temp_dir.name)

g = Gen(dummy_progress=dummy_progress, config=config)
g.log.info("Will write data to %s", target_dir)

if debug:
g.log.setLevel(logging.DEBUG)
g.log.debug("Log level set to debug")
Expand All @@ -544,6 +545,10 @@ def gen_main(
relative_dir=Path(target_file).parent,
meta=meta,
)

g.log.info("Target package is %s-%s", target_module_name, g.version)
g.log.info("Will write data to %s", target_dir)

if examples:
g.collect_examples_out()
if api:
Expand Down

0 comments on commit 595b0ff

Please sign in to comment.