-
Notifications
You must be signed in to change notification settings - Fork 103
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
Data packaging and Directory Restructuring #6
Conversation
…s to data, and made data.py a module that loads the data, to keep code working without API change. Added pandas_ply and six to requirements, to remove vendor code from python package as well.
This sounds like a good idea to me. Sorry about the data issue with pip, I was not aware of that. I probably won't be able to merge this in until later on this evening or tomorrow morning, but will get to it as soon as I can. I am going to change the target branch to develop from master to make sure everything plays nice with the changes, then I'll merge it into the master branch as the next version. |
OK everything is checked out and merged into master branch as well as develop. Thanks for doing this! |
Hey, that's great! Glad I could contribute--this is a really cool Best wishes, Nick On 2016-10-11 05:17, Kiefer Katovich wrote:
|
Hi. Cool package indeed! I tried installing with
and still got the error you describe above when trying to import ( |
Okay, good to know; it sounds like the data isn't being packaged correctly. Really, diamonds.csv shouldn't be read during the import in the first place, so maybe instead of improving the packaging, it would make more sense to change that aspect. Meanwhile, @bmwilly could you please try downloading the package using git and installing it via the setup.py package? I just tried it on my work computer and it worked out fine. If you're not familiar with the process, the commands would look something like this::
|
@neuroneuro15 yes, that works! |
Hi all, Sorry to hear this is not working via pip. I try and figure out how to fix On Fri, Oct 21, 2016 at 8:28 AM, Brandon Williams notifications@github.com
|
I think the github version was working but not the pip version. My re-org of the files was a fix for pip. |
Cool package! However, when I "pip installed" dfply, the diamonds.csv flie didn't download as well, and I got import errors, since the file gets read in as part of the package load process. I took a look at the packaging, and tried to help out by making some changes that would make it more pip-compatible and would (I hope--I'm still a newbie at packaging, and this is actually my first pull request ever!) simplify the growth of the project by making "six" and "pandas_ply" explicit global requirements that could be downloaded during installation.
This pull request:
Moves data out of python package,
added setup.py and MANIFEST.in links to data
made data.py a module that loads the data, to keep code working without API change.
Added pandas_ply and six to requirements, to remove vendor code from python package as well.
I'm sorry that I made all these into a single commit (stupid, I know). If there are any fixes you'd like me to make, please let me know!