Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Commit

Permalink
Merge release 0.0.5 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
gnn committed Mar 20, 2017
2 parents 272e225 + 26ce0d2 commit 0e3b62b
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Use pypi to install the latest oemof version.

.. code:: bash
pip3 install oemof
pip3 install oemof.db
If you want to have the developer version clone the repository by

Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
# built documents.
#
# The short X.Y version.
version = '0.0.4'
version = '0.0.5'
# The full version, including alpha/beta/rc tags.
release = version

Expand Down
1 change: 1 addition & 0 deletions doc/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ These are new features and improvements of note in each release
:local:
:backlinks: top

.. include:: whatsnew/v0005.txt
.. include:: whatsnew/v0004.txt
.. include:: whatsnew/v0003.txt
.. include:: whatsnew/v0002.txt
Expand Down
14 changes: 14 additions & 0 deletions doc/whatsnew/v0005.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
v0.0.5 (March 20th, 2017)
+++++++++++++++++++++++++

Bug fixes
#########

* In order to play well with `oemof`, `oemof/db/__init__.py` has been
removed. This should fix `oemof`'s `issue #269 <https://github.com/oemof/oemof/issues/269>`_.

Contributors
############

* Stephan Günther

2 changes: 0 additions & 2 deletions oemof/__init__.py

This file was deleted.

2 changes: 2 additions & 0 deletions oemof/db/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import getpass


__version__ = '0.0.5'

def url(section="postGIS", config_file=None):
""" Retrieve the URL used to connect to the database.
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
from setuptools import find_packages, setup

setup(name='oemof.db',
version='0.0.4',
# Unfortunately we can't use a `__version__` attribute on `oemof.db` as
# we can't import that module here. It depends on packages which might
# not be available prior to installation.
version='0.0.5',
description='The oemof database extension',
namespace_package = ['oemof'],
packages=find_packages(),
Expand Down
9 changes: 9 additions & 0 deletions tests/import_tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from nose.tools import ok_

import oemof.db as oemofdb

def test_oemofdb_imports():
ok_(oemofdb.connection)
ok_(oemofdb.engine)
ok_(oemofdb.url)

14 changes: 14 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py

[testenv:py]
setenv =
PIP_USER = false
commands = nosetests
deps = nose

0 comments on commit 0e3b62b

Please sign in to comment.