-
Notifications
You must be signed in to change notification settings - Fork 78
/
setup.py
65 lines (56 loc) · 1.95 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import re
from typing import List # noqa
from setuptools import setup
def fix_doc(txt):
"""
Fixes documentation so that it's readable in pypi website.
"""
return re.sub(
r"\.\. PYPI-BEGIN([\r\n]|[^\r\n])*?PYPI-END", "", txt, flags=re.DOTALL
)
with open("README.rst", encoding="utf8") as fileR:
README = fix_doc(fileR.read())
with open("CHANGES.rst", encoding="utf8") as fileC:
CHANGES = fix_doc(fileC.read())
requires = [
"requests",
]
tests_require = [] # type: List[str]
setup(
name="Wikipedia-API",
version="0.7.1",
description="Python Wrapper for Wikipedia",
long_description=README + "\n\n" + CHANGES,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Communications :: Email",
"Topic :: Software Development :: Libraries :: Python Modules",
],
author="Martin Majlis",
author_email="martin@majlis.cz",
license="MIT",
url="https://github.com/martin-majlis/Wikipedia-API",
download_url="https://github.com/martin-majlis/Wikipedia-API/archive/master.tar.gz",
keywords="Wikipedia API wrapper",
packages=["wikipediaapi"],
include_package_data=True,
zip_safe=False,
extras_require={
"testing": tests_require,
},
install_requires=requires,
platforms="any",
)