Skip to content

Commit 5472a79

Browse files
committed
include readme in package metadata
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
1 parent 9f88cab commit 5472a79

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import io
12
import multiprocessing
23
import os
34
import subprocess
@@ -11,7 +12,6 @@
1112
from setuptools.command.build_ext import build_ext as build_ext_orig
1213

1314
if sys.version_info >= (3, 4):
14-
from pathlib import Path
1515
from urllib.request import urlcleanup, urljoin, urlretrieve
1616
else:
1717
from urllib import urlcleanup, urlretrieve
@@ -397,6 +397,8 @@ def prepare_static_build_linux(self):
397397

398398

399399
if sys.version_info >= (3, 4):
400+
from pathlib import Path
401+
400402
src_root = Path(__file__).parent / 'src'
401403
sources = [str(p.absolute()) for p in src_root.rglob('*.c')]
402404
else:
@@ -415,10 +417,15 @@ def prepare_static_build_linux(self):
415417
setup_reqs.append('pathlib2')
416418

417419

420+
with io.open('README.rst', encoding='utf-8') as f:
421+
long_desc = f.read()
422+
423+
418424
setup(
419425
name='xmlsec',
420426
use_scm_version=True,
421427
description='Python bindings for the XML Security Library',
428+
long_description=long_desc,
422429
ext_modules=[pyxmlsec],
423430
cmdclass={'build_ext': build_ext},
424431
setup_requires=setup_reqs,

0 commit comments

Comments
 (0)