-
Notifications
You must be signed in to change notification settings - Fork 636
/
setup.py
53 lines (45 loc) · 1.48 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
# !/usr/bin/python
# -*- coding: utf-8 -*-
#
# @author: mmmwhy <[email protected]>
# @date: 2022/01/22
#
import json
from setuptools import find_packages, setup
# 读取文件内容
def read_file(filename):
with open(filename, encoding='utf-8') as f:
long_description = f.read()
return long_description
# 获取依赖
def read_requirements(filename):
return [line.strip() for line in read_file(filename).splitlines()
if not line.startswith('#')]
setup(
name='pure_attention',
version=json.loads(read_file("package.json"))["version"],
description='use pure attention implement cv/nlp backbone',
long_description=read_file('README.md'),
long_description_content_type="text/markdown",
license='Apache License 2.0',
url="https://github.com/mmmwhy/pure_attention",
author='mmmwhy',
author_email="[email protected]",
install_requires=read_requirements("requirements.txt"),
packages=find_packages(include=['pure_attention.*']),
include_package_data=True
)
# setup(
# name='pure_attention',
# version="0.0.17",
# description='use pure attention implement cv/nlp backbone',
# long_description="",
# long_description_content_type="text/markdown",
# license='Apache License 2.0',
# url="https://github.com/mmmwhy/pure_attention",
# author='mmmwhy',
# author_email="[email protected]",
# install_requires="",
# packages=["pure_attention"],
# include_package_data=True
# )