Skip to content

Commit

Permalink
📚 prepared for pypi release
Browse files Browse the repository at this point in the history
  • Loading branch information
miyuchina committed Jul 20, 2017
1 parent f874bc8 commit 99e8d20
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ out.html
venv/
.coverage
htmlcov
render_latex.py
.pylintrc
*.egg-info
dist
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include LICENSE.md
include README.md
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mistletoe
=========

A fast, extensible Markdown parser in pure Python.
7 changes: 5 additions & 2 deletions mistletoe/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def convert(filename):

def interactive():
time = datetime.datetime.now().date()
print('mistletoe [version 0.9.0 alpha] (interactive, {})'.format(time))
print('mistletoe [version 0.1 alpha] (interactive, {})'.format(time))
print('Type Ctrl-D to complete input, or Ctrl-C to exit.')
while True:
try:
Expand All @@ -33,8 +33,11 @@ def interactive():
print('\nTerminated by user.')
return

if __name__ == "__main__":
def main():
if len(sys.argv) > 1:
convert(sys.argv[1])
else:
interactive()

if __name__ == "__main__":
main()
13 changes: 13 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from setuptools import setup

setup(name='mistletoe',
version='0.1',
description='A fast, extensible Markdown parser in pure Python.',
url='https://github.com/miyuchina/mistletoe',
author='Mi Yu',
author_email='[email protected]',
license='GNU GPLv3',
packages=['mistletoe'],
entry_points={'console_scripts': ['mistletoe = mistletoe.__main__:main']},
python_requires='~=3.5',
zip_safe=False)

0 comments on commit 99e8d20

Please sign in to comment.