Giter Club home page Giter Club logo

easywatch's People

Contributors

ceasar avatar djsutherland avatar rudyryk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

easywatch's Issues

Change event types from strings to constants

Example: Instead of:

if __name__ == "__main__":
    def handler(event_type, src_path):
        if event_type == "modified":
            ...

Do:

if __name__ == "__main__":
    def handler(event_type, src_path):
        if event_type == easywatch.MODIFIED:
            ...

Ideally, this should happen in watchdog itself.

Fix packaging problems

The project only publishes sdists, meaning that the end-users will go through the build process during install. As the installer usually pulls in the last setuptools version, it's subject to changes in the ecosystem. Currently, there's some warnings like

      setuptools.warnings.SetuptoolsDeprecationWarning: Invalid dash-separated options
      !!
      
              ********************************************************************************
              Usage of dash-separated 'license-file' will not be supported in future
              versions. Please use the underscore name 'license_file' instead.
      
              By 2023-Sep-26, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
      
              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************

In about a month, those warnings will turn into errors.

There's a few things that could be done:

  1. Publish wheels
  2. Update the metadata to stop using deprecated things

"moved" type event cannot be handled

Whenever a file is moved in the watched directory, the registered handler has only access to the original path of the file not the new path. I think it makes easywatch pretty useless for this kind of events. In particular, this issue blocks full resolution of staticjinja/staticjinja#20.

Fixing this is trivial, e.g. one can require the handler to accept one more argument which would be the destination path for moved event and None otherwise. But of course this will break 100% scripts using easywatch. Do you know if there other projects than staticjinja relying on easywatch?

Please tag versions on git

Can you please add the versions in git as tags? This really helps out to see quickly changes and all from version to version

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.