redash/tests/extensions/redash-dummy
Arik Fraimovich 2dff8b9a00
Black support for the Python codebase (#4297)
* Apply black formatting

* Add auto formatting when committing to master

* Update CONTRIBUTING.md re. Black & Prettier
2019-12-11 13:54:29 +02:00
..
redash_dummy.egg-info Fix loading of periodic tasks and clean up extension loading. (#4064) 2019-08-13 13:11:59 +03:00
README.md Fix loading of periodic tasks and clean up extension loading. (#4064) 2019-08-13 13:11:59 +03:00
redash_dummy.py Fix loading of periodic tasks and clean up extension loading. (#4064) 2019-08-13 13:11:59 +03:00
setup.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02: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.