Skip to content

Commit 3d0d810

Browse files
Update versioning system
1 parent df7b9ef commit 3d0d810

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
from confapp import conf; conf += 'pythonvideoannotator_models_gui.settings'
1+
from confapp import conf; conf += 'pythonvideoannotator_models_gui.settings'
2+
__version__ = "0.6.56"

setup.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@
22
# -*- coding: utf-8 -*-
33

44
from setuptools import setup, find_packages
5-
import re
5+
import re, os
6+
7+
PACKAGE_PATH = os.path.dirname(os.path.realpath(__file__))
8+
with open(os.path.join(PACKAGE_PATH, 'pythonvideoannotator_models_gui','__init__.py'), 'r') as fd:
9+
content = fd.read()
10+
version = re.search(
11+
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', content, re.MULTILINE).group(1)
12+
613

714
setup(
815
name='Python video annotator - models - gui',
9-
version=0.6,
16+
version=version,
1017
description="""""",
1118
author=['Ricardo Ribeiro'],
1219
author_email='ricardojvr@gmail.com',

0 commit comments

Comments
 (0)