forked from attardi/wikiextractor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (36 loc) · 1.29 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
from setuptools import setup, find_packages
import re
from wikiextractor.WikiExtractor import __version__
def get_version(version):
if re.match(r'^\d+\.\d+$', version):
return version + '.0'
return version
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='wikiextractor',
version=get_version(__version__),
author='Giuseppe Attardi',
author_email='[email protected]',
description='A tool for extracting plain text from Wikipedia dumps',
long_description=long_description,
long_description_content_type="text/markdown",
license='GNU Affero General Public License',
install_requires=[],
url="https://github.com/attardi/wikiextractor",
packages=find_packages(include=["wikiextractor"]),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Text Processing :: Linguistic',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
'Programming Language :: Python :: 3'
],
entry_points={
"console_scripts": [
"wikiextractor = wikiextractor.WikiExtractor:main",
"extractPage = wikiextractor.extractPage:main",
]
},
python_requires='>=3.6',
)