martisak/3gpp-citations

Installer Deprecated

Opened this issue · 2 comments

Describe the bug
When attempting to install, I am met with an error stating that the Installer is deprecated

To Reproduce
Steps to reproduce the behavior:

  1. Run pip install 3gpp-citations with Python 3.10

Expected behavior
The library is installed correctly

Desktop (please complete the following information):

  • OS: Arch Linux
  • Python version 3.10

Additional context
Here is the output from pip:

$ pip install 3gpp-citations
Defaulting to user installation because normal site-packages is not writeable
Collecting 3gpp-citations
  Downloading 3gpp-citations-1.1.4.tar.gz (14 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      /usr/lib/python3.10/site-packages/setuptools/__init__.py:85: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`.
        dist.fetch_build_eggs(dist.setup_requires)
      error in 3gpp-citations setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
      [end of output]

Even when using the proposed flag, the installer fails:

$ pip install 3gpp-citations --use-pep517
Defaulting to user installation because normal site-packages is not writeable
Collecting 3gpp-citations
  Using cached 3gpp-citations-1.1.4.tar.gz (14 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in 3gpp-citations setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
      [end of output]
Zchye commented

Same here, looking for a solution

For people (like me) who are still looking for a fix, you may consider using my fork . I tried fixing the original repo but went onto a rabbit hole 🤯 . So decided to fork the repo, clean up the structure little bit and published under a new name since it ended up a significant revamp. Also wasted ~3 hrs testing against TestPyPi index, only to later realize that lxml==4.9.3 package is not available etc.

Anyways, finally managed to publish this. You can do pip install sdo-citations if interested.
Use the tool as sdo-citations -i test.xlsx -o 3gpp.bib

I'm planning to work on this project to include other SDOs (IETF, ETSI, TMForum, GSMA etc) in my free time. Hence leaving this repo untouched by not raising a PR. Nevertheless I really value and appreciate this repo for filling the much needed gap. Kudos.

PyPi Link : https://pypi.org/project/sdo-citations/
My Fork : https://github.com/kspviswa/3gpp-citations