Open Atmelfan opened 2 weeks ago
The metadata in question has nothing to do with the version string in __init__.py
so I think that's a red herring. I have no idea why the metadata in question is something other than what's in pyproject.toml
.
(I need some more information to try to replicate. What's your OS and hardware? What Python version are you installing from?)
Ubuntu 20.04, aarch64, python 3.10.12
Not really familiar with pip and python distribution but this in setup.py
from the downloaded tar archive looks suspicious to me.
__version__ = get_version("pynini/__init__.py") # 2.1.5?
def main() -> None:
setup(
name="pynini",
version=__version__,
author="Kyle Gorman",
author_email="kbg@google.com",
description="Finite-state grammar compilation",
long_description=long_description,
long_description_content_type="text/markdown",
url="http://pynini.opengrm.org",
keywords=[
"natural language processing",
"speech recognition",
"machine learning",
],
classifiers=[
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Development Status :: 5 - Production/Stable",
"Environment :: Other Environment",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Linguistic",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Mathematics",
],
license="Apache 2.0",
ext_modules=cythonize([pywrapfst, pynini]),
packages=find_packages(exclude=["scripts", "tests"]),
package_data={
"pywrapfst": ["__init__.pyi", "py.typed"],
"pynini": ["__init__.pyi", "py.typed"],
"pynini.examples": ["py.typed"],
"pynini.export": ["py.typed"],
"pynini.lib": ["py.typed"],
},
zip_safe=False,
)
Oh good find. I would have thought what was in pyproject.toml
would have taken precedence. I can put out a post-release to correct this: it shouldn't affect things otherwise.
Ubuntu 20.04、aarch64、python 3.10.12
Hello, my friend, I am facing the same issue in my environment. Could you please share how you addressed it? I am looking forward to your reply
Trying to install pynini==2.1.6 from pip results in the following error.
Downloading the tar archive from https://files.pythonhosted.org/packages/9b/69/4b59968b0fd351a153d7a3c2feaa6e7514c903c063bbd7f7e1e3f1c079b0/pynini-2.1.6.tar.gz#sha256=b09b6dda73608cedf962dbfbcfa5826b0984d1b43a8f995761972e6e032921c6 and extracting
pynini/__init__.py
shows the following which seems to contain the wrong version number:The pyproject.toml shows the correct version