加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
decbe 提交于 2024-04-19 15:09 . format code
import os
# from distutils.core import setup
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), "README.rst")) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
def get_requirements():
with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f:
requirements_list = [req.strip() for req in f.readlines()]
return requirements_list
setup(
name="idcops",
version="2.0.1",
packages=find_packages(),
include_package_data=True,
license="Apache License 2.0",
description="A data center inventory management software",
long_description=README,
url="https://www.idcops.cn/",
author="Vivian Cheung",
author_email="294060408@qq.com",
install_requires=get_requirements(),
classifiers=[
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 2.1.x",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache License 2.0",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
],
python_requires=">=3.5",
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化