-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
48 lines (43 loc) · 1.7 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
from os import path as os_path
from setuptools import setup, find_packages
this_directory = os_path.abspath(os_path.dirname(__file__))
def read_file(filename):
with open(os_path.join(this_directory, filename), encoding='utf-8') as f:
long_description = f.read()
return long_description
setup(
name="article-parser",
version='0.0.0',
author="myifeng",
author_email="[email protected]",
maintainer="myifeng",
maintainer_email="[email protected]",
keywords="article news html parser Extract extractor body",
description="A parser that parses articles from any url or html",
long_description=read_file('README.md'),
long_description_content_type="text/markdown",
url="https://github.com/myifeng/article-parser",
packages=find_packages(exclude=['.github', 'test']),
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation",
],
python_requires='>=3.8',
version_config={
"template": "{tag}",
"dirty_template": "{tag}",
"dev_template": "{tag}"
},
setup_requires=["setuptools-git-versioning"],
install_requires = ['beautifulsoup4==4.12.3', 'html2text==2020.1.16', 'requests==2.32.3', 'lxml==5.2.2']
)