setup.py 1.61 KB
Newer Older
lim's avatar
lim committed
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
import sys
import setuptools

if sys.version_info < (3,):
    raise Exception("Python 2 is not supported by dcu-megatron.")

__description__ = 'dcu-megatron of Sugon'
__version__ = '0.13.0+das.opt1.dtk25042'
__author__ = 'Sugon'
__keywords__ = 'dcu-megatron, language, deep learning, NLP'
__package_name__ = 'dcu-megatron'
__contact_names__ = 'Sugon'

try:
    with open("README.md", "r") as fh:
        long_description = fh.read()
except FileNotFoundError:
    long_description = ''


setuptools.setup(
    name=__package_name__,
    # Versions should comply with PEP440.  For a discussion on single-sourcing
    # the version across setup.py and the project code, see
    # https://packaging.python.org/en/latest/single_source_version.html
    version=__version__,
    description=__description__,
    long_description=long_description,
    long_description_content_type="text/markdown",
    author=__contact_names__,
    maintainer=__contact_names__,
    classifiers=[
        # Supported python versions
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3.9',
        'Programming Language :: Python :: 3.10',
        # Additional Setting
        'Environment :: Console',
        'Natural Language :: English',
        'Operating System :: OS Independent',
    ],
    python_requires='>=3.8',
    packages=setuptools.find_namespace_packages(include=["dcu_megatron", "dcu_megatron.*"]),
    # Add in any packaged data.
    include_package_data=True,
    install_package_data=True,
    zip_safe=False,
    # PyPI package information.
    keywords=__keywords__,
    cmdclass={},
    ext_modules=[]
)