Skip to content

Test running streamlit commands "bare"#133

Merged
tconkling merged 19 commits intostreamlit:developfrom
tconkling:tim/RawReportRunFixes
Sep 18, 2019
Merged

Test running streamlit commands "bare"#133
tconkling merged 19 commits intostreamlit:developfrom
tconkling:tim/RawReportRunFixes

Conversation

@tconkling
Copy link
Copy Markdown
Contributor

@tconkling tconkling commented Sep 18, 2019

  • Adds a new test step to CircleCI: "Run Integration Tests", and an associated Make rule make integration-tests
  • This runs scripts/run_bare_integration_tests.py, which runs all the e2e tests in "bare" mode - that is, via python script.py instead of streamlit run script.py. The test script ensures that all the e2e scripts exit with a zero exit code.
  • Streamlit detects if it's running in bare mode via a new global, _is_running_with_streamlit. This defaults to false, and gets set to true by the streamlit run CLI command.
  • When running in bare mode, streamlit does not show "missing ReportContext" warnings.
  • This PR also pins the streamlit numpy dependency to < 1.17 when installed in a Python 2 environment; numpy 1.17 dropped support for Py2.

Fixes #122, #108

# By Nahuel Emiliano Rosso Fandiño (3) and others
# Via GitHub
* develop:
  Fixing unbound local variable (streamlit#110)
  Support hashing dataframes with unhashable objects. Gracefully f… (streamlit#118)
  Fix hashing if the object has a name but the name is not a string. (streamlit#117)
  Fixed marshalling images with Alpha channel (streamlit#109)
  Adding `streamlit run` by url (streamlit#99)
  Fixed broken websocket when reconnect (streamlit#105)

# Conflicts:
#	lib/tests/streamlit/cli_test.py
Python's silly import rules are causing this file to be imported
by other libraries who do 'import json', which is definitely not
what's intended
@tconkling tconkling requested review from kantuni and tvst September 18, 2019 16:48
@jrhone
Copy link
Copy Markdown
Contributor

jrhone commented Sep 18, 2019

So there weren't any errors running reports in bare mode, only a warning to hide?

@tconkling
Copy link
Copy Markdown
Contributor Author

tconkling commented Sep 18, 2019

So there weren't any errors running reports in bare mode, only a warning to hide?

Correct!

@tconkling tconkling merged commit 86df5a4 into streamlit:develop Sep 18, 2019
@tconkling tconkling deleted the tim/RawReportRunFixes branch September 18, 2019 18:20
tconkling added a commit to tconkling/streamlit that referenced this pull request Sep 23, 2019
* develop: (54 commits)
  Removing uber demo from streamlit repo (streamlit#159)
  Release 0.46.0 (streamlit#170)
  Magic fixes (streamlit#138)
  [docs] Add analytics; redirect /secret/docs; fix compilation problem (streamlit#149)
  Fix bug for startup under windows (streamlit#144)
  Responsive layout (streamlit#104)
  Add basic PR template
  Better method signatures (streamlit#88)
  Publish docs to both /docs and /secret/docs, until we deprecate /secret/docs in January. (streamlit#141)
  Rename/report2app (streamlit#126)
  Test running streamlit commands "bare" (streamlit#133)
  Updates to LP and sidebar. (streamlit#134)
  tests for z-index of date input popover in sidebar (streamlit#131)
  cypress test for escaping html in markdown (streamlit#125)
  On a Mac, check if xcode installed before requiring watchdog (streamlit#91)
  [Docs] Fix st.slider API in tutorial (streamlit#98)
  Sidebar exceptions (streamlit#107)
  Fixing unbound local variable (streamlit#110)
  Support hashing dataframes with unhashable objects. Gracefully f… (streamlit#118)
  Fix hashing if the object has a name but the name is not a string. (streamlit#117)
  ...
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.

Verify that Streamlit scripts still work when run with just Python (and fix any issues)

3 participants