[Pkg-privacy-commits] [onionshare] 70/256: Use a virtualenv, and put pip deps in requirements.txt

Ulrike Uhlig ulrike at moszumanska.debian.org
Fri May 26 12:53:16 UTC 2017


This is an automated email from the git hooks/post-receive script.

ulrike pushed a commit to branch master
in repository onionshare.

commit b7e9bed65aaaad3bbdcbb0301fe270e1f7522e63
Author: Micah Lee <micah at micahflee.com>
Date:   Sat Jan 7 18:17:02 2017 -0800

    Use a virtualenv, and put pip deps in requirements.txt
---
 BUILD.md                         | 15 ++++++++++++++-
 install/requirements-windows.txt |  2 ++
 install/requirements.txt         |  8 ++++++++
 3 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/BUILD.md b/BUILD.md
index ae84dd6..e3ada57 100644
--- a/BUILD.md
+++ b/BUILD.md
@@ -42,6 +42,14 @@ Install some dependencies using Homebrew:
 brew install python3 pyqt5 qt5
 ```
 
+Set up a virtual env (`sudo pip3 install virtualenv` if you don't have it installed):
+
+```sh
+$ virtualenv env
+$ . env/bin/activate
+(env) pip3 install -r install/requirements.txt
+```
+
 Install some dependencies using pip3:
 
 ```sh
@@ -77,7 +85,12 @@ Now you should have `dist/OnionShare.pkg`.
 
 Download the latest Python 3.6.x, 32-bit (x86) from https://www.python.org/downloads/. I downloaded `python-3.6.0.exe`. When installing it, make sure to check the "Add Python 3.6 to PATH" checkbox on the first page of the installer.
 
-Open a command prompt and install dependencies with pip: `pip install flask stem PyQt5 pyinstaller`
+Open a command prompt and install dependencies with pip:
+
+```cmd
+pip install -r install\requirements.txt
+pip install -r install\requirements-windows.txt
+```
 
 Download and install Qt5 from https://www.qt.io/download-open-source/. I downloaded `qt-unified-windows-x86-2.0.4-online.exe`. There's no need to login to a Qt account during installation. Make sure you install the latest Qt 5.x. I installed Qt 5.7.
 
diff --git a/install/requirements-windows.txt b/install/requirements-windows.txt
new file mode 100644
index 0000000..c7d3470
--- /dev/null
+++ b/install/requirements-windows.txt
@@ -0,0 +1,2 @@
+PyQt5==5.7.1
+sip==4.19
diff --git a/install/requirements.txt b/install/requirements.txt
new file mode 100644
index 0000000..4137c61
--- /dev/null
+++ b/install/requirements.txt
@@ -0,0 +1,8 @@
+click==6.7
+Flask==0.12
+itsdangerous==0.24
+Jinja2==2.9.2
+MarkupSafe==0.23
+PyInstaller==3.2
+stem==1.5.4
+Werkzeug==0.11.15

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionshare.git



More information about the Pkg-privacy-commits mailing list