Skip to content
Snippets Groups Projects
Commit 2d166c72 authored by u214892's avatar u214892
Browse files

#42 run baselines in ci

parent 8e3c7379
No related branches found
No related tags found
1 merge request!242 run baselines in ci
Pipeline #1389 canceled
# setup.py is not able to handle git+https, therefore install flatland manually
# git+https://gitlab.aicrowd.com/flatland/flatland.git@master
git+https://gitlab.aicrowd.com/flatland/flatland.git@master
torch>=1.1.0
\ No newline at end of file
from setuptools import setup, find_packages
install_reqs = []
dependency_links = []
# TODO: include requirements_RLLib_training.txt
requirements_paths = ['requirements_torch_training.txt'] # , 'requirements_RLLib_training.txt']
for requirements_path in requirements_paths:
......@@ -8,8 +9,15 @@ for requirements_path in requirements_paths:
install_reqs += [
s for s in [
line.strip(' \n') for line in f
] if not s.startswith('#') and s != ''
] if not s.startswith('#') and s != '' and not s.startswith('git+')
]
with open(requirements_path, 'r') as f:
dependency_links += [
s for s in [
line.strip(' \n') for line in f
] if s.startswith('git+')
]
requirements = install_reqs
setup_requirements = install_reqs
test_requirements = install_reqs
......@@ -40,6 +48,7 @@ setup(
setup_requires=setup_requirements,
test_suite='tests',
tests_require=test_requirements,
dependency_links=dependency_links,
url='https://gitlab.aicrowd.com/flatland/baselines',
version='0.1.1',
zip_safe=False,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment