Code Monkey home page Code Monkey logo

Comments (19)

abinashmeher999 avatar abinashmeher999 commented on July 3, 2024 1

@ayuhsya I see that you have committed the changes on the master branch itself. It is a bad practice to do so. Say you made all your changes to the master branch, you send the PR and let's assume didn't get merged because of some issues. Now you want to work on top of the latest master. Where do you pull that branch to? I hope you understand.

from pymediawiki.

ayuhsya avatar ayuhsya commented on July 3, 2024

I'll start with this, this seems easy. :|

from pymediawiki.

abinashmeher999 avatar abinashmeher999 commented on July 3, 2024

Great! Mention me if you run into any issues.

from pymediawiki.

ayuhsya avatar ayuhsya commented on July 3, 2024

@abinashmeher999 I have made the environment. Just to be sure that I did that correctly, can you tell me how does one commit a virtual environment?

Also, what next?

from pymediawiki.

abinashmeher999 avatar abinashmeher999 commented on July 3, 2024

This is the fun part. You can't commit all of the virtual environment. So it would be great if you could write a script(bash script would do) that creates the virtual environment and then prints the instructions to change into it.

Also you will need to freeze dependent packages into requirements.txt using pip freeze. Does that clarify?

from pymediawiki.

ayuhsya avatar ayuhsya commented on July 3, 2024

Yes I've already created the requirements.txt file. Actually, that was the only new addition to the project after creating virtual environment as all others are in .gitignore.
Also, by bash script I assume you mean a MakeFile, so I'll create the same.

from pymediawiki.

abinashmeher999 avatar abinashmeher999 commented on July 3, 2024

No not a makefile. A simple .sh file would do, with all the commands that you executed to create it. Also test the Python 3 environment once with the sample code.

from pymediawiki.

harshcrop avatar harshcrop commented on July 3, 2024

@abinashmeher999 can I setup virtual environment in python 2.7 I am very much familiar with this.

from pymediawiki.

abinashmeher999 avatar abinashmeher999 commented on July 3, 2024

@harshcrop We will be using Python 3 in the future because since we are dealing with wikipedia here and there will lots of unicode characters. And handling unicode is lot less painful in Python 3. Besides making a virtualenv for Python 3 is not very different from how you would do that for Python 2.7.

@ayuhsya Has already completed doing it. It would be pointless to the same thing again. Pull @ayuhsya's commits from his master into a new branch and see if you can complete the PR.

from pymediawiki.

harshcrop avatar harshcrop commented on July 3, 2024

@abinashmeher999 okay make new branch again can check his repo

from pymediawiki.

abinashmeher999 avatar abinashmeher999 commented on July 3, 2024

Sorry didn't get you.

from pymediawiki.

harshcrop avatar harshcrop commented on July 3, 2024

@abinashmeher999 I am asking that what I have to do now if this task is completed so, can I set up virtual environment for me in my repo and push into my branch and start working on new issue. That what I am asking you??

from pymediawiki.

abinashmeher999 avatar abinashmeher999 commented on July 3, 2024

Yeah you can go ahead. Try #3

from pymediawiki.

harshcrop avatar harshcrop commented on July 3, 2024

okay doing it

from pymediawiki.

ayuhsya avatar ayuhsya commented on July 3, 2024

@abinashmeher999 Yes I know that we don't work on the master branch. But this task wasn't that major so I didn't bother creating a new branch. 😐

from pymediawiki.

abinashmeher999 avatar abinashmeher999 commented on July 3, 2024

@ayuhsya You will realise that even a small task doesn't justify working on the master once you are on your second PR(not first) to this repo. Because the work needed then just to clean up is more than just creating a new branch. It's a small change, so no worries 😄. Better clean it up before it becomes a headache.

Maybe you can move those commits to a new branch. You can google it on how to do that. It's not uncommon to commit on your master by mistake.

from pymediawiki.

ayuhsya avatar ayuhsya commented on July 3, 2024

Okay, I'll do things on new branch now. But what do I do to send pull request/what else is left to do in this issue?

from pymediawiki.

abinashmeher999 avatar abinashmeher999 commented on July 3, 2024

@ayuhsya Have a look at this.

from pymediawiki.

abinashmeher999 avatar abinashmeher999 commented on July 3, 2024

Addressed in #11.

from pymediawiki.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.