Added virtual env for python building
This commit is contained in:
parent
c454f806a0
commit
f056858134
4 changed files with 20 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -15,3 +15,6 @@ firefox/package.json
|
||||||
build/
|
build/
|
||||||
node_modules/
|
node_modules/
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
|
||||||
|
# Virtualenv
|
||||||
|
env/
|
||||||
|
|
11
build.sh
Normal file
11
build.sh
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# python
|
||||||
|
pyvenv-3.4 env
|
||||||
|
env/bin/pip install -r requirements.txt
|
||||||
|
|
||||||
|
# npm
|
||||||
|
npm install
|
||||||
|
npm run build
|
|
@ -17,7 +17,7 @@
|
||||||
"build-data-files": "python3 firefox/build-package.py && python3 chrome/build-manifest.py",
|
"build-data-files": "python3 firefox/build-package.py && python3 chrome/build-manifest.py",
|
||||||
"distribute": "rm -rf firefox/data/* chrome/data/* && cp -rf build/* firefox/data/ && cp -rf build/* chrome/data/",
|
"distribute": "rm -rf firefox/data/* chrome/data/* && cp -rf build/* firefox/data/ && cp -rf build/* chrome/data/",
|
||||||
"build": "npm run create-dirs && npm run build-assets && npm run build-js && npm run distribute && npm run build-data-files",
|
"build": "npm run create-dirs && npm run build-assets && npm run build-js && npm run distribute && npm run build-data-files",
|
||||||
"clean": "rm -rf firefox/data chrome/data node_modules/ build/"
|
"clean": "rm -rf firefox/data chrome/data node_modules/ build/ env/"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
5
requirements.txt
Normal file
5
requirements.txt
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
coverage==3.7.1
|
||||||
|
flake8==2.4.1
|
||||||
|
lxml==3.4.4
|
||||||
|
pep8==1.5.7
|
||||||
|
requests==2.7.0
|
Reference in a new issue