redash/tests/extensions/redash-dummy
Jannis Leidel 41a691328a
Fix bundle-extensions script to work on recent importlib-resources. (#5050)
Also adds a test case for running the script.
2020-07-16 23:05:22 +03:00
..
redash_dummy Fix bundle-extensions script to work on recent importlib-resources. (#5050) 2020-07-16 23:05:22 +03:00
redash_dummy.egg-info Fix bundle-extensions script to work on recent importlib-resources. (#5050) 2020-07-16 23:05:22 +03:00
.gitignore Fix bundle-extensions script to work on recent importlib-resources. (#5050) 2020-07-16 23:05:22 +03:00
MANIFEST.in Fix bundle-extensions script to work on recent importlib-resources. (#5050) 2020-07-16 23:05:22 +03:00
README.md Fix loading of periodic tasks and clean up extension loading. (#4064) 2019-08-13 13:11:59 +03:00
setup.py Fix bundle-extensions script to work on recent importlib-resources. (#5050) 2020-07-16 23:05:22 +03:00

How to update the dummy extension?

If you'd like to extend the dummy extension, please update the setup.py file and the redash_dummy.py module.

Please make sure to regenerate the *.egg-info directory. See below.

How to generate the redash_dummy.egg-info directory?

The egg-info directory is what is usually created in the site-packages directory when running pip install <packagename> and contains the metadata derived from the setup.py file.

In other words, it's auto-generated and you'll need to follow the following steps to update it (e.g. when extending the extension tests). From the host computer (assuming the Docker development environment) run:

  • make bash -- to create container running with Bash and entering it
  • cd tests/extensions/redash-dummy/ -- change the directory to the directory with the dummy extension
  • python setup.py egg_info -- to create/update the egg-info directory

The egg-info directory is not cleaned up by pip, just the link in the ~/.local site-packages directory.