Skip to content

Commit

Permalink
Merge pull request #80 from EUDAT-B2HANDLE/devel
Browse files Browse the repository at this point in the history
Update setup for pypi
  • Loading branch information
themiszamani authored Jul 21, 2022
2 parents 33d04a7 + b7cf832 commit fa19669
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,13 @@ def find_version(*file_paths):
return version_match.group(1)
raise RuntimeError("Unable to find version string.")


# Note: The package maintainer needs pypandoc and pygments to properly convert
# the Markdown-formatted README into RestructuredText before uploading to PyPi
# See https://bitbucket.org/pypa/pypi/issues/148/support-markdown-for-readmes
try:
import pypandoc
long_description=pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description=open('README.md').read()


long_description=open('README.md').read()

setup(name='pyhandle',
version=find_version("pyhandle", "__init__.py"),
description=('Library for management of handles '),
long_description=long_description,
long_description_content_type='text/markdown',
classifiers=[
'Development Status :: 1 - Planning',
'Programming Language :: Python :: 3',
Expand Down

0 comments on commit fa19669

Please sign in to comment.