Handle JuliaProject.toml properly
@@ -21,6 +21,9 @@ class JuliaProjectTomlBuildPack(PythonBuildPack):
@property
def julia_version(self):
default_julia_version = '1.1.0'
+ if os.path.exists(self.binder_path('JuliaProject.toml'):
+ project_toml = toml.load(self.binder_path('JuliaProject.toml'))
+ else:
project_toml = toml.load(self.binder_path('Project.toml'))
if 'compat' in project_toml:
if 'julia' in project_toml['compat']:
