Skip to content

Commit

Permalink
Merge pull request #7 from xylar/update_to_0.0.4
Browse files Browse the repository at this point in the history
Update to v0.0.4
  • Loading branch information
xylar authored Mar 7, 2020
2 parents 630d408 + f2ec2aa commit 65ae240
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = u'0.0.3'
# The short X.Y.Z version.
version = pyremap.__version__
# The full version, including alpha/beta/rc tags.
release = u'0.0.3'
release = pyremap.__version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
3 changes: 3 additions & 0 deletions pyremap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
from pyremap.remapper import Remapper

from pyremap.polar import get_polar_descriptor_from_file, get_polar_descriptor

__version_info__ = (0, 0, 4)
__version__ = '.'.join(str(vi) for vi in __version_info__)
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import os
import re
from setuptools import setup, find_packages

version = '0.0.3'
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'pyremap', '__init__.py')) as f:
init_file = f.read()

version = re.search(r'{}\s*=\s*[(]([^)]*)[)]'.format('__version_info__'),
init_file).group(1).replace(', ', '.')

setup(name='pyremap',
version=version,
Expand Down

0 comments on commit 65ae240

Please sign in to comment.