Open asmeurer opened 4 years ago
Does rever check
work?
I used gh-releases last week, so I am wondering what is going on here
rever check
passed for ghrelease. I ended up converting the tag into a release and uploading the tarball manually.
what is the output of conda list
for the environment that rever is installed in?
Also I just ran a ghrelease activity with cionda-suggest-conda-forge and it worked, so it seems like maybe this is related to the conda activity problem?
If you change the activity to run conda_init()
first, it reproduces right away. For some reason, after running it, capturing conda output doesn't work (it just goes to the terminal and $() gets the empty string). If I try doing this in a xonsh script or in a xonsh shell it captures just fine. Something rever is doing breaks the capturing after running conda_init().
This rever.xsh reproduces the issue
import sys
from types import ModuleType
from rever.activity import activity
def conda_init():
"""Initializes conda, if needed. This may safely be called many times."""
if "xontrib.conda" in sys.modules:
return
mod = ModuleType("xontrib.conda",
"Autogenerated from $(conda shell.xonsh hook)")
__xonsh__.execer.exec(
$(conda shell.xonsh hook),
glbs=mod.__dict__,
filename="$(conda shell.xonsh hook)"
)
sys.modules["xontrib.conda"] = mod
@activity
def test():
conda_init()
print(repr($(conda list)))
$ACTIVITIES = ['test']
I am seeing the ghrelease issues on xonsh now too
I recently used the ghrelease activity and it works well for me. Not sure this is related but I received a deprecation notice from GH saying the auth I used with ever is going to be deprecated. Are you aware of that?
Issue opened at https://github.com/regro/rever/issues/239
Oof No I did not get that message. Do you have the text of the message? I just did a ghrelease and did not see that
@scopatz I Got a failing activity recently. I think GH has deprecated username/password authentication (github3.api.authorize)
github.xsh:91: DeprecationWarning: The anonymous API function `github3.api.authorize` is deprecated. Use `GitHub.authorize` instead.
two_factor_callback=two_factor)
Unable to login to GitHub
401 Bad credentials. The API can't be accessed using username/password authentication.
Please create a personal access token to access this endpoint: http://github.com/settings/tokens
I'm not really sure why, but gh-release fails with
on the first attempt and
on the second attempt. But the release appears to be there on GitHub. Maybe pushing the tag already creates the release?