-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (37 loc) · 1.32 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
from setuptools import setup
from setuptools.command.install import install as _install
class DownloadNLTK(_install):
def run(self):
self.do_egg_install()
import nltk
required_nltk = [
'brown', # Required for FastNPExtractor
'punkt', # Required for WordTokenizer
'maxent_treebank_pos_tagger', # Required for NLTKTagger
'movie_reviews', # Required for NaiveBayesAnalyzer
'wordnet', # Required for lemmatization and Wordnet
'stopwords'
]
for i in required_nltk:
nltk.download(i)
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name="newsscrapper-SamirPS", # Replace with your own username
version="1.0.5",
author="SamirPS",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/SamirPS/News-Scrapper",
install_requires=["requests", "bs4", "lxml","newspaper3k"],
packages=["newsscrapper"],
include_package_data=True,
license='MIT',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
cmdclass={'download_nltk': DownloadNLTK},
)