From 4766e3190e49e901a533ae55af6436ec4ae56a33 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Tue, 12 Oct 2021 15:56:04 +0100 Subject: [PATCH] Removed conanfile.py. Now controlled by conan repository. --- conanfile.py | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100755 conanfile.py diff --git a/conanfile.py b/conanfile.py deleted file mode 100755 index 100decc6..00000000 --- a/conanfile.py +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -from conans import ConanFile, tools - - -def get_version_from_git_tag(): - """ - :returns: The git tag associated with the current commit, or None if it is not able to get the Git data. - - Returning None is necessary when the recipe is already in the Conan cache, and the Git repository may not be there. - A value of None makes Conan get the version from the metadata. - See: https://docs.conan.io/en/latest/howtos/capture_version.html - """ - try: - return tools.Git().get_tag() - except: - return None - -class EmbeddedTemplateLibraryConan(ConanFile): - name = "embedded-template-library" - version = get_version_from_git_tag() - license = "MIT" - author = "John Wellbelove " - url = "https://github.com/ETLCPP/etl" - description = "A C++ template library for embedded applications" - topics = ("C++", "embedded", "template", "container", "utility", "framework", "messaging") - - # Source info - scm = { - "type": "git", - "url": "auto", - "revision": "auto" - } - - def package(self): - self.copy("LICENSE", "licenses") - self.copy("*.h", src="include", dst="include") - - def package_id(self): - self.info.header_only()