第一次提交
This commit is contained in:
66
setup.py
Normal file
66
setup.py
Normal file
@@ -0,0 +1,66 @@
|
||||
"""
|
||||
KaMiXiTong - 软件授权管理系统
|
||||
安装脚本
|
||||
"""
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
import os
|
||||
|
||||
# 读取README文件
|
||||
def read_readme():
|
||||
with open('README.md', 'r', encoding='utf-8') as f:
|
||||
return f.read()
|
||||
|
||||
# 读取requirements文件
|
||||
def read_requirements():
|
||||
with open('requirements.txt', 'r', encoding='utf-8') as f:
|
||||
return [line.strip() for line in f if line.strip() and not line.startswith('#')]
|
||||
|
||||
setup(
|
||||
name='kamaxitong',
|
||||
version='1.0.0',
|
||||
description='一款面向Python开发者的轻量化软件授权控制+全生命周期管理系统',
|
||||
long_description=read_readme(),
|
||||
long_description_content_type='text/markdown',
|
||||
author='KaMiXiTong Team',
|
||||
author_email='support@example.com',
|
||||
url='https://github.com/example/kamaxitong',
|
||||
packages=find_packages(),
|
||||
include_package_data=True,
|
||||
install_requires=read_requirements(),
|
||||
python_requires='>=3.6',
|
||||
extras_require={
|
||||
'dev': [
|
||||
'pytest>=7.4.2',
|
||||
'pytest-cov>=4.1.0',
|
||||
'pyarmor>=8.0.0',
|
||||
]
|
||||
},
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
'kamaxitong-server=run:main',
|
||||
],
|
||||
},
|
||||
classifiers=[
|
||||
'Development Status :: 4 - Beta',
|
||||
'Intended Audience :: Developers',
|
||||
'License :: OSI Approved :: MIT License',
|
||||
'Operating System :: OS Independent',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.6',
|
||||
'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',
|
||||
'Topic :: Software Development :: Libraries :: Python Modules',
|
||||
'Topic :: Security',
|
||||
'Topic :: System :: Systems Administration',
|
||||
],
|
||||
keywords='software license authorization protection python',
|
||||
project_urls={
|
||||
'Bug Reports': 'https://github.com/example/kamaxitong/issues',
|
||||
'Source': 'https://github.com/example/kamaxitong',
|
||||
'Documentation': 'https://docs.example.com/kamaxitong',
|
||||
},
|
||||
)
|
||||
Reference in New Issue
Block a user