Skip to content

Commit

Permalink
Fixed regression from 0.14.0 (#599)
Browse files Browse the repository at this point in the history
* Fixed regression from 0.14.0

* Fix unpack

* Updated versions and history and fixed grep function
  • Loading branch information
jadchaar authored and systemcatch committed Jun 3, 2019
1 parent cfafc0e commit f77546d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## History

### 0.14.1

- [FIX] Fixed "ImportError: No module named 'dateutil'" (#598).

### 0.14.0

- [NEW] Added provisional support for Python 3.8.
Expand Down
2 changes: 1 addition & 1 deletion arrow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
from .arrow import Arrow
from .factory import ArrowFactory

__version__ = "0.14.0"
__version__ = "0.14.1"
16 changes: 13 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
# -*- coding: utf-8 -*-
from setuptools import setup
import re

from arrow import __version__
from setuptools import setup

with open("README.rst", "r") as f:
readme = f.read()

with open("arrow/__init__.py", "r") as f:
init = f.read()


def get_version():
pattern = r'{}\W*=\W*"([^"]+)"'.format("__version__")
strval = re.findall(pattern, init)[0]
return strval


setup(
name="arrow",
version=__version__,
version=get_version(),
description="Better dates and times for Python",
long_description=readme,
long_description_content_type="text/x-rst",
Expand Down

0 comments on commit f77546d

Please sign in to comment.