Skip to content

Commit

Permalink
Bump Version to 1.2.0. Add *.rst file.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgilling committed Oct 11, 2017
1 parent 447bd83 commit 5f5df64
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

# Created by https://www.gitignore.io/api/python,osx,windows,intellij

README.rst

### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
10 changes: 10 additions & 0 deletions register.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import pandoc
import os

pandoc.core.PANDOC_PATH = '/usr/local/bin/pandoc'

doc = pandoc.Document()
doc.markdown = open('README.md').read()
f = open('README.rst','w+')
f.write(doc.rst)
f.close()
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@
here = path.abspath(path.dirname(__file__))

# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
long_description = ''
if path.exists('README.rst'):
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()

setup(
name='moesifdjango',

# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='1.1.3',
version='1.2.0',

description='Moesif Middleware for Python Django',
long_description=long_description,
Expand Down

0 comments on commit 5f5df64

Please sign in to comment.