socketubs / requirements
- среда, 23 марта 2016 г. в 02:12:35
Python
Python requirements made easy
☛ Python requirements made easy
Write your adorable requirements.txt
once and forget setup.py
hassles.
from setuptools import setup
from requirements import r
setup(
name='your-package',
version='0.0.1',
**r.requirements)
dependency_links
and tests_require
requirements.py
in your package directory2.7
, 3.3
, 3.4
, 3.5
requirements.py
release in your package root directorysetup.py
, like in previous exampleSome variables are configurable like that:
from requirements import r
r.requirements_path = 'reqs.txt'
r.tests_requirements_path = 'reqs-tests.txt'
License is MIT
.