GithubHelp home page GithubHelp logo

vip's Issues

Integration test required

An integration test is required that will test vip.main behavior in an end-user maner:

cd some-directory
echo 'some-package` > requirements.txt
...
vip --init
vip pip install
vip pip freeze > pckgs.txt

assert 'some-package' in pckgs.txt

Implement updating requirements.txt

There are two options:

  • automatically update requirements.txt file after each (un)install command
  • let the developer to update the file and call vip --update each time (s)he does this

In favor of (1) is the reason to keep everything simple, but explicit is better than implicit.

Option (2) is explicit which is good. In addition to (2), requirements.txt.lock can be created in order to list all used packages (similar how bundler does in Ruby).

Think of a better interface

Since I used vip only to install (update, or remove) libraries and run something using installed Python, interface can be on even higher level than it is now.

Example:
vip install - create a virtualenv and update its state - install, update, remove libraries listed in requirements.txt file
vip test [filename] - to run tests, using nose, py.test, unittest2 or simply executing python interpreter on given files
vip locate [binary] - to locate binaries inside the virtualenv underneath

Hangs on Windows

Hey,

Noticed an issue where trying to initialize a new vip environment on Windows would result in the script hanging forever. It appears to be caused by line 59 in the vip/core.py file. Making the following change to that line seems to make it work fine on Windows.

    while directory != "/" or head:

to

    while (directory != "/" and directory[1:] != ':\\' and directory[1:] != ':/') or head:

Was debating forking and doing a pull request, but I figured this would be easier.

Sometimes SIGINT is not propagated correctly

I tried to install some package using vip pip install package and hit Control-C.

After a while I saw:

Operation cancelled by user
Storing complete log in ~/.pip/pip.log

which means that signal was not propagated correctly.

Add support for --system-site-packages flag for virtualenv

I found myself in a situation when I had non pip dependency, installed system-wide (pynotify in this example).

In this case I had to run virtualenv --system-site-packages .vip command manually. In this case it is obvious that some flags should be propagated to virtualenv command. Maybe all?

Smart install command

Install (now --ini) can be smart enough to install only those requirement files that matches interpreter version, eg:

for Python 2.6 install can install *requirements.txt, *requirements.2.txt and *requirements.26.txt.

In that case one can create a set of requirement files, each for certain interpreter version.

Also install could update environment to reflect changes in those files, e.g uninstall removed dependencies.

Status code is not propagated

Exit status of executed command is not propagated too the shell, e.g. when running vip pep8 and having some errors, status code is still 0.

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.