Closed sumanthratna closed 3 years ago
Ah yeah this is my fault, I forgot about this.
Python package management is a huge pain :/
Okay released as 0.3.2, let me know if that fixes it :)
Yup, 97c0b200df960ab28ade687c8897290bdd08e035 fixed the issue. Thanks again!
Hi @Qix-, sorry to bother you again.
The Django middleware integration still doesn't work because of an error I didn't catch earlier.
Reproduction
Local Editable Install
git clone --depth 1 https://github.com/Qix-/better-exceptions.git
cd better-exceptions
python3 -m pip install -e .
python3 -c "import better_exceptions.integrations"
raises no error!VCS Install
python3 -m pip install git+https://github.com/Qix-/better-exceptions.git
python3 -c "import better_exceptions.integrations"
raises aModuleNotFoundError
PyPI Install
python3 -m pip install better-exceptions==0.3.1
python3 -c "import better_exceptions.integrations"
raises aModuleNotFoundError
so my guess is that somewhere in
setup.py
, package subdirectories are not copied into the wheel (and the source.tar.gz
file on PyPI contains theintegrations
directory while the.whl
doesn't)I think using
setuptools.find_packages()
will fix this (or we could hard-code thepackages
kwarg). I can try creating a PR but I want to make sure this won't break anything with the PTH fileEnvironment