-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #21: Add setup files to create Python package #28
Conversation
@piyush-jaiswal The details of testing the PR is given in the README.md in the Installation section. |
0fd56e7
to
7084b0e
Compare
README.md
Outdated
conda create -n cm_env python=3.6 pip | ||
source activate cm_env # activate cm_env for windows | ||
cd CorrectMe # The cloned repository directory | ||
python -m pip install --user --upgrade setuptools wheel |
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 can't figure out why we need to build wheels manually. Couldn't we simply use these commands instead - pip install <path_to_cloned_repo>
or python setup.py install
?
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.
Yes, you are right! My fault, did not do much digging on setup.py
. Updated the README, though I was not able to install using git directly. I guess I am having some syntax issues. Do you know any way to do it directly from git?
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 think this should work pip install git+https://github.com/nvs-abhilash/CorrectMe.git
.
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 doesn't seem to be working for me. Getting this error:
This seems to be a issue with PIP: pypa/pip#5271
Have you been facing similar issue or is it working for you?
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.
The git URL is for the master
branch, which doesn't have setup.py
yet, hence the error. You have to specify the branch in the URL if its not master. Try this pip install git+https://github.com/nvs-abhilash/CorrectMe.git@installation
.
Since we only support python3, we could also use the |
Should we include |
Add setup.py file and MANIFEST.in file for making installation possible. Modified README.md to incorporate the new style of install. Run `pip install .` to get the library installed. This fixed #21.
7084b0e
to
4755b3c
Compare
Not sure how to add |
aee810a
to
30f9642
Compare
README.md
Outdated
|
||
Installation using sources seems to work fine with version `kivy==1.10.1` | ||
To test your installation, move the `main.py` file from the repository to another location, and run it. |
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.
How can we modify this, now that main.py is part of the module itself.
Hey @nvs-abhilash , I included Currently The |
30f9642
to
e4381f4
Compare
Renamed |
Hey @nvs-abhilash, LGTM. Should I merge this? |
Sorry did not get a chance to test the installation properly. Will do it by tomorrow, and then let's merge it. |
Yeah sure. Take your time. I just thought you were waiting on me to merge this :) |
9333f9f
to
d26f234
Compare
Hi @piyush-jaiswal, finally got chance to look at it. Though the installation was working fine, but I was still confused on how to call Then after some research, I stumbled across this article: python-apps-the-right-way-entry_points-and-scripts. The above article showed how we can use python scripts as executable from the command prompt. And I guess this would allow us to call something like I request you to check if it is working for you or not, and suggest further improvements to the way I wrote it (maybe some naming choices), then let's close this. |
Yup, LGTM @nvs-abhilash 🍾. Everything seems to be working and this certainly seems the way to go. Could you kindly update the |
Done editing the docs. I think we should merge this branch now, as we have changed a lot of file structure from the master branch. |
Added setup.py file, and MANIFEST.in file to create a .whl file.
This helps in making the CorrectMe as a package.
Run
python setup.py sdist bdist_wheel
to get the wheel indist
directory.This fixed #21.