-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
44 lines (42 loc) · 1.4 KB
/
setup.py
File metadata and controls
44 lines (42 loc) · 1.4 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File : setup.py.py
# @Author : jade
# @Date : 2022/12/1 14:06
# @Email : jadehh@1ive.com
# @Software : Samples
# @Desc :
from setuptools import setup
import os
with open("acllite/README.md","rb") as fh:
long_description = str(fh.read(),encoding="utf-8")
def find_packages(path,pack_list):
for file_path in os.listdir(path):
if os.path.isdir(os.path.join(path,file_path)):
if "__pycache__" != file_path:
new_path = path.replace("/", ".")
if new_path:
pack_list.append("{}.{}".format(new_path,file_path))
else:
pack_list.append("{}.{}".format(path, file_path))
find_packages(os.path.join(path,file_path),pack_list)
if __name__ == '__main__':
pack_list = ["acllite"]
find_packages("acllite",pack_list)
setup(
name="acllite",
version="1.0.7",
keywords=("pip", "acllite", ""),
description="acllite",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT Licence",
url="https://jadehh@live.com",
author="jade",
author_email="jadehh@live.com",
packages=pack_list,
package_data={'': ['*.so', "*.cpp", "lib*","*.h","*.proto","*.md"]},
include_package_data=True,
platforms="any",
install_requires=[] # 这个项目需要的第三方库
)