-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
54 lines (49 loc) · 1.25 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
43
44
45
46
47
48
49
50
51
52
53
54
import os
import sys
from pathlib import Path
from setuptools import setup, find_packages
if sys.version_info.major != 3:
raise RuntimeError("This package requires Python 3+")
version = '0.0.1'
pkg_name = 'newz'
gitrepo = 'GrowthEngineAI/newspaper4k'
root = Path(__file__).parent
requirements = [
'httpx',
'loguru',
'beautifulsoup4',
'newspaper3k',
'tldextract',
'nltk',
'anyio',
'file-io',
]
args = {
'packages': find_packages(include = ['newz', 'newz.*']),
'install_requires': requirements,
'include_package_data': True,
'zip_safe': False,
'long_description': root.joinpath('README.md').read_text(encoding='utf-8'),
'entry_points': {
"console_scripts": [
#"newz = newz.cli:launch",
]
}
}
setup(
name=pkg_name,
version=version,
url=f'https://github.com/{gitrepo}',
license='MIT Style',
description='newspaper',
author='Tri Songz',
author_email='ts@growthengineai.com',
long_description_content_type="text/markdown",
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.7',
'Topic :: Software Development :: Libraries',
],
**args
)