Skip to content

mrzechonek/python-pip-pin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS IS AN EXPERIMENT. PLAY WITH IT, THINK ABOUT IT, DON'T USE IT ON PRODUCTION.

Let me know what you think.

PyPI version shields.io

PyPI status

pip pin

Specify and pin dependencies from setup.py.

TL;DR;

from setuptools import find_packages, setup

setup(
    name='meriadok',
    version='1.0.',
    packages=find_packages(),
    setup_requires=[
        'pip-pin',
    ],
    install_requires=[
        'flask',
    ],
    tests_require=[
        'pytest',
    ],
    develop_requires=[
        'black',
    ],
)

Non-pinned dependencies:

Just install whatever you want with pip.

Pinning

This will produce (or update) .pip-pin directory, which you are supposed to commit into the repo.

$ ./setup.py pin [(--install|--tests|--develop)]

Note that this will pin only things listed in a respective setup.py section. This means you can have additional stuff installed on your local virtualenv, and noone is going to care until you make it a dependency.

Pinned dependencies:

Installing pinned dependencies:

$ ./setup.py sync [(--install|--tests|--develop)]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages