From e23e363b03bfa8addac7179acd6c4ca9b758abe9 Mon Sep 17 00:00:00 2001 From: Denis Blank Date: Tue, 29 Jan 2019 20:28:09 +0100 Subject: [PATCH] Add a conanfile * Closes #12 --- conanfile.py | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 conanfile.py diff --git a/conanfile.py b/conanfile.py new file mode 100644 index 0000000..13ed57f --- /dev/null +++ b/conanfile.py @@ -0,0 +1,37 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + +from conans import ConanFile, tools + +def get_version(): + git = tools.Git() + try: + return git.run("describe --tags --abbrev=0") + except: + return None + +class ContinuableConan(ConanFile): + name = "continuable" + version = get_version() + license = "MIT" + url = "https://github.com/Naios/continuable" + author = "Denis Blank (denis.blank@outlook.com)" + description = "C++14 asynchronous allocation aware futures" + homepage = "https://naios.github.io/continuable/" + no_copy_source = True + scm = { + "type": "git", + "url": "auto", + "revision": "auto" + } + + def package(self): + self.copy("LICENSE.txt", "licenses") + self.copy("include/*.hpp") + self.copy("include/*.inl") + + def package_id(self): + self.info.header_only() + + def requirements(self): + self.requires("function2/4.0.0@naios/stable")