1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 17:18:53 +00:00

Remove the need for pandoc

This commit is contained in:
John T. Wodder II
2021-10-05 12:17:35 -04:00
parent 2c7ac514e0
commit 5f34f2b221
3 changed files with 6 additions and 12 deletions

View File

@@ -1,17 +1,13 @@
from setuptools import setup, find_packages
from codecs import open
from os import path
from dotdrop.version import __version__ as VERSION
readme = 'README.md'
here = path.abspath(path.dirname(__file__))
try:
from pypandoc import convert_file
read_readme = lambda f: convert_file(f, 'rst')
except ImportError:
print('\n[WARNING] pypandoc not found, could not convert \"{}\"\n'.format(readme))
read_readme = lambda f: open(f, 'r').read()
def read_readme(f):
with open(f, encoding="utf-8") as fp:
return fp.read()
REQUIRES_PYTHON = '>=3'
@@ -21,6 +17,7 @@ setup(
description='Save your dotfiles once, deploy them everywhere',
long_description=read_readme(readme),
long_description_content_type="text/markdown; variant=GFM",
url='https://github.com/deadc0de6/dotdrop',
download_url = 'https://github.com/deadc0de6/dotdrop/archive/v'+VERSION+'.tar.gz',