Skip to content

Commit

Permalink
have a single source of truth for version number
Browse files Browse the repository at this point in the history
  • Loading branch information
amietn committed Jan 8, 2019
1 parent 198c552 commit b7a94a4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
23 changes: 15 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
from setuptools import setup, find_packages
from codecs import open
from os import path
import os
import sys
from codecs import open

here = path.abspath(path.dirname(__file__))
from setuptools import setup, find_packages

here = os.path.abspath(os.path.dirname(__file__))

install_requires=['numpy', 'pillow', 'jinja2']
with open(os.path.join(here, "vcsi", "VERSION")) as f:
VERSION = f.readline().strip()

if sys.version_info < (3,4):
install_requires += ['enum34']
install_requires = ['numpy', 'pillow', 'jinja2']

if sys.version_info < (3, 4):
install_requires += ['enum34']

setup(
name='vcsi',

# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='7.0.4',
version=VERSION,

description='Create video contact sheets, thumbnails, screenshots',
long_description='',
Expand Down Expand Up @@ -63,4 +65,9 @@
'vcsi=vcsi:main',
],
},

# Additional files to install in the package directory
data_files=[
("vcsi", ["vcsi/VERSION"])
]
)
1 change: 1 addition & 0 deletions vcsi/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.0.5
6 changes: 5 additions & 1 deletion vcsi/vcsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
import texttable
import parsedatetime

__version__ = "7"
here = os.path.abspath(os.path.dirname(__file__))

with open(os.path.join(here, "VERSION")) as f:
VERSION = f.readline().strip()
__version__ = VERSION
__author__ = "Nils Amiet"


Expand Down

0 comments on commit b7a94a4

Please sign in to comment.