Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix problem with missing static/ directory, added Travis config for setup py test #416

Closed
wants to merge 1 commit into from

Conversation

javabrett
Copy link
Contributor

No description provided.

@javabrett javabrett force-pushed the travis-setup-py-test branch from 5735c88 to 5b6738d Compare December 24, 2017 05:26
@@ -8,6 +8,10 @@ matrix:
env: TOXENV=py27
- python: 3.6
env: TOXENV=py36
- python: 3.6
env: TOXENV=
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is env really necessary here? You're overriding the script below

httpbin/core.py Outdated
# https://github.com/kennethreitz/flask-common/issues/7
# https://github.com/evansd/whitenoise/issues/166
if not os.path.exists('static'):
os.mkdir('static')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem like the right fix. People could run httpbin with a restricted user that cannot make directories or files. In that case, it seems like this is going to be a problem for them. Yes they could just make the directory themselves, but that seems to be lacking.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah let's at least wrap that in a try/except

@sigmavirus24 sigmavirus24 self-assigned this Jan 3, 2018
@javabrett javabrett force-pushed the travis-setup-py-test branch from 5b6738d to fb9e4ca Compare May 6, 2018 09:12
@javabrett
Copy link
Contributor Author

Per the commentary above, it is correct to now close/abandon this. I will split-out the Travis test into a separate PR which does not include the directory forced-creation. If #442 is resolved per #447 by removing Flask-Common then this issue is resolved.

@javabrett javabrett closed this May 6, 2018
@javabrett javabrett deleted the travis-setup-py-test branch May 6, 2018 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants