I'm about to start a project which I believe might become my first project to publish on Github and PyPi, and I'm trying to do this the 'correct' way, but I'm having trouble finding relevant info about this. Maybe the problem is rather that I'm finding too much to read, not sure what advice to follow.
I'm having some troubles understanding how I'm actually supposed to set this up. My understanding is that using Anaconda you are supposed to use conda create -p path/to/place/environment
as a replacement for virtualenv. Now, keep in mind that I have never used virtalenv before either, so the concept is a bit fresh for me, but essentially this is for keeping all the work wrapped up in its own bubble, making sure one keep all dependencies for oneself.
So, I'll start with conda create -p ~/projects/myproj
. In this folder I will later place the rest of the files of my project. Whenever I'm starting the development of the project, I'll have to make sure to run source activate ~/projects/myproj
, correct? From here on, I think I mainly have two questions:
I think this will do for now. If you have any other general advice about keeping the project clean and healthy from get-go, I'll gladly take them!
Your question 1 doesn't make much sense to me. conda create
creates the development packages. You should not put them in the same place as your code that your are developing.
As for 2, you just need a setup.py with the standard stuff ( http://python-packaging-user-guide.readthedocs.org/en/latest/ is probably as good of a guide as anything).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.