-
Notifications
You must be signed in to change notification settings - Fork 76
/
setup.py
78 lines (66 loc) · 2.4 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
68
69
70
71
72
73
74
75
76
77
78
# coding=utf-8
from pathlib import Path
from setuptools import setup, find_packages
import os
# with open("README.md", "r",encoding='utf8') as fh:
# long_description = fh.read()
# filepath = ((Path(__file__).parent / Path('README.md')).absolute()).as_posix()
filepath = 'README.md'
print(filepath)
extra_requires = {'all': ['pymongo==4.3.3', 'elasticsearch', 'kafka-python==2.0.2','loguru' ], }
install_requires = [
'tomorrow3==1.1.0',
'concurrent-log-handler==0.9.23',
'requests',
'python-json-logger==0.1.10',
'nb_filelock',
'service-identity',
'deprecated==1.2.14',
'chained_mode_time_tool',
'nb_libs',
'logging_tree'
]
# if os.name == 'nt':
# install_requires.append('pywin32')
print(f'nb_log install_requires:{install_requires}')
setup(
name='nb_log', #
version="13.2",
description=(
'very sharp color display,monkey patch bulitin print and high-performance multiprocess safe roating file handler,other handlers includeing dintalk ,email,kafka,elastic and so on '
),
keywords=["logging", "logger", "multiprocess file handler", "color handler","loguru"],
# long_description=open('README.md', 'r',encoding='utf8').read(),
long_description_content_type="text/markdown",
long_description=open(filepath, 'r', encoding='utf8').read(),
url='https://github.com/ydf0509/nb_log',
# data_files=[filepath],
author='bfzs',
author_email='[email protected]',
maintainer='ydf',
maintainer_email='[email protected]',
license='BSD License',
packages=find_packages(),
include_package_data=True,
platforms=["all"],
classifiers=[
'Development Status :: 4 - Beta',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: Implementation',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries'
],
install_requires=install_requires,
extras_require = extra_requires
)
"""
打包上传
python setup.py sdist upload -r pypi
python setup.py sdist & twine upload dist/nb_log-6.0.tar.gz
python setup.py sdist & python -m twine upload dist/nb_log-10.3.tar.gz
twine upload dist/*
python -m pip install nb_log --upgrade -i https://pypi.org/simple # 及时的方式,不用等待 阿里云 豆瓣 同步
"""