Skip to content

Commit

Permalink
attempt not to depend on pandoc
Browse files Browse the repository at this point in the history
  • Loading branch information
eroux committed Aug 17, 2018
1 parent 822ed57 commit 2e5b7e9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ The function returns a sorted list of `SuggestItem`s, containing three fields:
- `distance` being the distance with the original string
- `count` being the frequency if given in the dictionary

# Maintainance

Upload on pip:

```
python setup.py sdist
twine upload dist/*
```

# Copyright

The code is Copyright Esukhia, 2018, and is distributed under the [MIT License](LICENSE).
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
import os
import sys
from setuptools import setup, find_packages
import pypandoc

def read(fname):
rst = pypandoc.convert(os.path.join(os.path.dirname(__file__), fname), 'rst')
return rst
return open(os.path.join(os.path.dirname(__file__), fname)).read()

setup(
name="sympound",
Expand All @@ -23,6 +21,7 @@ def read(fname):
url="https://github.com/Esukhia/sympound-python",
packages=find_packages(),
long_description=read('README.md'),
long_description_content_type="text/markdown",
project_urls={
'Source': 'https://github.com/Esukhia/sympound-python',
'Tracker': 'https://github.com/Esukhia/sympound-python/issues',
Expand Down

0 comments on commit 2e5b7e9

Please sign in to comment.