Skip to content

Commit 155a376

Browse files
authored
[patch] Remove use of pandoc to convert to RST (#292)
1 parent 245b319 commit 155a376

3 files changed

Lines changed: 5 additions & 14 deletions

File tree

.gitignore

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ __pycache__/
66
# Distribution / packaging
77
dist
88
*.egg-info
9-
pandoc-*-amd64.deb
10-
pandoc-*-windows-x86_64.msi
11-
pandoc-*-x86_64-macOS.pkg
12-
README.rst
139

1410
# Environments
1511
.venv/
@@ -19,5 +15,5 @@ venv/
1915
# Other
2016
kubectl.exe
2117
/build
22-
/.vscode
23-
/site
18+
/.vscode
19+
/site

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[build-system]
22
requires = [
3-
"setuptools",
4-
"pypandoc"
3+
"setuptools"
54
]
65
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,8 @@
1414
sys.path.insert(0, 'src')
1515

1616

17-
if not os.path.exists('README.rst'):
18-
import pypandoc
19-
pypandoc.download_pandoc(targetfolder='~/bin/')
20-
pypandoc.convert_file('README.md', 'rst', outputfile='README.rst')
21-
2217
here = os.path.abspath(os.path.dirname(__file__))
23-
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
18+
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
2419
long_description = f.read()
2520

2621
# Maintain a single source of versioning
@@ -54,6 +49,7 @@ def get_version(rel_path):
5449
license='Eclipse Public License - v1.0',
5550
description='Python for Maximo Application Suite Dev/Ops',
5651
long_description=long_description,
52+
long_description_content_type='text/markdown',
5753
install_requires=[
5854
'pyyaml', # MIT License
5955
'openshift', # Apache Software License

0 commit comments

Comments
 (0)