Skip to main content

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.

Metadata

Release files for fastpluggy-crud-tools 0.2.24

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastpluggy-crud-tools 0.2.24
File Size Uploaded
fastpluggy_crud_tools-0.2.24.tar.gz 33.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fastpluggy-crud-tools 0.2.24
File Interpreter ABI Platform
fastpluggy_crud_tools-0.2.24-py3-none-any.whl Python 3 none any Details

Total release size: 78.9 kB

Release files / fastpluggy_crud_tools-0.2.24.tar.gz

Download URL fastpluggy_crud_tools-0.2.24.tar.gz
Size 33.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8df0671f13f4ab48e5cca559ac1e51b875d29faa348423805551651ee92e6ebb
BLAKE2b-256 checksum
How to use checksums
9081f20bb46be8c918f2a8b3b1e728ccc93400dd01148189ecc075e73c6835f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / fastpluggy_crud_tools-0.2.24-py3-none-any.whl

Download URL fastpluggy_crud_tools-0.2.24-py3-none-any.whl
Size 45.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f6d861f1a9aad13ff8c6559bc029cd231880d3912ba1d042fbf45f853a47175
BLAKE2b-256 checksum
How to use checksums
49cd5908e00dfa006cd1e8e5e54c809d125a3c14eb25c75e22e8ffe3749d4bf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.2.24 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page