#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from conans import ConanFile


class EmbeddedTemplateLibraryConan(ConanFile):
    name = "embedded-template-library"
    version = "14.28.2"
    license = "MIT"
    author = "John Wellbelove <smartgit@wellbelove.co.uk>"
    url = "https://github.com/ETLCPP/etl"
    description = "A C++ template library for embedded applications"
    topics = ("embedded", "template", "container")
    no_copy_source = True
    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()

@@ -40,17 +40,16 @@
 f-8 -*-%0A
-%0A
 from con
@@ -68,17 +68,517 @@
 onanFile
-%0A
+, tools%0A%0A%0Adef get_version_from_git_tag():%0A    %22%22%22%0A    :returns: The git tag associated with the current commit, or None if it is not able to get the Git data.%0A%0A    Returning None is necessary when the recipe is already in the Conan cache, and the Git repository may not be there.%0A    A value of None makes Conan get the version from the metadata.%0A    See: https://docs.conan.io/en/latest/howtos/capture_version.html%0A    %22%22%22%0A    try:%0A        return tools.Git().get_tag()%0A    except:%0A        return None
 %0A%0Aclass 
@@ -675,17 +675,34 @@
 n = 
-%2214.28.2%22
+get_version_from_git_tag()
 %0A   
@@ -943,33 +943,26 @@
 r%22)%0A
+%0A
     
-no_copy_source = True
+# Source info
 %0A   

Allow conan's etl version metadata to automatically update via git tags (#150)