-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsetup.py
68 lines (55 loc) · 2.19 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
60
61
62
63
64
65
66
67
68
# -*- coding: utf-8
import os
from setuptools import find_packages, setup
package_data = []
proj_dir = os.path.dirname(__file__)
templates = os.path.join(proj_dir, 'resources', 'templates')
for root, dirs, names in os.walk(templates):
for fname in names:
abspath = os.path.join(root, fname)
relpath = os.path.relpath(proj_dir, abspath)
package_data.append(relpath)
print(relpath)
here = os.path.abspath(os.path.dirname(__file__))
# Get __version__ variable
exec(open(os.path.join(here, 'pfio', 'version.py')).read())
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='pfio',
version=__version__,
description='PFN IO library',
author='Tianqi Xu, Kota Uenishi',
author_email='tianqi@preferred.jp, kota@preferred.jp',
url='http://github.com/pfnet/pfio',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Topic :: System :: Filesystems',
],
long_description=long_description,
long_description_content_type='text/markdown',
packages=find_packages(),
package_data={'pfio': package_data},
extras_require={
'test': ['pytest', 'flake8', 'autopep8', 'parameterized', 'isort', 'moto[server]>=5.0.0', 'numpy', 'mypy'],
# When updating doc deps, docs/requirements.txt should be updated too
'doc': ['sphinx', 'sphinx_rtd_theme'],
'bench': ['numpy>=1.19.5', 'torch>=1.9.0', 'Pillow<=8.2.0'],
'hdfs': ['pyarrow>=6.0.0'],
'trace': ['pytorch-pfn-extras'],
},
# When updating install requires, docs/requirements.txt should be updated too
install_requires=['boto3', 'deprecation', 'urllib3'],
include_package_data=True,
zip_safe=False,
keywords='filesystem hdfs chainer development',
)