-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to pipenv for dependency management
### Description Standard requirements.txt files have a few issues with a third party library installed from source: 1. pip does not handle [relative paths](pypa/pip#8765) in a predictable way. It is relative to current working directory instead of relative to the path of the requirements.txt. As we cannot constrain that, it leads to unpredictable behavior. 2. `pip freeze` does not generate the correct output when there is a local library. ### Test plan 1. tried to deploying to elastic beanstalk, and it seems to work. 2. ran `make update-deps` 3. ran `make update-deps` with a local library and `Pipfile.lock` references that instead of just a version number.
- Loading branch information
Tony Tung
committed
Feb 3, 2021
1 parent
51772ca
commit cbfcecd
Showing
8 changed files
with
119 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,76 @@ | ||
# You should not edit this file directly. Instead, you should edit one of the following files (src/py/requirements-dev.txt.in src/py/requirements.txt.in) and run make src/py/requirements-dev.txt | ||
alembic==1.4.3 | ||
apipkg==1.5 | ||
# | ||
# These requirements were autogenerated by pipenv | ||
# To regenerate from the project's Pipfile, run: | ||
# | ||
# pipenv lock --requirements --dev | ||
# | ||
|
||
# Note: in pipenv 2020.x, "--dev" changed to emit both default and development | ||
# requirements. To emit only development requirements, pass "--dev-only". | ||
|
||
-i https://pypi.org/simple | ||
alembic==1.5.4 | ||
apipkg==1.5; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
appdirs==1.4.4 | ||
appnope==0.1.2 | ||
attrs==20.3.0 | ||
Authlib==0.15.3 | ||
appnope==0.1.2; sys_platform == 'darwin' | ||
attrs==20.3.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
authlib==0.15.3 | ||
backcall==0.2.0 | ||
black==20.8b1 | ||
certifi==2020.12.5 | ||
cffi==1.14.4 | ||
click==7.1.2 | ||
cryptography==3.3.1 | ||
chardet==4.0.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' | ||
click==7.1.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' | ||
cryptography==3.3.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5' | ||
decorator==4.4.2 | ||
execnet==1.7.1 | ||
execnet==1.8.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' | ||
flake8==3.8.4 | ||
Flask==1.1.2 | ||
importlib-metadata==3.4.0 | ||
flask==1.1.2 | ||
idna==2.10; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
importlib-metadata==3.4.0; python_version < '3.8' | ||
iniconfig==1.1.1 | ||
ipython==7.20.0 | ||
ipython-genutils==0.2.0 | ||
ipython==7.20.0 | ||
isort==5.7.0 | ||
itsdangerous==1.1.0 | ||
jedi==0.18.0 | ||
Jinja2==2.11.2 | ||
Mako==1.1.4 | ||
MarkupSafe==1.1.1 | ||
itsdangerous==1.1.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
jedi==0.18.0; python_version >= '3.6' | ||
jinja2==2.11.3; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' | ||
mako==1.1.4; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
markupsafe==1.1.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
mccabe==0.6.1 | ||
mypy==0.790 | ||
mypy-extensions==0.4.3 | ||
packaging==20.8 | ||
parso==0.8.1 | ||
mypy==0.800 | ||
packaging==20.9; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
parso==0.8.1; python_version >= '3.6' | ||
pathspec==0.8.1 | ||
pexpect==4.8.0 | ||
pexpect==4.8.0; sys_platform != 'win32' | ||
pickleshare==0.7.5 | ||
pluggy==0.13.1 | ||
prompt-toolkit==3.0.14 | ||
pluggy==0.13.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
prompt-toolkit==3.0.14; python_full_version >= '3.6.1' | ||
psycopg2-binary==2.8.6 | ||
ptyprocess==0.7.0 | ||
py==1.10.0 | ||
pycodestyle==2.6.0 | ||
pycparser==2.20 | ||
pyflakes==2.2.0 | ||
Pygments==2.7.4 | ||
pyparsing==2.4.7 | ||
pytest==6.2.1 | ||
pytest-forked==1.3.0 | ||
py==1.10.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
pycodestyle==2.6.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
pycparser==2.20; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
pyflakes==2.2.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
pygments==2.7.4; python_version >= '3.5' | ||
pyparsing==2.4.7; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
pytest-forked==1.3.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' | ||
pytest-xdist==2.2.0 | ||
python-dateutil==2.8.1 | ||
pytest==6.2.2 | ||
python-dateutil==2.8.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
python-dotenv==0.15.0 | ||
python-editor==1.0.4 | ||
regex==2020.11.13 | ||
six==1.15.0 | ||
SQLAlchemy==1.3.22 | ||
requests==2.25.1 | ||
six==1.15.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
sqlalchemy-stubs==0.4 | ||
toml==0.10.2 | ||
traitlets==5.0.5 | ||
sqlalchemy==1.3.23 | ||
toml==0.10.2; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
traitlets==5.0.5; python_version >= '3.7' | ||
typed-ast==1.4.2 | ||
typing-extensions==3.7.4.3 | ||
typing-extensions==3.7.4.3; python_version < '3.8' | ||
urllib3==1.26.3; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4' | ||
wcwidth==0.2.5 | ||
Werkzeug==1.0.1 | ||
zipp==3.4.0 | ||
werkzeug==1.0.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' | ||
zipp==3.4.0; python_version >= '3.6' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,27 @@ | ||
# You should not edit this file directly. Instead, you should edit one of the following files (src/py/requirements.txt.in) and run make src/py/requirements.txt | ||
Authlib==0.15.3 | ||
# | ||
# These requirements were autogenerated by pipenv | ||
# To regenerate from the project's Pipfile, run: | ||
# | ||
# pipenv lock --requirements | ||
# | ||
|
||
-i https://pypi.org/simple | ||
authlib==0.15.3 | ||
certifi==2020.12.5 | ||
cffi==1.14.4 | ||
chardet==3.0.4 | ||
click==7.1.2 | ||
cryptography==3.3.1 | ||
Flask==1.1.2 | ||
idna==2.10 | ||
itsdangerous==1.1.0 | ||
Jinja2==2.11.2 | ||
MarkupSafe==1.1.1 | ||
chardet==4.0.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' | ||
click==7.1.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' | ||
cryptography==3.3.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5' | ||
flask==1.1.2 | ||
idna==2.10; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
itsdangerous==1.1.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
jinja2==2.11.3; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' | ||
markupsafe==1.1.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
psycopg2-binary==2.8.6 | ||
pycparser==2.20 | ||
pycparser==2.20; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
python-dotenv==0.15.0 | ||
requests==2.24.0 | ||
six==1.15.0 | ||
SQLAlchemy==1.3.22 | ||
urllib3==1.25.11 | ||
Werkzeug==1.0.1 | ||
requests==2.25.1 | ||
six==1.15.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
sqlalchemy==1.3.23 | ||
urllib3==1.26.3; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4' | ||
werkzeug==1.0.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters