2023-05-23 13:34:43 +08:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
|
|
@desc: setup
|
|
|
|
@author: 1nchaos
|
|
|
|
@time: 2023/04/05
|
|
|
|
"""
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
from setuptools import find_packages
|
|
|
|
|
|
|
|
here = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
about = {}
|
|
|
|
with open(os.path.join(here, "adata", "__version__.py"), "r") as f:
|
|
|
|
exec(f.read(), about)
|
|
|
|
|
|
|
|
with open("README.md", "r", encoding='utf-8') as f:
|
|
|
|
readme = f.read()
|
|
|
|
|
|
|
|
requires = [
|
2023-10-05 21:15:20 +08:00
|
|
|
"requests>=2.16.0",
|
2023-10-26 01:21:58 +08:00
|
|
|
"pandas>=0.22.0",
|
2023-10-05 21:15:20 +08:00
|
|
|
"beautifulsoup4>=4.0.2",
|
2023-08-08 20:17:52 +08:00
|
|
|
"py_mini_racer>=0.6.0",
|
2023-05-23 13:34:43 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
def setup_package():
|
|
|
|
metadata = dict(
|
|
|
|
name=about["__title__"],
|
|
|
|
version=about["__version__"],
|
|
|
|
description=about["__description__"],
|
|
|
|
long_description=readme,
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
url=about["__url__"],
|
|
|
|
author=about["__author__"],
|
|
|
|
author_email=about["__author_email__"],
|
|
|
|
license=about["__license__"],
|
|
|
|
packages=find_packages(exclude=("tests", "docs")),
|
|
|
|
install_requires=requires,
|
|
|
|
include_package_data=True,
|
|
|
|
classifiers=[
|
|
|
|
# Trove classifiers
|
|
|
|
# Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
|
|
|
"License :: OSI Approved :: MIT License",
|
2023-10-10 11:05:40 +08:00
|
|
|
"Programming Language :: Python :: 3.6",
|
2023-05-23 13:34:43 +08:00
|
|
|
"Programming Language :: Python :: 3.7",
|
|
|
|
"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",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
try:
|
|
|
|
from setuptools import setup
|
|
|
|
except ImportError:
|
|
|
|
from distutils.core import setup
|
|
|
|
|
|
|
|
setup(**metadata)
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
setup_package()
|