Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrzechonek/python-pip-pin
https://github.com/mrzechonek/python-pip-pin
Last synced: about 6 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/mrzechonek/python-pip-pin
- Owner: mrzechonek
- Created: 2020-05-24T19:22:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T12:04:05.000Z (almost 2 years ago)
- Last Synced: 2023-09-20T10:05:03.370Z (about 1 year ago)
- Language: Python
- Size: 20.5 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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](https://img.shields.io/pypi/v/pip-pin.svg)](https://pypi.python.org/pypi/pip-pin/)
[![PyPI status](https://img.shields.io/pypi/status/pip-pin.svg)](https://pypi.python.org/pypi/pip-pin/)
pip pin
=======Specify and pin dependencies from `setup.py`.
TL;DR;
```python
from setuptools import find_packages, setupsetup(
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)]```