From 653f9a7f176a9692162025b9ae74ddb7497852d4 Mon Sep 17 00:00:00 2001 From: Noel Mace Date: Thu, 2 Apr 2020 11:28:43 +0200 Subject: [PATCH] build: external version number --- MANIFEST.in | 1 + VERSION | 1 + setup.py | 5 +++-- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 MANIFEST.in create mode 100644 VERSION diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..ceeea23 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include VERSION diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..9325c3c --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.3.0 \ No newline at end of file diff --git a/setup.py b/setup.py index 6c8f676..16ff4f0 100644 --- a/setup.py +++ b/setup.py @@ -4,10 +4,11 @@ from setuptools import setup from os import path -version = '0.3.0' - repo_base_dir = path.abspath(path.dirname(__file__)) +with open(path.join(repo_base_dir, 'VERSION')) as version_file: + version = version_file.read().strip() + # Long description readme = path.join(repo_base_dir, 'README.md') with open(readme) as f: