Skip to content

v1.16.0

Compare
Choose a tag to compare
@jacksonlee-civis jacksonlee-civis released this 14 Dec 11:06
96a31a7

Added

  • Added documentation around testing code using mocking (#447)
  • Added the type of civis.response.Response and civis.response.PaginatedResponse
    returned in the API resources documentation (#438)
  • Added job ID and run ID as custom headers in API calls (#437)
  • Added support for Python 3.9 (#436)
  • Added job ID and run ID to the exception message of CivisJobFailure
    coming from a CivisFuture object (#426)
  • Added the encoding parameter to both civis.io.read_civis and civis.io.read_civis_sql,
    so that these two functions can retrieve non-UTF-8 data when use_pandas is False. (#424)
  • ContainerFuture propagates error messages from logs (#416)
  • Added EmptyResultError to civis.io.read_civis docs (#412)
  • Added default values from swagger in client method's signature (#417)

Changed

  • Explicitly stated CSV-like civis file format requirement in
    civis.io.civis_file_to_table's docstring (#445)
  • Called out the fact that joblib.Parallel's pre_dispatch defaults to "2*n_jobs"
    in the Sphinx docs (#443)
  • Updated civis_api_spec.json, moved it to under civis/resources/, and checked in
    a script to facilitate updating it again (#440, #441)
  • Bumped version numbers for dependencies to allow their latest major releases (#436)
  • Switched from TravisCI to CircleCI (#432)
  • Moved the changes from #416 for propagating error messages
    from ContainerFuture to CivisFuture (#426)
  • Updated the docstrings for file_to_civis (for buf and expires_at),
    dataframe_to_file (for expires_at), and json_to_file (for expires_at). (#427)
  • Ability to use joblib 1.1.x (#429)

Fixed

  • Relaxed SQL type checking in civis.io.civis_file_to_table by casting to VARCHAR
    when type inconsistency is detected for a given column and at least one input file
    has VARCHAR (#439)
  • Updated info about MacOS shell configuration file to be ~/.zshrc (#444)
  • Fixed the Sphinx docs to show details of multi-word API endpoints (#442)
  • Dropped the buggy/unnecessary _get_headers in civis.io.read_civis_sql (#415)
  • Clarified the table_columns parameter in civis.io.* functions (#434)
  • Warned about the retry_total parameter of civis.APIClient being inactive and deprecated (#431)
  • Converted assert statements in non-test code into proper error handling (#430, #435)
  • Handled the index-out-of-bounds error when CSV preprocessing fails in civis_file_to_table
    by raising a more informative exception (#428)
  • Corrected camel to snake case for "sql_type" in io docstrings, and added an input check to catch misspellings in the table_columns input (#419).

Removed

  • Dropped support for Python 3.6 (#436)
  • Removed no-longer-used PubNub code (#425)
  • Removed no-longer-supported Python 2 option for notebook creation in the CLI (#421)

Security

  • Turned on safety and bandit checks at CircleCI builds (#446)