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 | |
| parent | f53913389fa435d26307075bf5dab3675b1f17c4 (diff) | |
VERSION added
| -rw-r--r-- | VERSION | 1 | ||||
| -rw-r--r-- | package.json | 1 | ||||
| -rw-r--r-- | src_py/opcut/doit/main.py | 4 |
3 files changed, 4 insertions, 2 deletions
@@ -0,0 +1 @@ +0.1.1 diff --git a/package.json b/package.json index 4796151..e3726dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,5 @@ { "name": "opcut", - "version": "0.0.1", "license": "GPL-3.0", "scripts": { "build": "webpack", 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': [ |
