1010from setuptools .command .build_ext import build_ext
1111from distutils .version import LooseVersion
1212
13- sys .path .append ('./python_PRTree' )
1413sys .path .append ('./test' )
1514
15+ here = os .path .abspath (os .path .dirname (__file__ ))
16+ with open (os .path .join (here , 'README.md' ), encoding = 'utf-8' ) as f :
17+ long_description = f .read ()
1618
1719def _requires_from_file (filename ):
1820 return open (filename ).read ().splitlines ()
@@ -80,7 +82,7 @@ def build_extension(self, ext):
8082 name = 'python_prtree' ,
8183 version = '0.1' ,
8284 license = 'MIT' ,
83- description = '' ,
85+ description = 'Python implementation of Priority R-Tree ' ,
8486 author = 'atksh' ,
8587 url = 'https://github.com/atksh/python_prtree' ,
8688 ext_modules = [CMakeExtension ('python_prtree.PRTree' )],
@@ -90,4 +92,11 @@ def build_extension(self, ext):
9092 package_dir = {"" : "src" },
9193 packages = find_packages ('src' ),
9294 test_suite = 'test_PRTree.suite' ,
95+ long_description = long_description ,
96+ long_description_content_type = 'text/markdown' ,
97+ keywords = 'priority rtree prtree' ,
98+ classifiers = [
99+ 'License :: OSI Approved :: MIT License' ,
100+ 'Programming Language :: Python :: 3.7' ,
101+ ]
93102)
0 commit comments