Giter Club home page Giter Club logo

autovenv's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

autovenv's Issues

Document config file format ?

I prefer creating and activating virtualenvs only when there is a setup.py file at the top.

Going through the source code, I found I could do that by editing the ~/.local/share/autovenv/config file to have:

file_names:
- requirements.txt
- setup.py

Question is: is this OK and do we want to document this ?

Thanks for writing this tool by the way :)

api question

Nice project, thanks for making and sharing it!

Is it possible to manually invoke autovenv to create a venv? In the spirit of the unix philosophy of "do one thing and do it well", I think autovenv is trying to do too much with the automatic activation upon directory entry, and persistence of config information.

I would use this project if it worked something like this

> autovenv -r requirements.txt
# creates venv in ./venv, runs pip install -U pip, pipi install -r requirements.txt
venv has been created in venv
type `activate venv/bin/activate` to active it

or

> autovenv --python pythonX
# defaults to using requirements.txt, creates venv with pythonX rather than default python

As you can see, nothing persists between calls and all relevant settings are passed through the CLI.

Support Fish Shell

When sourcing autovenv.sh I get the following error:

$ source /usr/local/bin/autovenv.sh                                                                   
Unsupported use of '&&'. In fish, please use 'COMMAND; and COMMAND'.
/usr/local/bin/autovenv.sh (line 8):     builtin cd "$@" && do_autovenv
                                                          ^
from sourcing file /usr/local/bin/autovenv.sh
	called on standard input

source: Error while reading file '/usr/local/bin/autovenv.sh'

Will attempt some more debugging.

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.