diff --git a/.gitignore b/.gitignore index 638c244df135fe1446a20e0fb499d47cc67e6832..b2d5801ceba70247eda22e1b3c304a81bfa64409 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,4 @@ _skbuild/ dist/ CellFrame.egg-info/ *.text - +CMakeLists.txt.user* diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ba0c090688843432fa7d7515d146d5d5a394e17..5c8f0fb7d69044b52a34ff8970ada797177c1eb7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,7 +89,7 @@ target_compile_options(dap_chain_cs_dag_pos PRIVATE "-fpic") file(GLOB PYTHON_CELLFRAME_SRCS src/*.c) file(GLOB PYTHON_CELLFRAME_HEADERS include/*.h) -set(Python_ADDITIONAL_VERSIONS 3.7) +set(Python_ADDITIONAL_VERSIONS 3.7 3.6 3.5 3.4) find_package (PythonLibs REQUIRED) include_directories(${PYTHON_INCLUDE_DIR} include/) diff --git a/README.md b/README.md index 69f3274b627177c835ddbd296a04842771a1fdf2..5e7ed5a15e34b26f3547d4e00c59db715d504b39 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ To install, you must have Python3.7 and a scikit-build. ``` git clone https://gitlab.demlabs.net/cellframe/python-cellframe.git cd python-cellframe -git submodule update --init --recursive +git submodule update --init sudo python3.7 setup.py install python3.7 test/main_test.py ``` diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000000000000000000000000000000000000..168428f432306f7c8ea7f9ef93abe2d5607739e1 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +python3-cellframe (0.5-1) testing; urgency=high + + * Initial release. + + -- Dmitriy Gerasimov <naeper@demlabs.net> Mon, 23 Dec 2019 15:54:57 +0700 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000000000000000000000000000000000000..f11c82a4cb6cc2e8f3bdf52b5cdeaad4d5bb214e --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 \ No newline at end of file diff --git a/debian/control b/debian/control new file mode 100644 index 0000000000000000000000000000000000000000..bcf290aada4ba061c99003d62500c130f415ad6c --- /dev/null +++ b/debian/control @@ -0,0 +1,31 @@ +Source: python3-cellframe +Section: blockchain +Priority: optional +Maintainer: Dmitriy Gerasimov <naeper@demlabs.net> +Build-Depends: debhelper (>= 9), dh-python, python3-setuptools, python3 +Testsuite: autopkgtest-pkg-python +X-Python3-Version: >=3.4 +Standards-Version: 3.9.8 + CellFrame SDK: blockchain universal SDK + Homepage: http://demlabs.net + + +Package: python3-cellframe +Architecture: all +Depends: ${python3:Depends}, ${misc:Depends} +Suggests: python3-cellframe-doc +Description: CellFrame SDK: general usage blockchain SDK (Python 3) + CellFrame SDK: blockchain universal SDK + . + This package installs the library for Python 3. + + +Package: python3-cellframe-doc +Architecture: all +Section: doc +Depends: ${sphinxdoc:Depends}, ${misc:Depends} +Description: CellFrame SDK: general usage blockchain SDK (common documentation) + CellFrame SDK: blockchain universal SDK + . + This is the common documentation package. + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000000000000000000000000000000000000..27d89aba3eb342cc4dd1af0b37b68f1897476f3c --- /dev/null +++ b/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f +include /usr/share/dpkg/pkg-info.mk + +export DH_VERBOSE=1 +export PYBUILD_NAME=cellframe + +PYTHON3_VERSIONS = $(shell py3versions -r) +py3sdo = set -e; $(foreach py, $(PYTHON3_VERSIONS), $(py) $(1);) + +%: + dh $@ --with python3 --buildsystem=pybuild diff --git a/setup.py b/setup.py index 108c2e6a86eea29113ff41deb6e6b34d09a49777..5446eb80a36396d8e06ab6bae1e8529e2ac6e944 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ from skbuild import setup setup( name="CellFrame", - version="0.5.0", + version="0.5-1", description="SDK CellFrame network", author='DEMLABS Inc. (2017-2019)', license="GNU GPL",