-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
59 lines (50 loc) · 1.53 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
54
55
56
57
58
59
# type: ignore
# -*- coding: utf-8 -*-
import shlex
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [("pytest-args=", "a", "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = ""
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
self.pytest_args = ["tests"] + shlex.split(self.pytest_args)
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
setup(
name="delta-task",
version="0.8.4rc1",
license_files=("LICENSE"),
packages=find_packages(),
include_package_data=True,
exclude_package_data={"": [".gitignore"]},
install_requires=[
"cloudpickle>=1.6.0",
"httpx>=0.23.0",
"numpy>=1.22.0",
"Pillow>=9.1.1",
"pandas>=1.2.3",
"pytest>=6.2.5",
"torch>=1.8.2",
"networkx>=2.7.1"
],
tests_require=["pytest"],
cmdclass={"test": PyTest},
test_suite="tests",
zip_safe=False,
author="miaohong",
author_email="73902525@qq.com",
description="delta framework",
python_requires=">=3.6",
url="https://github.com/delta-mpc/delta",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
)