gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-util] branch master updated (3148212 -> 9cf25ee)


From: gnunet
Subject: [taler-taler-util] branch master updated (3148212 -> 9cf25ee)
Date: Sun, 15 Dec 2019 12:45:54 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a change to branch master
in repository taler-util.

    from 3148212  setup.py test invocation is deprecated, using tox is strongly 
suggested by community standards. switch to tox. Add Makefile for GNU coding 
standards.
     new 4c0107d  add submodule.
     new 9cf25ee  bump submodule, add tox detection.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .gitignore                       |  3 +++
 .gitmodules                      |  3 +++
 Makefile                         |  4 +++-
 README                           |  6 ++++++
 bootstrap                        | 17 +++++++++++++++++
 build-system/taler-build-scripts |  1 +
 configure.py                     | 29 +++++++++++++++++++++++++++++
 7 files changed, 62 insertions(+), 1 deletion(-)
 create mode 100644 .gitmodules
 create mode 100755 bootstrap
 create mode 160000 build-system/taler-build-scripts
 create mode 100644 configure.py

diff --git a/.gitignore b/.gitignore
index 33f3a08..5acaa23 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,6 @@ dist/
 \#*\#
 __pycache__
 *.pyc
+.style.yapf
+configure
+config.mk
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..46f6b8a
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "build-system/taler-build-scripts"]
+       path = build-system/taler-build-scripts
+       url = https://git.taler.net/build-common.git
diff --git a/Makefile b/Makefile
index a9f9939..d7d2309 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,4 @@
+include config.mk
+
 test:
-       tox-3.7 || tox3.7 || tox || echo "error: you have to install tox"
+       $(tox) || echo "error: you have to install tox"
diff --git a/README b/README
index 5722032..56cddf4 100644
--- a/README
+++ b/README
@@ -13,3 +13,9 @@ tests
 To run the unittests, execute
 
    python3.7 setup.py test
+
+Installation
+------------
+
+You can use standard python tools to handle the setup,
+or use the Makefile and GNU standards wrapper around them.
diff --git a/bootstrap b/bootstrap
new file mode 100755
index 0000000..dcc5ae3
--- /dev/null
+++ b/bootstrap
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# Bootstrap the repository.  Used when the repository is checked out from git.
+# When using the source tarball, running this script is not necessary.
+
+set -eu
+
+if ! git --version >/dev/null; then
+  echo "git not installed"
+  exit 1
+fi
+
+git submodule update --init
+git submodule update --recursive
+git submodule sync
+cp build-system/taler-build-scripts/configure ./configure || true
+cp build-system/taler-build-scripts/conf/.style.yapf .style.yapf || true
diff --git a/build-system/taler-build-scripts b/build-system/taler-build-scripts
new file mode 160000
index 0000000..ba13916
--- /dev/null
+++ b/build-system/taler-build-scripts
@@ -0,0 +1 @@
+Subproject commit ba139160511026f08dd4611dc689ee5a211febf5
diff --git a/configure.py b/configure.py
new file mode 100644
index 0000000..2dde567
--- /dev/null
+++ b/configure.py
@@ -0,0 +1,29 @@
+import sys
+from pathlib import Path
+
+base_dir = Path(__file__, "../build-system/taler-build-scripts").resolve()
+
+if not base_dir.exists():
+    print(f"build system directory (${base_dir}) missing", file=sys.stderr)
+    sys.exit(1)
+
+sys.path.insert(0, str(base_dir))
+
+from talerbuildconfig import *
+
+b = BuildConfig()
+b.enable_prefix()
+b.enable_configmk()
+b.add_tool(PythonTool())
+b.add_tool(PyToxTool())
+b.add_tool(PosixTool("cp"))
+b.add_tool(PosixTool("echo"))
+b.add_tool(PosixTool("env"))
+b.add_tool(PosixTool("printf"))
+b.add_tool(PosixTool("grep"))
+b.add_tool(PosixTool("ln"))
+b.add_tool(PosixTool("mkdir"))
+b.add_tool(PosixTool("rm"))
+b.add_tool(PosixTool("sh"))
+b.add_tool(PosixTool("git"))
+b.run()

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]