Closed AchmadFathoni closed 2 years ago
Thanks for raising this. I believe it's due to my build workflow, which uses poetry
. I'm not sure it respects case sensitivity when it builds the wheels, which probably explains why on PyPi the package is lower case.
I'll have a look to see if there's a fix for this, perhaps in arguments provided to poetry build
and poetry publish
.
Lowering the case of the name in this line is working fix for me https://github.com/robertmartin8/PyPortfolioOpt/blob/102c593d54e979c1046ad5cf5d3e1a9c77dcd692/pyproject.toml#L2
Thanks for the fix! I'll double check that changing it to lower case doesn't lead to any problems elsewhere. If not, I will merge this in the next PR
I think it is fixed, thank you.
Describe the bug When I try install wheel package using
python -m build --wheel --no-isolation
andpython -m installer --destdir="$pkgdir" dist/*.whl
I gotThe content of PyPortfolioOpt-1.5.1-py3-none-any.whl:
Expected behavior The key should be
'pyportfolioopt-1.5.1.dist-info/WHEEL'
or wheel name should bePyPortfolioOpt-1.5.1.dist-info
Operating system, python version, PyPortfolioOpt version Archlinux, python 3.10, PyPortfolioOpt 1.5.1
Additional Context I got the PyPortfolioOpt 1.5.1 source from pypi