-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
65 lines (53 loc) · 1.63 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Project : tql-Python.
# @File : setup
# @Time : 2019-06-17 16:12
# @Author : yuanjie
# @Email : yuanjie@xiaomi.com
# @Software : PyCharm
# @Description :
import os
import time
from pathlib import Path
from setuptools import find_packages, setup
# rename
package_name = project_name = Path(".").cwd().name
version = time.strftime("%Y.%m.%d.%H.%M.%S", time.localtime())
with open("README.md", encoding='utf-8') as f:
long_description = f.read()
def get_requirements():
_ = './requirements.txt'
if os.path.isfile(_):
with open(_, encoding='utf-8') as f:
return f.read().split()
setup(
name=package_name,
version=version,
url=f'https://github.com/Jie-Yuan/{project_name}',
keywords=["deepctr", "deepnn", 'deepfm'],
description=('深度学习工具类'),
long_description=long_description,
long_description_content_type="text/markdown",
author='JieYuan',
author_email='313303303@qq.com',
maintainer='JieYuan',
maintainer_email='313303303@qq.com',
license='MIT',
packages=find_packages(),
include_package_data=True,
package_data={'': ['*.*']},
platforms=["all"],
python_requires='>=3.6',
classifiers=[
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: Implementation',
],
install_requires=get_requirements(),
entry_points={'console_scripts': [
'tql-cli=tql.utils.cli:cli'
]}
)