Skip to content

Commit

Permalink
Fix setup.py and import of my utils file
Browse files Browse the repository at this point in the history
  • Loading branch information
Samir Akarioh committed Dec 8, 2022
1 parent f9bc608 commit 10744d7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion newsscrapper/en.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from utils import return_information
from .utils import return_information


def CNNSC():
Expand Down
2 changes: 1 addition & 1 deletion newsscrapper/es.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from utils import return_information
from .utils import return_information


def ELPAISSC():
Expand Down
2 changes: 1 addition & 1 deletion newsscrapper/fr.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from utils import return_information
from .utils import return_information


def MondeSC():
Expand Down
14 changes: 8 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from setuptools import setup,find_packages
from setuptools import setup
from setuptools.command.install import install as _install

import nltk

class DownloadNLTK(install):
class DownloadNLTK(_install):
def run(self):
self.do_egg_install()
import nltk
required_nltk = [
'brown', # Required for FastNPExtractor
'punkt', # Required for WordTokenizer
Expand All @@ -23,20 +23,22 @@ def run(self):

setup(
name="newsscrapper-SamirPS", # Replace with your own username
version="1.0.2",
version="1.0.4",
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=find_packages(),
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()},
cmdclass={'download_nltk': DownloadNLTK},
)


0 comments on commit 10744d7

Please sign in to comment.