3737from Cython .Build import cythonize
3838from Cython .Distutils .build_ext import new_build_ext as build_ext
3939
40- GITHUB_URL = "https://github.com/openzim/python-libzim"
4140BASE_DIR = Path (__file__ ).parent
4241LIBZIM_INCLUDE_DIR = "include" # the libzim C++ header src dir (containing zim/*.h)
4342LIBZIM_LIBRARY_DIR = "lib" # the libzim .so binary lib dir (containing libzim.so)
@@ -86,10 +85,6 @@ def finalize_options(self):
8685 print ("Using system installed library. We are assuming CFLAGS/LDFLAGS are correctly set." )
8786
8887
89- def get_long_description ():
90- return (BASE_DIR / "README.md" ).read_text ()
91-
92-
9388wrapper_extension = Extension (
9489 name = "libzim" ,
9590 sources = ["libzim/libzim.pyx" , "libzim/libwrapper.cpp" ],
@@ -108,58 +103,7 @@ def get_long_description():
108103 compiler_directives .update ({"linetrace" : "True" })
109104
110105setup (
111- # Basic information about libzim module
112- name = "libzim" ,
113- version = "1.0.0.dev0" ,
114- url = GITHUB_URL ,
115- project_urls = {
116- "Source" : GITHUB_URL ,
117- "Bug Tracker" : f"{ GITHUB_URL } /issues" ,
118- "Changelog" : f"{ GITHUB_URL } /releases" ,
119- "Documentation" : f"{ GITHUB_URL } /blob/master/README.md" ,
120- "Donate" : "https://www.kiwix.org/en/support-us/" ,
121- },
122- author = "Monadical Inc." ,
123- 124- license = "GPL-3.0-or-later" ,
125- description = "A python-facing API for creating and interacting with ZIM files" ,
126- long_description = get_long_description (),
127- long_description_content_type = "text/markdown" ,
128- python_requires = ">=3.6" ,
129106 # Content
130- packages = ["libzim" ],
131107 cmdclass = {"build_ext" : fixed_build_ext },
132108 ext_modules = cythonize ([wrapper_extension ], compiler_directives = compiler_directives ),
133- # Packaging
134- include_package_data = True ,
135- zip_safe = False ,
136- # Extra
137- classifiers = [
138- "Development Status :: 3 - Alpha" ,
139- "Topic :: Utilities" ,
140- "Topic :: Software Development :: Libraries" ,
141- "Topic :: Software Development :: Libraries :: Python Modules" ,
142- "Topic :: System :: Archiving" ,
143- "Topic :: System :: Archiving :: Compression" ,
144- "Topic :: System :: Archiving :: Mirroring" ,
145- "Topic :: System :: Archiving :: Backup" ,
146- "Topic :: Internet :: WWW/HTTP" ,
147- "Topic :: Internet :: WWW/HTTP :: Indexing/Search" ,
148- "Topic :: Sociology :: History" ,
149- "Intended Audience :: Developers" ,
150- "Intended Audience :: Education" ,
151- "Intended Audience :: End Users/Desktop" ,
152- "Intended Audience :: Information Technology" ,
153- "Intended Audience :: System Administrators" ,
154- "Programming Language :: Cython" ,
155- "Programming Language :: Python :: 3" ,
156- "Programming Language :: Python :: 3.6" ,
157- "Programming Language :: Python :: 3.7" ,
158- "Programming Language :: Python :: 3.8" ,
159- "Programming Language :: Python :: 3.9" ,
160- # "Typing :: Typed",
161- "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)" ,
162- "Natural Language :: English" ,
163- "Operating System :: OS Independent" ,
164- ],
165109)
0 commit comments