-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
39 lines (32 loc) · 1.21 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
from setuptools import find_packages
from setuptools import setup
from setuptools.command.install import install
with open('requirements.txt') as f:
content = f.readlines()
requirements = [x.strip() for x in content if 'git+' not in x]
from pathlib import Path
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
class DownloadNLTK(install):
def run(self):
self.do_egg_install()
import nltk
nltk.download('wordnet')
nltk.download('punkt')
nltk.download('stopwords')
nltk.download('averaged_perceptron_tagger')
nltk.download('omw')
setup(name='asktanya',
version="1.0.16",
description="Ask-tanya anything! Asktanya is a Python framework to search factual information on the internet.",
# other arguments omitted
long_description=long_description,
long_description_content_type='text/markdown',
packages=find_packages(),
install_requires=requirements,
test_suite='tests',
cmdclass={'download_nltk': DownloadNLTK},
# include_package_data: to install data from MANIFEST.in
include_package_data=True,
scripts=['scripts/ask-tanya'],
zip_safe=False)