Comments (7)
Thank you @vchrombie for the detailed reply :)
Ah, this was not expected. The token should be sufficient.
This happens in combination with having forks with different repo names. I checked that for sortinghat no username/pwd is required.
I think I have figured out the problem.
Yes! Good catch! :)
I follow the PEP8 conventions which is already configured in PyCharm. Regarding the spaces, I simply added while coding and forgot to remove them.
Ehehe no worries, the current docstrings are OK, so feel free to decide.
For readability, I would suggest to organize the list here: https://github.com/vchrombie/grimoirelab-scripts/blob/master/glab-dev-env-setup.py#L37 with a repo per line (the decision is up to you).
Please, update the PR in mordred when you have time, thanks! :)
from grimoirelab-scripts.
Closing this as we got everything right as of now. 😄
from grimoirelab-scripts.
I have tested and some repos are empty when executing:
python3 creator.py -t xxx -c
The error thrown is:
origin https://github.com/valeriocos/grimoirelab-cereslib.git (fetch)
origin https://github.com/valeriocos/grimoirelab-cereslib.git (push)
upstream https://github.com/chaoss/grimoirelab-cereslib.git (fetch)
upstream https://github.com/chaoss/grimoirelab-cereslib.git (push)
[2020-04-02 10:49:41,688] - moving into /tmp/sources
[2020-04-02 10:49:42,188] - forking the repository grimoirelab-manuscripts to valeriocos
[2020-04-02 10:49:42,592] - cloning the forked repository grimoirelab-manuscripts
Username for 'https://github.com': valeriocos
Password for 'https://[email protected]':
[2020-04-02 10:49:48,604] - folder already exists and is not empty, cloning aborted
[2020-04-02 10:49:48,606] - folder not existing, creating new /tmp/sources/grimoirelab-manuscripts
[2020-04-02 10:49:48,606] - checking remotes
fatal: no es un repositorio git (ni ninguno de los directorios superiores): .git <-- it's not a git repo (nor any of the top directories)
[2020-04-02 10:49:48,618] - done!
I have also noticed that for each repo the script requests to insert username and password
Beyond this, the code looks great, well documented and organized. I have a minor question about the blank line between the docstring and the code of the functions. Which PEP conventions are you following?
from grimoirelab-scripts.
I have updated the script. 😄
from grimoirelab-scripts.
I would add a README later on to the gist. The usage as of now is
- Create a folder 'sources' with all the 15 GrimoireLab components forked, cloned and setting their upstream link using the GitHub API token xxxx:
$ python3 glab-dev-setup.py --create --token xxxx --source sources
- Update the existing forks present in the 'sources' folder with the latest changes using the GitHub API token xxxx:
$ python3 glab-dev-setup.py --update --token xxxx --source sources
from grimoirelab-scripts.
Thank you @vchrombie, I'm on it right now (sorry for the delay).
from grimoirelab-scripts.
Hi @valeriocos
Thanks for the reply.
I have also noticed that for each repo the script requests to insert username and password
Ah, this was not expected. The token should be sufficient.
I have tested and some repos are empty when executing:
python3 creator.py -t xxx -c
The error thrown is:
origin https://github.com/valeriocos/grimoirelab-cereslib.git (fetch) origin https://github.com/valeriocos/grimoirelab-cereslib.git (push) upstream https://github.com/chaoss/grimoirelab-cereslib.git (fetch) upstream https://github.com/chaoss/grimoirelab-cereslib.git (push) [2020-04-02 10:49:41,688] - moving into /tmp/sources [2020-04-02 10:49:42,188] - forking the repository grimoirelab-manuscripts to valeriocos [2020-04-02 10:49:42,592] - cloning the forked repository grimoirelab-manuscripts Username for 'https://github.com': valeriocos Password for 'https://[email protected]': [2020-04-02 10:49:48,604] - folder already exists and is not empty, cloning aborted [2020-04-02 10:49:48,606] - folder not existing, creating new /tmp/sources/grimoirelab-manuscripts [2020-04-02 10:49:48,606] - checking remotes fatal: no es un repositorio git (ni ninguno de los directorios superiores): .git <-- it's not a git repo (nor any of the top directories) [2020-04-02 10:49:48,618] - done!
I think I have figured out the problem.
The problem is with the repository names. The repository name varies with your forks. You might have forked the repo way back and you might be using them. But the repo names have changed now.
current repo: https://github.com/chaoss/grimoirelab-manuscripts
your fork: https://github.com/valeriocos/reports
current repo: https://github.com/chaoss/grimoirelab-elk
your fork: https://github.com/valeriocos/GrimoireELK
current repo: https://github.com/chaoss/grimoirelab-cereslib
your fork: https://github.com/valeriocos/grimoirelab-cereslib
If my guess is correct, you must be having sortinghat and cereslib cloned perfectly without any problem as they align with your forks.
The logic was implemented in that way. It takes the repo, forks it to your account (if you have it forked alredy, it will ignore) and clones it with the name in the script.
Here, it is trying to clone https://github.com/valeriocos/grimoirelab-manuscripts
but the actual url to your fork is https://github.com/valeriocos/reports
.
I hope the explanation was clear. Let me know if it is not.
Beyond this, the code looks great, well documented and organized.
Thanks!
I have a minor question about the blank line between the docstring and the code of the functions. Which PEP conventions are you following?
I follow the PEP8 conventions which is already configured in PyCharm. Regarding the spaces, I simply added while coding and forgot to remove them. 😅
from grimoirelab-scripts.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grimoirelab-scripts.