Skip to content

Commit 47b8924

Browse files
committed
Moving the version number into it's own file
1 parent b1cac61 commit 47b8924

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

__af_version__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/python
2+
3+
#######################################################
4+
# Copyright (c) 2015, ArrayFire
5+
# All rights reserved.
6+
#
7+
# This file is distributed under 3-clause BSD license.
8+
# The complete license agreement can be obtained at:
9+
# http://arrayfire.com/licenses/BSD-3-Clause
10+
########################################################
11+
12+
version = "3.4"
13+
release = "0"
14+
full_version = version + "." + release

setup.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,17 @@
1010
########################################################
1111

1212
from setuptools import setup, find_packages
13+
from __af_version__ import full_version
1314

14-
## TODO:
15-
## 1) Look for af libraries during setup
16-
## 2) Include test suite
17-
18-
# Some hackery to avoid merge conflicts between master and devel
19-
current_version = "3.3.20160516"
20-
devel_version = "3.3.0"
21-
release_version = current_version if current_version > devel_version else devel_version
15+
TODO:
16+
1) Look for af libraries during setup
17+
2) Include test suite
2218

2319
setup(
2420
author="Pavan Yalamanchili",
2521
author_email="[email protected]",
2622
name="arrayfire",
27-
version=release_version,
23+
version=full_version,
2824
description="Python bindings for ArrayFire",
2925
license="BSD",
3026
url="http://arrayfire.com",

0 commit comments

Comments
 (0)