summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-08-28 11:28:21 -0400
committerKali Kaneko <kali@leap.se>2017-09-01 17:18:20 -0400
commitffb51e40ae1ee1b0c0eeba4a9fe72ce3fec1f85a (patch)
tree1cee75a9daefa59a5ce2135315d0ce9d44424dc4
parentacdc0362cf76b88b1bfb353caeee0c0d18c8ce58 (diff)
[pkg] bitmask-js package
-rw-r--r--debian/bitmask-js.install1
-rw-r--r--debian/control17
-rw-r--r--debian/pydist-overrides1
-rwxr-xr-xdebian/rules5
-rw-r--r--docs/changelog.rst2
-rw-r--r--ui/Makefile4
-rw-r--r--ui/pydist/setup.py5
7 files changed, 25 insertions, 10 deletions
diff --git a/debian/bitmask-js.install b/debian/bitmask-js.install
new file mode 100644
index 00000000..b55ae2a0
--- /dev/null
+++ b/debian/bitmask-js.install
@@ -0,0 +1 @@
+ui/pydist/leap/bitmask_js/ /usr/lib/python2.7/dist-packages/leap
diff --git a/debian/control b/debian/control
index 2d5f7a1a..137c3b63 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,8 @@ Uploaders: LEAP automated build <sysdev@leap.se>
Homepage: https://bitmask.net
Standards-Version: 3.9.8
Build-Depends: debhelper (>= 9.0.0), dh-python, python, python-setuptools, pep8,
- pyqt5-dev-tools, python-docutils
+ pyqt5-dev-tools, python-docutils, docutils-common,
+ nodejs
# XXX we're not installing sphinx docs now. in zesty we'll need universe,
# sphinx has been moved there.
# python-sphinx
@@ -25,9 +26,6 @@ Depends:
python-zope.proxy,
python-twisted-core (>= 14.0.2),
python-leap-common,
-# This is a workaround to broken python-srp in wily.
-# We should remove libssl-dev when #7566 is solved
-# libssl-dev
Description: Provides the desktop client for LEAP
The LEAP project aims to secure everyday communication.
.
@@ -47,12 +45,21 @@ Description: Provides the desktop client for LEAP
.
This package provides the core daemon.
+Package: bitmask-js
+Architecture: all
+# Provides: leap.bitmask_js
+# this "provides" seems it's not parsed correctly
+Description: Desktop client to access LEAP Services.
+ The LEAP project aims to secure everyday communications.
+ .
+ This package provides the bitmask_js javascript library.
+
Package: bitmask-qt
Architecture: all
Depends: ${misc:Depends}, ${python:Depends},
python-pyqt5,
python-pyqt5.qtwebkit,
-# XXX this depends also on leap-bitmask-js
+ bitmask-js
Provides: leap.bitmask.gui
Description: Desktop client to access LEAP Services.
The LEAP project aims to secure everyday communications.
diff --git a/debian/pydist-overrides b/debian/pydist-overrides
index ac307c51..f362a232 100644
--- a/debian/pydist-overrides
+++ b/debian/pydist-overrides
@@ -1,3 +1,4 @@
leap.soledad soledad-client; PEP386
leap.common python-leap-common ; PEP386
python-leap.bitmask bitmask
+leap.bitmask_js bitmask-js
diff --git a/debian/rules b/debian/rules
index e1e632d5..31b32567 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,6 +14,7 @@ package=bitmask
PYTHON2=$(shell pyversions -vr)
# Prevent setuptools/distribute from accessing the internet.
+# but careful! node needs to unset this to get random crap from the intertubes.
export http_proxy = http://127.0.0.1:9
%:
@@ -28,10 +29,12 @@ override_dh_prep:
# this will re-generate the resource files and locales.
make -f ./Makefile qt-resources
+ # build the ui package
+ cd ui && make clean && make pydist-build
+
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
# run tests!
-#
#test-python%:
# xvfb-run ./run_tests.sh -x -N
diff --git a/docs/changelog.rst b/docs/changelog.rst
index 5888dcb2..f91ff8c8 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -31,6 +31,8 @@ Features
- Add ability to ssh into the bitmask daemon for debug
- Add a call to inject messages into a mailbox using the cli.
- New ``bitmask_chromium`` gui: launches Bitmask UI as a standalone chromium app if chromium is installed in your system
+- Add new debianization split, with separated bitmask components.
+- `#9029 <https://0xacab.org/leap/bitmask-dev/issues/9029>`_: add a package for the bitmask javascript UI.
Bugfixes
~~~~~~~~
diff --git a/ui/Makefile b/ui/Makefile
index 218192f2..423eff76 100644
--- a/ui/Makefile
+++ b/ui/Makefile
@@ -38,8 +38,8 @@ python-package-local: clean pydist-build
pydist-build: make-init
- npm install
- npm run build:production
+ http_proxy= /usr/bin/npm install
+ http_proxy= /usr/bin/npm run build:production
cd pydist && python setup.py bdist_wheel
pydist-upload:
diff --git a/ui/pydist/setup.py b/ui/pydist/setup.py
index 0592a9b8..8f6fd4cd 100644
--- a/ui/pydist/setup.py
+++ b/ui/pydist/setup.py
@@ -39,7 +39,7 @@ timestamp = time.strftime('%Y%m%d%H%M', now.timetuple())
setup(
name='leap.bitmask_js',
- version='0.1.%s' % timestamp,
+ version='0.2.%s' % timestamp,
description='Bitmask UI',
long_description=long_description,
author='LEAP Encrypted Access Project',
@@ -47,6 +47,7 @@ setup(
namespace_packages=['leap'],
url='http://leap.se',
packages=['leap.bitmask_js'],
+ zip_safe=False,
package_data={
'': ['public/*',
'public/css/*',
@@ -54,5 +55,5 @@ setup(
'public/img/*',
'public/js/*',
]
- }
+ },
)