[python-arrayfire] 01/08: Moving the version number into it's own file
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Fri Sep 16 09:30:03 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository python-arrayfire.
commit 47b892483129077547962a05fc2df6e15dab34cd
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date: Fri Jun 24 20:03:15 2016 -0400
Moving the version number into it's own file
---
__af_version__.py | 14 ++++++++++++++
setup.py | 14 +++++---------
2 files changed, 19 insertions(+), 9 deletions(-)
diff --git a/__af_version__.py b/__af_version__.py
new file mode 100644
index 0000000..7ccd737
--- /dev/null
+++ b/__af_version__.py
@@ -0,0 +1,14 @@
+#!/usr/bin/python
+
+#######################################################
+# Copyright (c) 2015, ArrayFire
+# All rights reserved.
+#
+# This file is distributed under 3-clause BSD license.
+# The complete license agreement can be obtained at:
+# http://arrayfire.com/licenses/BSD-3-Clause
+########################################################
+
+version = "3.4"
+release = "0"
+full_version = version + "." + release
diff --git a/setup.py b/setup.py
index 0c4318e..294871d 100644
--- a/setup.py
+++ b/setup.py
@@ -10,21 +10,17 @@
########################################################
from setuptools import setup, find_packages
+from __af_version__ import full_version
-## TODO:
-## 1) Look for af libraries during setup
-## 2) Include test suite
-
-# Some hackery to avoid merge conflicts between master and devel
-current_version = "3.3.20160516"
-devel_version = "3.3.0"
-release_version = current_version if current_version > devel_version else devel_version
+TODO:
+1) Look for af libraries during setup
+2) Include test suite
setup(
author="Pavan Yalamanchili",
author_email="pavan at arrayfire.com",
name="arrayfire",
- version=release_version,
+ version=full_version,
description="Python bindings for ArrayFire",
license="BSD",
url="http://arrayfire.com",
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-arrayfire.git
More information about the debian-science-commits
mailing list