Merge pull request #2270 from ostcar/update_requirements
Update requirements
This commit is contained in:
commit
f34621f483
@ -86,15 +86,24 @@ def min_requirements(args=None):
|
|||||||
requirement file.
|
requirement file.
|
||||||
|
|
||||||
Uses requirements_production.txt by default.
|
Uses requirements_production.txt by default.
|
||||||
"""
|
|
||||||
|
|
||||||
|
The following line will install the version:
|
||||||
|
|
||||||
|
pip install $(python make min_requirements)
|
||||||
|
"""
|
||||||
import pip
|
import pip
|
||||||
|
|
||||||
def get_lowest_versions(requirements_file):
|
def get_lowest_versions(requirements_file):
|
||||||
for line in pip.req.parse_requirements(requirements_file, session=pip.download.PipSession()):
|
for line in pip.req.parse_requirements(requirements_file, session=pip.download.PipSession()):
|
||||||
yield '%s==%s' % (line.req.key, line.req.specs[0][1])
|
for specifier in line.req.specifier:
|
||||||
|
if specifier.operator == '>=':
|
||||||
|
min_version = specifier.version
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
raise ValueError('Not supported line {}'.format(line))
|
||||||
|
yield '%s==%s' % (line.req.name, min_version)
|
||||||
|
|
||||||
print('pip install %s' % ' '.join(get_lowest_versions(args.requirements)))
|
print(' '.join(get_lowest_versions(args.requirements)))
|
||||||
|
|
||||||
|
|
||||||
@command('clear',
|
@command('clear',
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
# Requirements for OpenSlides in production in alphabetical order
|
# Requirements for OpenSlides in production in alphabetical order
|
||||||
Django>=1.8,<1.10
|
Django>=1.8,<1.11,!=1.10.0
|
||||||
beautifulsoup4>=4.5,<4.6
|
beautifulsoup4>=4.5,<4.6
|
||||||
channels>=0.15,<1.0
|
channels>=0.15,<1.0
|
||||||
djangorestframework>=3.2.0,<3.4.0
|
djangorestframework>=3.2.0,<3.5
|
||||||
html5lib>=0.9,<1.0
|
html5lib>=0.99,<1.0
|
||||||
jsonfield>=0.9.19,<1.1
|
jsonfield>=0.9.19,<1.1
|
||||||
natsort>=3.2,<4.1
|
natsort>=3.2,<5.1
|
||||||
PyPDF2>=1.25.0,<1.26
|
PyPDF2>=1.25.0,<1.27
|
||||||
reportlab>=3.0,<3.4
|
reportlab>=3.0,<3.4
|
||||||
roman>=2.0,<2.1
|
roman>=2.0,<2.1
|
||||||
setuptools>=18.5,<26.0
|
setuptools>=18.5,<26.0
|
||||||
sockjs-tornado>=1.0.1,<1.1
|
|
||||||
Whoosh>=2.7.0,<2.8
|
Whoosh>=2.7.0,<2.8
|
||||||
|
Loading…
Reference in New Issue
Block a user