GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — BLD: Use strict bounds with requirements_dev · wangtingpython/zipline@be8cf93

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • setup.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎setup.py‎

Copy file name to clipboardExpand all lines: setup.py
+6-4Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,18 @@ def _filter_requirements(lines_iter):
118118
yield requirement
119119

120120

121-
def read_requirements(path, convert_eq_to_lte=True):
121+
def read_requirements(path, strict_bounds=False):
122122
"""
123123
Read a requirements.txt file, expressed as a path relative to Zipline root.
124124
125-
Returns requirements with the pinned versions as lower bounds.
125+
Returns requirements with the pinned versions as lower bounds
126+
if `strict_bounds` is falsey.
126127
"""
127128
real_path = join(dirname(abspath(__file__)), path)
128129
with open(real_path) as f:
129130
reqs = _filter_requirements(f.readlines())
130131

131-
if not convert_eq_to_lte:
132+
if strict_bounds:
132133
return list(reqs)
133134
else:
134135
return [req.replace('==', '>=') for req in reqs]
@@ -139,7 +140,8 @@ def install_requires():
139140

140141

141142
def extras_requires():
142-
dev_reqs = read_requirements('etc/requirements_dev.txt')
143+
dev_reqs = read_requirements('etc/requirements_dev.txt',
144+
strict_bounds=True)
143145
talib_reqs = ['TA-Lib==0.4.9']
144146
return {
145147
'dev': dev_reqs,

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.