You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I initially flagged this issue under the sti-python as sclorg/s2i-python-container#85 with the aim of getting comments from the maintainers of it, but no response as yet, so adding it here now.
The problem is that oc new-app when detecting if a Git repository under the Source strategy is a Python application, is not looking for the setup.py file, which would identify it as a Python application where package dependencies are listed in the setup.py file rather than a requirements.txt file.
For some reason it is looking for config.py when config.py has no significance that I know of in the Python world.
The assemble script in sti-python itself only treats requirements.txt and setup.py as significant and a trigger for package installation etc.
Perhaps someone looked at the Ruby detector and since it used config.ru wrongly though that Python should use config.py. I can see no other reason why config.py would be used.
Totally agree with you @GrahamDumpleton. @bparees do we want to keep "config.py" there for backwards-compatibility? I'd just get rid of it since it indeed has no special meaning in a Python project.
Activity
rhcarvalho commentedon Jan 7, 2016
Totally agree with you @GrahamDumpleton. @bparees do we want to keep "config.py" there for backwards-compatibility? I'd just get rid of it since it indeed has no special meaning in a Python project.
bparees commentedon Jan 7, 2016
@rhcarvalho i'm fine with getting rid of the config.py check.