Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show version info for package being processed #321

Merged
merged 1 commit into from
Nov 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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