Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
uprev
  • Loading branch information
samuelcolvin committed Jan 17, 2019
1 parent 2aa8065 commit 8b02ce8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
5 changes: 3 additions & 2 deletions HISTORY.rst
Expand Up @@ -3,9 +3,10 @@
History
-------

v0.19.0 (2019-XX-XX)
v0.18.1 (2019-01-17)
....................
* add ``ConstrainedBytes`` and ``conbytes`` types #315 @Gr1N
* add ``ConstrainedBytes`` and ``conbytes`` types, #315 @Gr1N
* adding ``MANIFEST.in`` to include license in package ``.tar.gz``, #358 by @samuelcolvin

v0.18.0 (2019-01-13)
....................
Expand Down
2 changes: 1 addition & 1 deletion pydantic/version.py
Expand Up @@ -2,4 +2,4 @@

__all__ = ['VERSION']

VERSION = StrictVersion('0.18')
VERSION = StrictVersion('0.18.1')
18 changes: 10 additions & 8 deletions setup.py
Expand Up @@ -24,16 +24,18 @@ def extra(self):

description = 'Data validation and settings management using python 3.6 type hinting'
THIS_DIR = Path(__file__).resolve().parent
history = THIS_DIR.joinpath('HISTORY.rst').read_text()
try:
history = THIS_DIR.joinpath('HISTORY.rst').read_text()

replacer = ReplaceLinks()
history = re.sub(r'#(\d+)', replacer.replace_issues, history)
history = re.sub(r'( +)@(\w+)', replacer.replace_users, history, flags=re.I)
history = re.sub(r'@@', '@', history)
history += replacer.extra()
replacer = ReplaceLinks()
history = re.sub(r'#(\d+)', replacer.replace_issues, history)
history = re.sub(r'( +)@(\w+)', replacer.replace_users, history, flags=re.I)
history = re.sub(r'@@', '@', history)
history += replacer.extra()

readme = THIS_DIR.joinpath('README.rst').read_text()
long_description = readme + '\n\n' + history
long_description = '\n\n'.join([THIS_DIR.joinpath('README.rst').read_text(), history])
except FileNotFoundError:
long_description = description + '.\n\nSee https://pydantic-docs.helpmanual.io/ for documentation.'

# avoid loading the package before requirements are installed:
version = SourceFileLoader('version', 'pydantic/version.py').load_module()
Expand Down

0 comments on commit 8b02ce8

Please sign in to comment.