-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
69 lines (58 loc) · 1.72 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import json
import platform
from setuptools import setup, find_packages
import os
VERSION = '0.0.6'
NAME = "gitpyman"
with open("README.md","r",encoding="utf-8") as fp:
long_description = fp.read()
BASE_REQUIRES =[
'docopt',
'lxml==4.2.1',
'sqlalchemy',
'github3.py',
'eventlet',
]
global REQUIRES
try:
from PyQt5.QtCore import QT_VERSION_STR
if tuple(map(int,QT_VERSION_STR.split("."))) > (5,10,1):
REQUIRES = BASE_REQUIRES + [
'pyqt5',
'PyQtWebEngine',
]
else:
REQUIRES = BASE_REQUIRES
except:
REQUIRES = BASE_REQUIRES + [
'pyqt5==5.10.1',
]
setup(name=NAME,
version=VERSION,
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords='python、PyQt5、github Manage',
author='Lin JH',
author_email='625781186@qq.com',
url='https://github.com/625781186/gitpyman',
license='GPL-3.0',
description="comment your github.",
long_description=long_description,
long_description_content_type='text/markdown', # This is important
# --------------------------------------------#
# package_dir={'source': './gitpyman'},
packages=find_packages(),
include_package_data=True, # 和下面的写法冲突
# package_data={
# "": ["*"],
# },
zip_safe=False,
python_requires='>=3.6',
install_requires=REQUIRES,
# copy .py file to python's Srcipts
scripts=[],
entry_points={
'console_scripts': [
'gitpyman = gitpyman.gm_run:run'# 这个是启动的exe命令
]
},
)