Skip to main content

CRUD Tools plugin for Fastpluggy

Project description

Fix for Plugin Import Path Issue

CRUD Tools Release Pipeline Status Coverage

Issue Description

There was an issue with the import path for the CrudToolsModule in the crud_tools plugin. The entry point in the package metadata specified the import path as fastpluggy_plugin.crud_tools.plugin:CrudToolsModule, but in the source code, the file was at fastpluggy_plugin/crud_tools/src/plugin.py. This caused the following import to fail:

import fastpluggy_plugin.crud_tools.plugin

While this import worked:

import fastpluggy_plugin.crud_tools.src.plugin

Solution

A new plugin.py file was created in the fastpluggy_plugin/crud_tools directory that imports and re-exports the CrudToolsModule from fastpluggy_plugin.crud_tools.src.plugin. This allows both import paths to work:

  • import fastpluggy_plugin.crud_tools.plugin (the expected path after installation)
  • import fastpluggy_plugin.crud_tools.src.plugin (the path in the source code)

Testing

A test script test_import.py was created to verify that both import paths work. You can run it with:

cd /home/jerome/PycharmProjects/fastpluggy/fastpluggy_plugin/crud_tools
python test_import.py

If the fix works, you should see output indicating that both imports were successful and that they refer to the same class.

Next Steps

After verifying that the fix works, you should rebuild and reinstall the package to ensure that the fix is included in the installed package.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastpluggy_crud_tools-0.2.24.tar.gz (33.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastpluggy_crud_tools-0.2.24-py3-none-any.whl (45.3 kB view details)

Uploaded Python 3

File details

Details for the file fastpluggy_crud_tools-0.2.24.tar.gz.

File metadata

  • Download URL: fastpluggy_crud_tools-0.2.24.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for fastpluggy_crud_tools-0.2.24.tar.gz
Algorithm Hash digest
SHA256 8df0671f13f4ab48e5cca559ac1e51b875d29faa348423805551651ee92e6ebb
MD5 4e077f68e2177bc90a479eb872034f1a
BLAKE2b-256 9081f20bb46be8c918f2a8b3b1e728ccc93400dd01148189ecc075e73c6835f5

See more details on using hashes here.

File details

Details for the file fastpluggy_crud_tools-0.2.24-py3-none-any.whl.

File metadata

File hashes

Hashes for fastpluggy_crud_tools-0.2.24-py3-none-any.whl
Algorithm Hash digest
SHA256 5f6d861f1a9aad13ff8c6559bc029cd231880d3912ba1d042fbf45f853a47175
MD5 e23d586e1d83e16bc6af8828bced36ee
BLAKE2b-256 49cd5908e00dfa006cd1e8e5e54c809d125a3c14eb25c75e22e8ffe3749d4bf2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page