From 28600f6e41d5a4b60f2e47cf077f2fe2d9224e1d Mon Sep 17 00:00:00 2001 From: Christopher Engelhard Date: Jul 24 2020 17:56:09 +0000 Subject: let tito manage the version string --- diff --git a/.tito/templates/__init__.py.template b/.tito/templates/__init__.py.template new file mode 100644 index 0000000..1d8e1f4 --- /dev/null +++ b/.tito/templates/__init__.py.template @@ -0,0 +1,19 @@ +# This file is part of hellocopr . +# Copyright (C) 2020 Christopher Engelhard +# +# hellocopr is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# hellocopr is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with hellocopr. If not, see . + +# This file is automatically created from a template by tito. Do not edit it manually. + +__version__ = '$version' diff --git a/.tito/tito.props b/.tito/tito.props index eab3f19..a7d5c88 100644 --- a/.tito/tito.props +++ b/.tito/tito.props @@ -3,3 +3,7 @@ builder = tito.builder.Builder tagger = tito.tagger.VersionTagger changelog_do_not_remove_cherrypick = 0 changelog_format = %s (%ae) + +[version_template] +destination_file = src/hellocopr/__init__.py +template_file = .tito/templates/__init__.py.template