Commit c1cf8355 authored by theos's avatar theos
Browse files

Included version.py file for __version__ attribute.

parent 955da71f
Pipeline #3805 skipped
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
from __future__ import division from __future__ import division
from version import __version__
from config import configuration from config import configuration
from distributed_data_object import distributed_data_object from distributed_data_object import distributed_data_object
from d2o_librarian import d2o_librarian from d2o_librarian import d2o_librarian
......
# -*- coding: utf-8 -*-
# Store the version here so:
# 1) we don't load dependencies by storing it in __init__.py
# 2) we can import it in setup.py for the same reason
# 3) we can import it into your module module
__version__ = '1.0.0b1'
\ No newline at end of file
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
import os import os
from setuptools import setup from setuptools import setup
exec(open('version.py').read())
# Utility function to read the README file. # Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level # Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw # README file and 2) it's easier to type in the README file than to put a raw
...@@ -11,13 +13,13 @@ def read(fname): ...@@ -11,13 +13,13 @@ def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read() return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup( setup(
name = "D2O", name = "d2o",
version = "1.0.0rc1", version = __version__,
author = "Theo Steininger", author = "Theo Steininger",
author_email = "theos@mpa-garching.mpg.de", author_email = "theos@mpa-garching.mpg.de",
description = ("A distributed data object for parallel high-performance " description = ("A distributed data object for parallel high-performance "
"computing in Python"), "computing in Python"),
license = "", license = "BSD",
keywords = "parallelization, numerics, MPI", keywords = "parallelization, numerics, MPI",
url = "https://gitlab.mpcdf.mpg.de/ift/D2O", url = "https://gitlab.mpcdf.mpg.de/ift/D2O",
packages=['d2o', 'd2o.config', 'd2o.mpi_dummy', 'tests'], packages=['d2o', 'd2o.config', 'd2o.mpi_dummy', 'tests'],
...@@ -30,6 +32,6 @@ setup( ...@@ -30,6 +32,6 @@ setup(
classifiers=[ classifiers=[
"Development Status :: 4 - Beta", "Development Status :: 4 - Beta",
"Topic :: Utilities", "Topic :: Utilities",
# "License :: OSI Approved :: BSD License", "License :: OSI Approved :: BSD License",
], ],
) )
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment