diff options
| author | bozo.kopic <bozo.kopic@gmail.com> | 2019-04-08 22:56:28 +0200 |
|---|---|---|
| committer | bozo.kopic <bozo.kopic@gmail.com> | 2019-04-08 22:56:28 +0200 |
| commit | 42281003180ac929aefefd69f51c7d90c70e0ea7 (patch) | |
| tree | 41a9142163206ba2de4fa3c8ccf77714a2db7613 /src_py | |
| parent | f53913389fa435d26307075bf5dab3675b1f17c4 (diff) | |
VERSION added
Diffstat (limited to 'src_py')
| -rw-r--r-- | src_py/opcut/doit/main.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src_py/opcut/doit/main.py b/src_py/opcut/doit/main.py index 68624e9..4a346cf 100644 --- a/src_py/opcut/doit/main.py +++ b/src_py/opcut/doit/main.py @@ -47,11 +47,13 @@ def task_dist_build(): """Distribution - build (DEFAULT)""" def generate_setup_py(): + with open('VERSION', encoding='utf-8') as f: + version = f.read().strip() with open('requirements.txt', encoding='utf-8') as f: dependencies = [i.strip() for i in f.readlines() if i.strip()] with open('build/dist/setup.py', 'w', encoding='utf-8') as f: f.write(_setup_py.format( - version='0.1.0', + version=version, dependencies=repr(dependencies))) return {'actions': [ |
