regro / rever

Releaser of Versions
https://regro.github.io/rever-docs/
BSD 3-Clause "New" or "Revised" License
75 stars 33 forks source link

rever release failing on windows with permissions errors #204

Open sbillinge opened 4 years ago

sbillinge commented 4 years ago

The same release runs on a mac computer. Here is the stack dump:

Activity 'version_bump' has already been completed!
activity-start:changelog:starting activity changelog
activity-error:changelog:activity failed with execption:
Traceback (most recent call last):
  File "C:\Users\simon\Anaconda3\envs\bg\lib\site-packages\rever\activity.xsh", line 62, in __call__
    self.func(*args, **kwargs)
  File "C:\Users\simon\Anaconda3\envs\bg\lib\site-packages\rever\activities\changelog.xsh", line 101, in _func
    merged = self.merge_news(news=news, ignore=ignore)
  File "C:\Users\simon\Anaconda3\envs\bg\lib\site-packages\rever\activities\changelog.xsh", line 115, in merge_news
    with open(fname) as f:
PermissionError: [Errno 13] Permission denied: 'news\\rever'
rewinding to 0555dd229dcd6dc30400b7e4aedab685b401396d

Any thoughts?

sbillinge commented 4 years ago

@scopatz @CJ-Wright do you have thoughts on this? I can't release my pytentiostat project right now.

CJ-Wright commented 4 years ago

What are the permissions on that file/folder? Can you open it in a regular python session?

sbillinge commented 4 years ago

pycharm can read and write files in both news and in news\rever. Also I can open and read a file in the news\rever directory ok using ipython.

Another question....why is rever writing a rever directory into my news directory? Shouldn't it just be deleting all the rst files in there except the template?

CJ-Wright commented 4 years ago

I think it is trying to read the file not write it

sbillinge commented 4 years ago

python can read the file. But rever created an empty /rever directory in /news/ when I tried to run the release from my windows machine. @chiahaoliu successfully did a release with the same xsh file from a Linux box, so it seems that something in there is getting confused with the windows OS.

On Tue, Oct 8, 2019 at 5:42 PM Christopher J. Wright < notifications@github.com> wrote:

I think it is trying to read the file not write it

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/regro/rever/issues/204?email_source=notifications&email_token=ABAOWUO3NVHY2TSNAYHRWPLQNT5DPA5CNFSM4I5T4EH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAVWXJA#issuecomment-539716516, or mute the thread https://github.com/notifications/unsubscribe-auth/ABAOWUN2BTDRF74U4JKLXZLQNT5DPANCNFSM4I5T4EHQ .