jurismarches / luqum

A lucene query parser generating ElasticSearch queries and more !
Other
187 stars 42 forks source link

Wrong .tar.gz pypi package #64

Open mesemus opened 4 years ago

mesemus commented 4 years ago

Hi Alex,

I just want to let you know that the .tar.gz file at PyPi has incorrect structure (the wheel is ok, though).

It looks like:

root@cis-hub:d327478a510f3# tar tzf luqum-0.10.0.linux-x86_64.tar.gz 
./
./home/
./home/alex/
./home/alex/projets/
./home/alex/projets/luqum/
./home/alex/projets/luqum/venv/
./home/alex/projets/luqum/venv/lib/
./home/alex/projets/luqum/venv/lib/python3.8/
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/__init__.py
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/__pycache__/
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/__pycache__/__init__.cpython-38.pyc
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/__pycache__/auto_head_tail.cpython-38.pyc
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/__pycache__/check.cpython-38.pyc
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/__pycache__/deprecated_utils.cpython-38.pyc
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/__pycache__/exceptions.cpython-38.pyc
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/__pycache__/head_tail.cpython-38.pyc
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/__pycache__/naming.cpython-38.pyc
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/__pycache__/parser.cpython-38.pyc
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/__pycache__/parsetab.cpython-38.pyc
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/__pycache__/pretty.cpython-38.pyc
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/__pycache__/tests.cpython-38.pyc
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/__pycache__/tree.cpython-38.pyc
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/__pycache__/utils.cpython-38.pyc
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/__pycache__/visitor.cpython-38.pyc
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/auto_head_tail.py
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/check.py
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/deprecated_utils.py
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/elasticsearch/
./home/alex/projets/luqum/venv/lib/python3.8/site-packages/luqum/elasticsearch/__init__.py

... etc

Thanks for your work,

Mirek

madstacks commented 3 years ago

This seems to be causing a problem installing the package using poetry. However, using pip directly does work.

poetry add luqum
...
...
    FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/ms/hn7h411d1jsfj60blmwdw_fc0000gn/T/pip-install-84wx7ncr/luqum_5988cdb2932544a59c1ae896b41fe614/setup.py'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
jonsnowseven commented 3 years ago

I am having the same problem (FileNotFoundError: [Errno 2] No such file or directory: '..../setup.py').

Poetry gets a tar.gz file with the following:

├── .DS_Store
├── home
│   ├── .DS_Store
│   └── pierre
│       ├── .DS_Store
│       └── Documents
│           ├── .DS_Store
│           └── dev
│               ├── .DS_Store
│               └── luqum
│                   ├── .DS_Store
│                   └── .venv
│                       ├── .DS_Store
│                       └── lib
│                           ├── .DS_Store
│                           └── python3.8
│                               ├── .DS_Store
│                               └── site-packages
│                                   ├── .DS_Store
│                                   ├── luqum
│                                   │   ├── __init__.py
│                                   │   ├── __pycache__
│                                   │   │   ├── __init__.cpython-38.pyc
│                                   │   │   ├── auto_head_tail.cpython-38.pyc
│                                   │   │   ├── check.cpython-38.pyc
│                                   │   │   ├── deprecated_utils.cpython-38.pyc
│                                   │   │   ├── exceptions.cpython-38.pyc
│                                   │   │   ├── head_tail.cpython-38.pyc
│                                   │   │   ├── naming.cpython-38.pyc
│                                   │   │   ├── parser.cpython-38.pyc
│                                   │   │   ├── parsetab.cpython-38.pyc
│                                   │   │   ├── pretty.cpython-38.pyc
│                                   │   │   ├── tree.cpython-38.pyc
│                                   │   │   ├── utils.cpython-38.pyc
│                                   │   │   └── visitor.cpython-38.pyc
│                                   │   ├── auto_head_tail.py
│                                   │   ├── check.py
│                                   │   ├── deprecated_utils.py
│                                   │   ├── elasticsearch
│                                   │   │   ├── __init__.py
│                                   │   │   ├── __pycache__
│                                   │   │   │   ├── __init__.cpython-38.pyc
│                                   │   │   │   ├── nested.cpython-38.pyc
│                                   │   │   │   ├── schema.cpython-38.pyc
│                                   │   │   │   ├── tree.cpython-38.pyc
│                                   │   │   │   └── visitor.cpython-38.pyc
│                                   │   │   ├── nested.py
│                                   │   │   ├── schema.py
│                                   │   │   ├── tree.py
│                                   │   │   └── visitor.py
│                                   │   ├── exceptions.py
│                                   │   ├── head_tail.py
│                                   │   ├── naming.py
│                                   │   ├── parser.py
│                                   │   ├── parsetab.py
│                                   │   ├── pretty.py
│                                   │   ├── tree.py
│                                   │   ├── utils.py
│                                   │   └── visitor.py
│                                   └── luqum-0.11.0.egg-info
│                                       ├── PKG-INFO
│                                       ├── SOURCES.txt
│                                       ├── dependency_links.txt
│                                       ├── requires.txt
│                                       └── top_level.txt
└── luqum-0.11.0.linux-x86_64.tar.gz

14 directories, 52 files

Is this correct?

Update

Works with luqum 0.10.0

thune-xiaobai commented 3 years ago

Same issue on mac, run poetry add luqum will add version 0.11.0.linux-x86_64.

I don't know it's a poetry issue or luqum issue.

btw, use poetry add luqum=0.11.0 can bypass it.