From 107eb8788347f564e43877267207d0c84462e2cf Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Thu, 1 Sep 2016 02:01:46 -0400 Subject: [pkg] package pre-compiled www data in a python module --- www/__init__.py | 5 ----- www/notes-python.txt | 7 +++++++ www/setup.py | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 5 deletions(-) delete mode 100644 www/__init__.py create mode 100644 www/notes-python.txt create mode 100644 www/setup.py diff --git a/www/__init__.py b/www/__init__.py deleted file mode 100644 index d407605..0000000 --- a/www/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -try: - __import__('pkg_resources').declare_namespace(__name__) -except ImportError: - from pkgutil import extend_path - __path__ = extend_path(__path__, __name__) diff --git a/www/notes-python.txt b/www/notes-python.txt new file mode 100644 index 0000000..d454558 --- /dev/null +++ b/www/notes-python.txt @@ -0,0 +1,7 @@ + + +leap.bitmask-www: this package contains the already compiled static element for +the web-ui of bitmask. + +If you want to develop for this UI, please checkout the repo and +follow the instructions in the www/README.md file. diff --git a/www/setup.py b/www/setup.py new file mode 100644 index 0000000..860d0aa --- /dev/null +++ b/www/setup.py @@ -0,0 +1,42 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# setup.py +# Copyright (C) 2016 LEAP Encryption Acess Project +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +""" +Setup file for leap.bitmask-www +""" +from setuptools import setup + +import datetime +import time + +now = datetime.datetime.now() +timestamp = time.strftime('%Y%m%d', now.timetuple()) + +setup( + name='leap.bitmask-www', + version='0.1.%s' % timestamp, + description='Bitmask html/js UI', + long_description=open('notes-python.txt').read(), + author='LEAP Encrypted Access Project', + author_email='info@leap.se', + url='http://leap.se', + namespace_packages=['leap'], + packages=['leap.bitmask-www'], + package_data={ + '': ['public/*', ] + } +) -- cgit v1.2.3