-
-
Notifications
You must be signed in to change notification settings - Fork 34
Conversation
``.travis.yml`` and ``appveyor.yml`` files of astropy packages for the | ||
[Travis](https://travis-ci.org) and [AppVeyor](https://www.appveyor.com/) | ||
services respectively. | ||
``.travis.yml`` file of Astropy packages for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not just astropy any more, but a more broad range
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any suggested wording? 😸
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not picky on words, and was just nitpicking. In fact, lets get this merged now rather than have another CI round.
If we get bored, we can always come back and reword the readme here and possibly elsewhere, too, as it got written in a very organic way.
A more useful thing would be through to let the batchpr/issue bot loose on all the packages still using the ci-helpers appveyor, and let them know that things got evolved, they better evolve, too.
Co-authored-by: Brigitta Sipőcz <b.sipocz@gmail.com>
Thanks @pllim! |
Thanks @pllim! Maybe it would be worth emailing astropy-dev as a heads up? |
Thanks for the review, you two! |
Did a quick search and got 181 results. 😲 https://github.com/search?q=%22astropy%2Fci-helpers%22+in%3Afile+filename%3Aappveyor.yml |
I opened issues to the repos I could find but sure I have missed some. Ah, well. Getting the repo list was a bit tricky, as I couldn't get PyGithub, github3.py, or GitHub v4 GraphQL to work. This worked though (max is 100 per page, so needed 2 pages):
176 repos listed after removing a few duplicates. 168 repos left after ignoring forks and archived ones. I did something like this (not the most polished but good enough for one-time use). Cannot trust the search results completely, so have to do additional checks. from time import sleep
# flist is a list of Repository objects from PyGithub
# helper is the issue opener from batchpr
for repo in flist:
sleep(1)
try:
contents = repo.get_contents('appveyor.yml') # Had to repeat this for .appveyor.yml, manually caught one Appveyor.yml
except Exception as e:
print(repo.full_name, str(e))
continue
lines = contents.decoded_content.decode('utf-8').split('\n')
found = False
for line in lines:
if 'astropy/ci-helpers' in line and not line.startswith('#'):
found = True
break
if not found:
print(repo.full_name, 'no astropy/ci-helpers in file')
continue
print('*********', repo.full_name)
helper.run(repo.full_name) |
Thank you @pllim! I have the feeling we had a solution to find these repos, but even if it's true it's certainly outdated by now. |
As @astrofrog suggested in #462 (comment) .
Fix #454, close #393, close #350, close #346
Out of scope: Update outdated Travis instructions.