Skip to content

Commit

Permalink
[feat] Update automl_common and add setup.py for submodule (automl#324)
Browse files Browse the repository at this point in the history
* [feat] Update automl_common and add setup.py for submodule

* [test] Test without the requirement of automl_common in setup.py

* [test] Fix according to Ravin's comment

* [test] Fix according to Ravin's comment
  • Loading branch information
nabenabe0928 authored Nov 12, 2021
1 parent b50775c commit f089845
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion autoPyTorch/automl_common
11 changes: 8 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import setuptools
import sys


if sys.version_info < (3, 7):
raise ValueError(
'Unsupported Python version %d.%d.%d found. Auto-PyTorch requires Python '
'3.7 or higher.' % (sys.version_info.major, sys.version_info.minor, sys.version_info.micro)
'Auto-Pytorch requires Python 3.7 or higher, but found version {}.{}.{}'.format(
sys.version_info.major, sys.version_info.minor, sys.version_info.micro
)
)

with open("README.md", "r") as f:
Expand All @@ -14,6 +17,7 @@
for line in f:
requirements.append(line.strip())


# noinspection PyInterpreter
setuptools.setup(
name="autoPyTorch",
Expand Down Expand Up @@ -71,5 +75,6 @@
},
test_suite="pytest",
data_files=[('configs', ['autoPyTorch/configs/default_pipeline_options.json']),
('portfolio', ['autoPyTorch/configs/greedy_portfolio.json'])]
('portfolio', ['autoPyTorch/configs/greedy_portfolio.json'])],
dependency_links=['https://github.com/automl/automl_common.git/tarball/autoPyTorch#egg=package-0.0.1']
)

0 comments on commit f089845

Please sign in to comment.