@@ -18,33 +18,23 @@ def get_version(version_tuple):
1818VERSION = get_version (eval (version_line .split ('=' )[- 1 ]))
1919
2020INSTALL_REQUIRES = []
21-
22- try :
23- from pypandoc import convert
24-
25- def read_md (f ):
26- return convert (f , 'rst' )
27-
28- except ImportError :
29- convert = None
30- print (
31- "warning: pypandoc module not found, could not convert Markdown to RST"
32- )
33-
34- def read_md (f ):
35- return open (f , 'r' ).read () # noqa
36-
3721README = os .path .join (os .path .dirname (__file__ ), 'README.md' )
3822PACKAGES = find_packages ('src' )
3923PACKAGE_DIR = {'' : 'src' }
4024
25+
26+ def readme ():
27+ return open (README , 'r' ).read () # noqa
28+
29+
4130setup (
4231 name = 'solrq' ,
4332 version = VERSION ,
4433 author = 'Michał Jaworski' ,
4534 author_email = 'swistakm@gmail.com' ,
4635 description = 'Python Solr query utility' ,
47- long_description = read_md (README ),
36+ long_description = readme (),
37+ long_description_content_type = 'text/markdown' ,
4838
4939 packages = PACKAGES ,
5040 package_dir = PACKAGE_DIR ,
@@ -68,6 +58,12 @@ def read_md(f):
6858 'Programming Language :: Python :: 3.3' ,
6959 'Programming Language :: Python :: 3.4' ,
7060 'Programming Language :: Python :: 3.5' ,
61+ 'Programming Language :: Python :: 3.6' ,
62+ 'Programming Language :: Python :: 3.7' ,
63+ 'Programming Language :: Python :: 3.8' ,
64+ 'Programming Language :: Python :: 3.9' ,
65+ 'Programming Language :: Python :: 3.10' ,
66+ 'Programming Language :: Python :: 3.11' ,
7167 'Programming Language :: Python :: Implementation :: PyPy' ,
7268 'Topic :: Internet :: WWW/HTTP :: Indexing/Search' ,
7369 ],
0 commit comments