xautodl/setup.py

69 lines
1.9 KiB
Python
Raw Normal View History

2021-05-18 16:08:00 +02:00
#####################################################
# Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2021.05 #
#####################################################
"""The setup function for pypi."""
# The following is to make nats_bench avaliable on Python Package Index (PyPI)
#
# conda install -c conda-forge twine # Use twine to upload nats_bench to pypi
#
# python setup.py sdist bdist_wheel
# python setup.py --help-commands
# twine check dist/*
#
# twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# twine upload dist/*
# https://pypi.org/project/xautodl
#
# TODO(xuanyidong): upload it to conda
#
2021-06-01 14:19:48 +02:00
# [2021.06.01] v0.9.9
2021-08-15 01:01:07 +02:00
# [2021.08.14] v1.0.0
#
2021-05-18 16:08:00 +02:00
import os
2021-05-19 07:00:33 +02:00
from setuptools import setup, find_packages
2021-05-18 16:08:00 +02:00
NAME = "xautodl"
REQUIRES_PYTHON = ">=3.6"
DESCRIPTION = "Automated Deep Learning Package"
2021-08-15 01:01:07 +02:00
VERSION = "1.0.0"
2021-05-18 16:08:00 +02:00
def read(fname="README.md"):
2021-05-19 07:00:33 +02:00
with open(
os.path.join(os.path.dirname(__file__), fname), encoding="utf-8"
) as cfile:
2021-05-18 16:08:00 +02:00
return cfile.read()
# What packages are required for this module to be executed?
REQUIRED = ["numpy>=1.16.5", "pyyaml>=5.0.0", "fvcore"]
2021-05-18 16:08:00 +02:00
2021-05-26 10:53:44 +02:00
packages = find_packages(
exclude=("tests", "scripts", "scripts-search", "lib*", "exps*")
)
2021-05-19 07:00:33 +02:00
print("packages: {:}".format(packages))
2021-05-18 16:08:00 +02:00
setup(
name=NAME,
version=VERSION,
author="Xuanyi Dong",
author_email="dongxuanyi888@gmail.com",
description=DESCRIPTION,
license="MIT Licence",
keywords="NAS Dataset API DeepLearning",
url="https://github.com/D-X-Y/AutoDL-Projects",
2021-05-19 07:00:33 +02:00
packages=packages,
2021-05-18 16:08:00 +02:00
install_requires=REQUIRED,
python_requires=REQUIRES_PYTHON,
long_description=read("README.md"),
long_description_content_type="text/markdown",
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Database",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"License :: OSI Approved :: MIT License",
],
)