Skip to content

URS v3.3.1

Choose a tag to compare

@JosephLai241 JosephLai241 released this 03 Jul 20:07
· 98 commits to master since this release

Summary

  • Introduced a new utility, -t, which will display a visual tree of the current day's scrape directory by default. Optionally, include a different date to display that day's scrape directory.
  • Move CI providers from Travis-CI to GitHub Actions.
    • Travis-CI is no longer free - there is now a free build cap.
  • Minor code refactoring and issue resolution.

Full Changelog

Added

  • User interface
    • Added a new utility:
      • -t/--tree - display the directory structure of the current date directory. Or optionally include a date to display that day's scrape directory.
  • Source code
    • Added a new file Utilities.py to the urs/utils module.
      • Added a class DateTree which contains methods to find and build a visual tree for the target date's directory.
        • Added logging when this utility is run.
    • Added an additional Halo to the wordcloud generator.
  • README
    • Added new "Utilities" section.
      • This section describes how to use the -t/--tree and --check utility flags.
    • Added new "Sponsors" section.
  • Tests
    • Added test_Utilities.py under the test_utils module.

Changed

  • Source code
    • Refactored the following methods within the analytics module:
      • GetPath.get_scrape_type()
      • GetPath.name_file()
      • FinalizeWordcloud().save_wordcloud()
        • Implemented pathlib's Path() method to get the path.
    • Upgraded all string formatting from old-school Python formatting (using the % operator) to the superior f-string.
    • Updated GitHub Actions workflow pytest.yml.
      • This workflow was previously disabled. The workflow has been upgraded to test URS on all platforms (ubuntu-latest, macOS-latest, and windows-latest) and to send test coverage to Codecov after testing completes on ubuntu-latest.
  • README
    • Changed the Travis-CI badge to a GitHub Actions badge.
      • Updated badge link to route to the workflows page within the repository.
  • Tests
    • Upgraded all string formatting from old-school Python formatting (using the % operator) to the superior f-string in the following modules:
      • test_utils/test_Export.py
      • test_praw_scrapers/test_live_scrapers/test_Livestream.py
    • Refactored two tests within test_Export.py:
      • TestExportWriteCSVAndWriteJSON().test_write_csv()
      • TestExportExportMethod().test_export_write_csv()
  • Community documents
    • Updated PULL_REQUEST_TEMPLATE.md.
      • Removed Travis-CI configuration block.

Deprecated

  • Source code
    • Removed .travis.yml - URS no longer uses Travis-CI as its CI provider.