Skip to content

Commit

Permalink
Fix VERSION file location to sources file folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jjgomera committed Jun 19, 2020
1 parent 63ae9c0 commit 0bcfcd3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
include README.rst
include LICENSE
include VERSION
include iapws/VERSION
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import iapws # noqa


with open(os.path.join("..", 'VERSION')) as version_file:
with open(os.path.join("..", "iapws", "VERSION")) as version_file:
__version__ = version_file.read().strip()


Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion iapws/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from .humidAir import HumidAir # noqa
from .ammonia import H2ONH3 # noqa

basepath = os.path.dirname(os.path.dirname(__file__))
basepath = os.path.dirname(__file__)
with open(os.path.join(basepath, 'VERSION')) as version_file:
__version__ = version_file.read().strip()

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from setuptools import setup

import io # for backwards compatibility with Python 2
import os


with open('VERSION') as version_file:
with open(os.path.join("iapws", "VERSION")) as version_file:
__version__ = version_file.read().strip()

with io.open('README.rst', encoding="utf8") as file:
Expand Down

0 comments on commit 0bcfcd3

Please sign in to comment.