mirror of
https://github.com/OpenMTC/OpenMTC.git
synced 2024-12-29 17:28:58 +00:00
6cbb2e6144
* changes starting with python3 explicit * removes python modules which are not available for python3 * exchanges fyzz query parsing with rdflib functionality * fixes interop tests * replaces reduce with for loop in nodb driver * simple python2 -> python3 conversions * adds changes for handling different string handling in python3 * test stretch building with travis * installing python-setuptools in docker * installing python-setuptools in docker * changing python2 to python3 in docker makefiles * changing python2 to python3 and some other test changes * push docker only in master branche * running version of openmtc * fix some port problems * porting path library completly now * restoring travis.yml * testing new travis.yml * add sudo * updating travis OS from trusty to xenial * upgrade pip before * show running docker logs * show more logs * for debugging * showlogs of docker after failure * testing new travis.yml * finish travis.yml
76 lines
2.1 KiB
Python
Executable File
76 lines
2.1 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
from setuptools import setup
|
|
from distutils.core import setup
|
|
from utils import get_packages, OpenMTCSdist
|
|
|
|
# name and version
|
|
NAME = "sdk"
|
|
SETUP_NAME = "openmtc-" + NAME
|
|
SETUP_VERSION = "1.2.0"
|
|
SETUP_DESCRIPTION = "The OpenMTC Python SDK"
|
|
|
|
# meta
|
|
SETUP_AUTHOR = "Konrad Campowsky"
|
|
SETUP_AUTHOR_EMAIL = "konrad.campowsky@fraunhofer.fokus.de"
|
|
SETUP_URL = "http://www.openmtc.org"
|
|
SETUP_LICENSE = "Fraunhofer FOKUS proprietary"
|
|
|
|
# requirements
|
|
SETUP_REQUIRES = [
|
|
"urllib3", "gevent (>=1.0)", "iso8601 (>=0.1.5)", "werkzeug (>=0.9)",
|
|
"blist", "simplejson", "ujson", "python_socketio", "gevent_websocket",
|
|
"flask", "enum34", "geventhttpclient"
|
|
]
|
|
SETUP_INSTALL_REQUIRES = [
|
|
"urllib3", "gevent >= 1.0", "iso8601 >= 0.1.5", "werkzeug >= 0.9",
|
|
"blist", "simplejson", "ujson", "python_socketio", "gevent_websocket",
|
|
"flask", "enum34", "geventhttpclient"
|
|
]
|
|
|
|
# packages
|
|
PACKAGES = ["aplus", "openmtc", "openmtc_onem2m", "futile", "openmtc_app"]
|
|
PACKAGE_DIR = {
|
|
"": "common/openmtc/lib",
|
|
"openmtc": "common/openmtc/src/openmtc",
|
|
"openmtc_onem2m": "common/openmtc-onem2m/src/openmtc_onem2m",
|
|
"openmtc_app": "openmtc-app/src/openmtc_app",
|
|
"futile": "futile/src/futile"
|
|
}
|
|
all_packages = []
|
|
for package in PACKAGES:
|
|
all_packages.extend(get_packages(package, PACKAGE_DIR))
|
|
|
|
# scripts
|
|
SETUP_SCRIPTS = []
|
|
|
|
# package data
|
|
PACKAGE_DATA = {NAME: []}
|
|
|
|
# data files
|
|
DATA_FILES = []
|
|
|
|
# cmd class
|
|
CMD_CLASS = {'sdist': OpenMTCSdist}
|
|
|
|
if __name__ == "__main__":
|
|
############################################################################
|
|
# setup
|
|
setup(name=SETUP_NAME,
|
|
version=SETUP_VERSION,
|
|
description=SETUP_DESCRIPTION,
|
|
author=SETUP_AUTHOR,
|
|
author_email=SETUP_AUTHOR_EMAIL,
|
|
url=SETUP_URL,
|
|
license=SETUP_LICENSE,
|
|
requires=SETUP_REQUIRES,
|
|
install_requires=SETUP_INSTALL_REQUIRES,
|
|
package_dir=PACKAGE_DIR,
|
|
packages=all_packages,
|
|
scripts=SETUP_SCRIPTS,
|
|
package_data=PACKAGE_DATA,
|
|
data_files=DATA_FILES,
|
|
cmdclass=CMD_CLASS,
|
|
py_modules=["pyio"]
|
|
)
|