forked from CielAl/torch-staintools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
27 lines (24 loc) · 892 Bytes
/
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
from setuptools import setup, find_packages
from pkg_resources import parse_requirements
with open('requirements.txt') as root:
requirements = [str(req) for req in parse_requirements(root)]
version_dict = {}
with open("./torch_staintools/version.py") as fp:
exec(fp.read(), version_dict)
version = version_dict["__version__"]
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
setup(
name='torch-staintools',
version=version,
packages=find_packages(exclude=["tests*", "tests.*"]),
url='https://github.com/CielAl/torch-staintools',
license='MIT',
author='Y Z',
author_email='[email protected]',
description='GPU-accelerated stain normalization and augmentation',
install_requires=requirements,
python_requires='>=3.10',
long_description=long_description,
long_description_content_type='text/markdown',
)