-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
39 lines (34 loc) · 1015 Bytes
/
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
import os
from setuptools import setup
PACKAGE_NAME = "mw2slob"
def find_package_data():
cwd = os.getcwd()
os.chdir(PACKAGE_NAME)
results = []
for name in ["css", "js", "images", "filters", "MathJax"]:
for root, _, files in os.walk(name):
for filename in files:
results.append(os.path.join(root, filename))
os.chdir(cwd)
return results
setup(
name=PACKAGE_NAME,
version="1.1",
description=(
"Create slob dictionary files from mwscrape CouchDB "
"or Wikimedia Enterprise HTML Dumps"
),
author="Igor Tkach",
author_email="[email protected]",
url="http://github.com/itkach/mw2slob",
license="GPL3",
packages=[PACKAGE_NAME],
package_data={PACKAGE_NAME: find_package_data()},
install_requires=["Slob >= 1.0", "lxml", "CouchDB", "cssselect", "cssutils", "bs4"],
zip_safe=False,
entry_points={
"console_scripts": [
f"mw2slob={PACKAGE_NAME}.cli:main",
]
},
)