-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
37 lines (33 loc) · 1.45 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
# -*- coding: utf-8 -*-
import setuptools
import flask_ssm
base_url = "https://github.com/ZongXR/Flask-SSM"
with open("./README.md", "r", encoding="utf-8") as f:
long_description = f.read()
long_description = long_description.replace("./test/demo", base_url + "/tree/main/test/demo")
long_description = long_description.replace("./app.py", base_url + "/tree/main/app.py")
packages = list(filter(lambda x: not x.startswith("test"), setuptools.find_packages()))
requires_list = open('./requirements.txt', 'r', encoding='utf8').readlines()
requires_list = [x.strip() for x in requires_list if (not x.startswith("PyMySQL")) and (not x.startswith("setuptools"))]
setuptools.setup(
name="Flask-SSM",
version=flask_ssm.__version__,
author="Xiangrui Zong",
author_email="zxr@tju.edu.cn",
description="A Flask based package imitate with Spring Framework",
long_description=long_description,
long_description_content_type="text/markdown",
url=base_url,
packages=packages,
license="GNU General Public License v3 (GPLv3)",
classifiers=[
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Natural Language :: Chinese (Simplified)',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries',
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
],
python_requires='>=3.7,<3.11',
install_requires=requires_list
)