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

Rename antsibull project to antsibull-build #632

Merged
merged 9 commits into from
Oct 16, 2024

Conversation

felixfontein
Copy link
Collaborator

@felixfontein felixfontein commented Oct 13, 2024

Rebased version of #629.

Closes #629.
Fixes #627.

@felixfontein felixfontein force-pushed the antsibull-stub branch 4 times, most recently from 07ab88e to f391773 Compare October 13, 2024 13:46
@felixfontein
Copy link
Collaborator Author

@gotmax23 I rebased your commits and added two more to rename the Python module accordingly, and to bump the stub's version to 0.67.0 since antsibull 0.66.0 is already there. Does this look good to you? I'd like to get this merged, the repo renamed, and antsibull-build 0.66.0 released soon so I can start working on antsibull-build again (ansible-community/ansible-build-data#478 (comment)).

@felixfontein felixfontein requested a review from gotmax23 October 13, 2024 14:21
@felixfontein
Copy link
Collaborator Author

antsibull-stub/pyproject.toml Outdated Show resolved Hide resolved

The filename can be a relative path separated with '/' to access subdirectories.
See https://docs.python.org/3/library/pkgutil.html#pkgutil.get_data for details.
"""
data = pkgutil.get_data("antsibull.data", filename)
data = pkgutil.get_data("antsibull_build.data", filename)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: we should switch this to use importlib.resources.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding to your note: similar code also exists in antsibull-docs :)

env:
# Since antsibull was renamed to antsibull-build, paths during the bytecompile test
# are too long and bytecompile fails with "OSError: AF_UNIX path too long".
COVERAGE_RELEASE_FORCE_TMPDIR: /tmp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Google returns no results for COVERAGE_RELEASE_FORCE_TMPDIR. How does it change pycoverage's behavior?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't. This is interpreted by noxfile.py.

noxfile.py Outdated
Comment on lines 147 to 148
if os.environ.get("COVERAGE_RELEASE_FORCE_TMPDIR"):
tmp_env["TMPDIR"] = os.environ["COVERAGE_RELEASE_FORCE_TMPDIR"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems redundant if COVERAGE_RELEASE_FORCE_TMPDIR=/tmp that's set in CI is already the default. Also, probably better not to use the COVERAGE_ namespace if the coverage program is not actually reading this envvar.

noxfile.py Outdated Show resolved Hide resolved
Copy link
Contributor

@gotmax23 gotmax23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, probably better not to use the COVERAGE_ namespace if the coverage program is not actually reading this envvar.

Consider changing this, but otherwise, LGTM.

noxfile.py Outdated Show resolved Hide resolved
Co-authored-by: Maxwell G <[email protected]>
@felixfontein felixfontein merged commit fcac3a2 into ansible-community:main Oct 16, 2024
9 checks passed
@gotmax23
Copy link
Contributor

Thank you!

@felixfontein felixfontein deleted the antsibull-stub branch October 16, 2024 19:09
@felixfontein
Copy link
Collaborator Author

@gotmax23 thanks for suggesting and preparing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider renaming antsibull to antsibull build
2 participants