GithubHelp home page GithubHelp logo

notpushkin / vend Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 15 KB

Vendored dependencies for Python. No more Virtualenv bullshit! (Work in progress)

License: GNU General Public License v3.0

Python 100.00%
pip python packaging pipfile vendoring package-manager

vend's Introduction

vend

Work in progress

Vendored dependencies for Python. No more Virtualenv bullshit!

Usage:

$ vend init
Creating Pipfile...
Creating vendor dir (my_package/vendor)...
Done! Please add the following lines to your __init__.py:

  v_path = os.path.sep.join([
      os.path.dirname(os.path.realpath(__file__)), 'vendor'])
  if os.path.isdir(v_path):
      sys.path.append(v_path)

$ vend install some dependencies
$ python3.5 -m my_package  # no venv!

FAQ

Why would you do that?

I just got tired of all these incompatibilities between venvs (conda, pew/pipenv, vanilla virtualenv etc) and stuff.

Also, this allows you to rename and move and copy project and sync it over $YOUR_FAVOURITE_STORAGE_PROVIDER without breaking anything (i. e. virtualenvs).

Should I check my vendored dependencies into the VCS?
This is actually up to you. Kenneth Reitz does this (pipenv, requests), I personally just don't like it.

vend's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.