If this function doesn't work, add the pew path to `/bin` using `sudo ln -s ~/.local/bin/pew /bin` `/home/username/.virtualenvs/projectname-venv/bin/python2.7`), ok, unselect all but the venv libs, ok, select the new venv, ok. To use the venv in eclipse PyDev, right click on your project, properties, interpreter, configure, new, add the venv path (e.g. */usr/bin/python3.6*), the command is equivalent to `pew new -p /path/to/python -a /path/to/the/project projectname-venv` This command line is equivalent to `pew new -a /path/to/the/project projectname-venv` Generate a venv linked to the project using Pew On Linux you need to install pandoc and pypandoc to handle markdown to reStructuredText convertion: You can create `wm-conf.json` in your workspace (or edit it if it already exists) to set default values: Or install your project on the current activated venv using `python setup.py install` Then you can subscribe to PyPi and upload your project using `python setup.py sdist upload`. You can add lines in the `MANIFEST.in`, choose *topics* in `setup.py`, add requirements. If there are no *\_\_init\_\_.py* files or an empty one, a version is added Each file will be edited according to the username, email, date given when executing the command lineģ. For instance, you can paste a different licence in the templates folder(default is the MIT licence)Ģ. Each file can be edited in the */path/to/the/lib/setup-templates*. ![]() This function will create some files (`LICENCE.txt`, `setup.py`, `requirements.txt`.). Then `cd` to your workspace and execute `touch wm-conf.json`.ġ. You also have to install () and () in order to use wm-pew: To manage an eclipse workspace this way, you need to set MyPythonWorkspace as the workspace and add all projects as external projects, then manage them with eclipse working sets to have the same tree organization. You need to create a blank `wm-conf.json` in the root folder to indicate which one is the main workspace. This lib works on a *workspace* which is a main folder within recursively projects and folders (which are sub-workspaces to gather projects). * You want to organize both dependencies between your own projects and with external libs using python virtual envs ![]() * You are familiar with pip / setuptools and python virtual envs
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |