File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 2222
2323from __future__ import absolute_import , division
2424from __future__ import print_function
25+ from ._version import __version__
Original file line number Diff line number Diff line change 1+ # Package versioning solution originally found here:
2+ # http://stackoverflow.com/q/458550
3+
4+ # Store the version here so:
5+ # 1) we don't load dependencies by storing it in __init__.py
6+ # 2) we can import it in setup.py for the same reason
7+ # 3) we can import it into your module
8+ __version__ = '0.4.4'
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22from setuptools import setup , find_packages
33from distutils .core import Extension
4+ import os
5+
6+ version_path = os .path .join ('galgebra' , '_version.py' )
7+ exec (open (version_path ).read ())
48
5- VERSION = '0.4.4'
69LONG_DESCRIPTION = """
710Symbolic Geometric Algebra/Calculus package for SymPy. BSD License.
811"""
912
1013setup (name = 'galgebra' ,
11- version = VERSION ,
14+ version = __version__ ,
1215 description = 'Symbolic Geometric Algebra/Calculus package for SymPy.' ,
1316 author = 'Alan Bromborsky' ,
1417
You can’t perform that action at this time.
0 commit comments