Skip to content

Commit 9c91c4f

Browse files
committed
Add necessary files for PyPI upload
Former-commit-id: cf282d4
1 parent 23247c7 commit 9c91c4f

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

LICENSE renamed to LICENSE.txt

File renamed without changes.

MANIFEST.in

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
graft python
2+
global-include *.py *.cc *.h *.cu CMakeLists.txt *.cmake

setup.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[metadata]
2+
description-file = README.md

setup.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -147,16 +147,17 @@ def run(self):
147147

148148

149149
try:
150-
with open(os.path.join(script_dir, "README.md")) as f:
151-
README = f.read()
152-
except IOError:
153-
README = ""
150+
import pypandoc
151+
long_description = pypandoc.convert("README.md", "rst")
152+
except (IOError, ImportError):
153+
long_description = ""
154154

155155
setup(
156156
name="dyNET",
157+
#version="0.0.0",
157158
install_requires=["cython", "numpy"],
158159
description="The Dynamic Neural Network Toolkit",
159-
long_description=README,
160+
long_description=long_description,
160161
classifiers=[
161162
"Development Status :: 5 - Production/Stable",
162163
"Environment :: Console",

0 commit comments

Comments
 (0)