From e446586764297e89f371c858021525366f6dc78e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Fad=C4=B1l=20USTA?= Date: Wed, 23 Jan 2019 05:15:17 +0200 Subject: [PATCH] Make setup py gets version from file I believe with this way it will be much suitable for version bumps. This PR also fixes a small bug about a typo in MANIFEST.in --- MANIFEST.in | 2 +- setup.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 3a23e53..04f196a 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,2 @@ -include README +include README.md include LICENSE diff --git a/setup.py b/setup.py index 918449a..0b1693b 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ import sys from setuptools.command.test import test as TestCommand from setuptools import setup +import clonevirtualenv if __name__ == '__main__' and sys.version_info < (2, 7): @@ -29,7 +30,7 @@ def run_tests(self): setup(name="virtualenv-clone", - version='0.5.1', + version=clonevirtualenv.__version__, description='script to clone virtualenvs.', long_description=long_description, long_description_content_type='text/markdown',