-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup-nodeps.py
51 lines (44 loc) · 1.68 KB
/
setup-nodeps.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
import os
from setuptools import setup, find_packages
from io import open as io_open
src_dir = os.path.abspath(os.path.dirname(__file__))
# collect the requirements for nodeps
install_requires_nodeps = []
requirements_dev = os.path.join(src_dir, 'requirements-dev-nodeps.txt')
with io_open(requirements_dev, mode='r') as fd:
for i in fd.read().strip().split('\n'):
req = i.strip().split('#', 1)[0].strip()
install_requires_nodeps.append(req)
README_md = ''
fndoc = os.path.join(src_dir, 'README.md')
with io_open(fndoc, mode='r', encoding='utf-8') as fd:
README_md = fd.read()
classifiers=[
# (https://pypi.org/pypi?%3Aaction=list_classifiers)
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Utilities'
]
setup(
name='lpd-nodeps',
version='0.4.12',
description='A Fast, Flexible Trainer with Callbacks and Extensions for PyTorch',
long_description_content_type='text/markdown',
long_description=README_md,
license='MIT Licences',
url='https://github.com/roysadaka/lpd',
author='Roy Sadaka',
maintainer='lpd developers',
maintainer_email='torch.lpd@gmail.com',
packages=find_packages(exclude=['tests', 'tests/*', 'examples', 'examples/*']),
install_requires=install_requires_nodeps,
python_requires='>=3.9',
classifiers=classifiers,
keywords=['lpd-nodeps']
)