-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlock.sh
executable file
·29 lines (28 loc) · 1.06 KB
/
lock.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash -e
# Generates pip dependency files for build and test purposes
# NOTE: The generated requirements files are named in a weird
# way here because we are trying to prevent requires.io
# from picking up test dependencies and reporting on them
# to our users. It seems to pick up quite a variety of
# file patterns, recursively within the repo. *.reqs
# seems to be a suitable exception
# NOTE: The requirements files generated by this script are
# referenced by the tox.ini config file at build time.
# Any changes to this pattern will need to be reflected
# there as well.
rm -rf src/*.egg-info
rm -rf build
rm -rf dist
virtualenv -p `which python3` tmp
source ./tmp/bin/activate
pip install -e ".[dev]"
pip freeze --exclude-editable > ./requirements.txt
deactivate
rm -rf tmp
# Update dependencies specific for ReadTheDocs
virtualenv -p `which python3` tmp
source ./tmp/bin/activate
pip install sphinx sphinxcontrib-apidoc sphinx-rtd-theme sphinx-qt-documentation
pip freeze > ./docs/requirements.txt
deactivate
rm -rf tmp