File size: 1,929 Bytes
f4dcc30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import subprocess
import datetime
import sys

def install(package):
  subprocess.check_call([sys.executable, "-m", "pip", "install", package])

install('setuptools')
install('gitpython')

import setuptools
import git

# repo = git.Repo('/home/shen_yuan/OFT/DeBERTa', search_parent_directories=True)
date=datetime.datetime.utcnow()

# with open("README.md", "r") as fh:
#   # long_description = fh.read() + f'\n git version: {repo.head.object.hexsha}' + \
#   # f'\n date: {date}'
#   long_description = fh.read() + f'\n git version: ' + \
#   f'\n date: {date}'
long_description = "deberta long des"

with open('VERSION') as fs:
    version = fs.readline().strip()
#    version += f".dev{date.strftime('%y%m%d%H%M%S')}"

with open('requirements.txt') as fs:
    requirements = [l.strip() for l in fs if not l.strip().startswith('#')]

extras = {}
extras["docs"] = ["recommonmark", "sphinx", "sphinx-markdown-tables", "sphinx-rtd-theme"]

setuptools.setup(
    name="DeBERTa",
    version=version,
    author="penhe",
    author_email="penhe@microsoft.com",
    description="Decoding enhanced BERT with Disentangled Attention",
    keywords="NLP deep learning transformer pytorch Attention BERT RoBERTa DeBERTa",
    license="MIT",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/microsoft/DeBERTa",
    packages=setuptools.find_packages(exclude=['__pycache__']),
    package_dir = {'DeBERTa':'DeBERTa'},
    classifiers=[
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
    python_requires='>=3.6',
    extras_require=extras,
    install_requires=requirements)