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

RFE: packagize the metaconfiguration script #97

Open
mgedmin opened this issue May 10, 2021 · 2 comments
Open

RFE: packagize the metaconfiguration script #97

mgedmin opened this issue May 10, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@mgedmin
Copy link
Member

mgedmin commented May 10, 2021

Every now and then I want to run the script to update a package, and then I realize that I can't just cd zope.sendmail && run something, I have to juggle two working directories somehow, and then I give up.

I'd like to be able to pipx install -e ~/src/zopefoundation/meta and have a runnable zope-meta (better name suggestions welcome) script in my PATH.

@mgedmin
Copy link
Member Author

mgedmin commented Jun 16, 2021

TBH a simple wrapper script I could put in ~/bin/ would suffice for me, as long as I can cd ~/src/zopefoundation/something and run zope-meta --help

@mgedmin
Copy link
Member Author

mgedmin commented Jun 16, 2021

So I tried a wrapper like this:

#!/bin/sh
# Workaround for https://github.com/zopefoundation/meta/issues/97
config_base=$HOME/src/zopefoundation/meta/config
if ! test -x "$config_base"/bin/python; then
    (cd "$config_base" && python3 -m venv .)
    "$config_base"/bin/pip install -r "$config_base"/requirements.txt
fi
"$config_base"/bin/python "$config_base"/config-package.py "$@"

and running cd ~/src/zopefoundation/zope.interface && zope-meta . makes config-package.py think the package name is an empty string, with sad results.

mgedmin added a commit that referenced this issue Jun 16, 2021
mgedmin added a commit to mgedmin/scripts that referenced this issue Jun 16, 2021
This is the zopefoundation maintainer helper tool, see
zopefoundation/meta#97.

It needs zopefoundation/meta#110 to be useful.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant