conda-forge / pyside2-feedstock

A conda-smithy repository for pyside2.
BSD 3-Clause "New" or "Revised" License
17 stars 18 forks source link

METADATA file is empty #202

Closed n-elie closed 9 months ago

n-elie commented 9 months ago

Solution to issue cannot be found in the documentation.

Issue

Since ee8a50f, a METADATA file is generated but is empty. This cause problem with PyInstaller>=6.0 as PySide6 hook has a check for version:

    # Starting with PySide6 6.4.0, we need to collect PySide6.support.deprecated for | and & operators to work with
    # Qt key and key modifiers enums. See #7249.
    if check_requirement("PySide6 >= 6.4.0"):
        hiddenimports += ['PySide6.support.deprecated']

check_requirement calls importlib.metadata.version function which read version from METADATA file and return None causing check_requirement to raise a TypeError

METADATA file should not be empty. In Pyside6_Essentials from PyPI, METADATA file has the following content:

METADATA content

Metadata-Version: 2.1 Name: PySide6-Essentials Version: 6.3.2 Summary: Python bindings for the Qt cross-platform application and UI framework (Essentials) Home-page: https://www.pyside.org Download-URL: https://download.qt.io/official_releases/QtForPython Author: Qt for Python Team Author-email: pyside@qt-project.org License: LGPL Keywords: Qt Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Console Classifier: Environment :: MacOS X Classifier: Environment :: X11 Applications :: Qt Classifier: Environment :: Win32 (MS Windows) Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL) Classifier: License :: Other/Proprietary License Classifier: Operating System :: MacOS :: MacOS X Classifier: Operating System :: POSIX Classifier: Operating System :: POSIX :: Linux Classifier: Operating System :: Microsoft Classifier: Operating System :: Microsoft :: Windows Classifier: Programming Language :: C++ Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Topic :: Database Classifier: Topic :: Software Development Classifier: Topic :: Software Development :: Code Generators Classifier: Topic :: Software Development :: Libraries :: Application Frameworks Classifier: Topic :: Software Development :: User Interfaces Classifier: Topic :: Software Development :: Widget Sets Requires-Python: <3.11,>=3.6 Description-Content-Type: text/markdown License-File: LICENSE.COMMERCIAL License-File: LICENSE.FDL License-File: LICENSE.GPL2 License-File: LICENSE.GPLv3 License-File: LICENSE.GPLv3-EXCEPT License-File: LICENSE.LGPLv3 Requires-Dist: shiboken6 (==6.3.2) # PySide6 Essentials PySide6 is the official Python module from the [Qt for Python project](https://wiki.qt.io/Qt_for_Python), which provides access to the complete Qt 6.0+ framework. The Qt for Python project is developed in the open, with all facilities you'd expect from any modern OSS project such as all code in a git repository and an open design process. We welcome any contribution conforming to the [Qt Contribution Agreement](https://www.qt.io/contributionagreement/). This is a minimal wheel for [PySide6](https://pypi.org/project/PySide6), it includes only the essentials Qt modules: * QtCore * QtGui * QtWidgets * QtHelp * QtNetwork * QtConcurrent * QtDBus * QtDesigner * QtOpenGL * QtOpenGLWidgets * QtPrintSupport * QtQml * QtQuick * QtQuickControls2 * QtQuickWidgets * QtXml * QtTest * QtSql * QtSvg * QtSvgWidgets * QtUiTools ### Documentation and Bugs You can find more information about the PySide6 module API in the [official Qt for Python documentation](https://doc.qt.io/qtforpython/). If you come across any issue, please file a bug report at our [JIRA tracker](https://bugreports.qt.io/projects/PYSIDE) following our [guidelines](https://wiki.qt.io/Qt_for_Python/Reporting_Bugs). ### Community Check our channels on IRC (Libera), Telegram, Gitter, Matrix, and mailing list, and [join our community](https://wiki.qt.io/Qt_for_Python#Community)! ### Licensing PySide6 is available under both Open Source (LGPLv3/GPLv2) and commercial license. Using PyPi is the recommended installation source, because the content of the wheels is valid for both cases. For more information, refer to the [Qt Licensing page](https://www.qt.io/licensing/).

Installed packages

altgraph                  0.17.4             pyhd8ed1ab_0    conda-forge
bzip2                     1.0.8                h8ffe710_4    conda-forge
ca-certificates           2023.7.22            h56e8100_0    conda-forge
cairo                     1.16.0            h412253b_1017    conda-forge
double-conversion         3.3.0                h63175ca_0    conda-forge
expat                     2.5.0                h63175ca_1    conda-forge
font-ttf-dejavu-sans-mono 2.37                 hab24e00_0    conda-forge
font-ttf-inconsolata      3.000                h77eed37_0    conda-forge
font-ttf-source-code-pro  2.038                h77eed37_0    conda-forge
font-ttf-ubuntu           0.83                 hab24e00_0    conda-forge
fontconfig                2.14.2               hbde0cde_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
freetype                  2.12.1               hdaf720e_2    conda-forge
future                    0.18.3             pyhd8ed1ab_0    conda-forge
gettext                   0.21.1               h5728263_0    conda-forge
graphite2                 1.3.13                     1000    conda-forge
harfbuzz                  8.2.1                h7ab893a_0    conda-forge
icu                       73.2                 h63175ca_0    conda-forge
krb5                      1.21.2               heb0366b_0    conda-forge
lerc                      4.0.0                h63175ca_0    conda-forge
libclang                  16.0.6          default_heb8d277_1    conda-forge
libclang13                16.0.6          default_hc80b9e7_1    conda-forge
libdeflate                1.18                 hcfcfb64_0    conda-forge
libexpat                  2.5.0                h63175ca_1    conda-forge
libffi                    3.4.2                h8ffe710_5    conda-forge
libglib                   2.78.0               he8f3873_0    conda-forge
libiconv                  1.17                 h8ffe710_0    conda-forge
libjpeg-turbo             2.1.5.1              hcfcfb64_1    conda-forge
libpng                    1.6.39               h19919ed_0    conda-forge
libsqlite                 3.43.0               hcfcfb64_0    conda-forge
libtiff                   4.5.1                h6c8260b_1    conda-forge
libwebp-base              1.3.2                hcfcfb64_0    conda-forge
libxml2                   2.11.5               hc3477c8_1    conda-forge
libxslt                   1.1.37               h6070c61_1    conda-forge
libzlib                   1.2.13               hcfcfb64_5    conda-forge
openssl                   3.1.3                hcfcfb64_0    conda-forge
packaging                 23.2               pyhd8ed1ab_0    conda-forge
pcre2                     10.40                h17e33f8_0    conda-forge
pefile                    2023.2.7           pyhd8ed1ab_0    conda-forge
pip                       23.2.1             pyhd8ed1ab_0    conda-forge
pixman                    0.42.2               h63175ca_0    conda-forge
pyinstaller               6.0.0           py310h35269f2_1    conda-forge
pyinstaller-hooks-contrib 2023.9             pyhd8ed1ab_0    conda-forge
pyside6                   6.5.2           py310hd741ceb_0    conda-forge
python                    3.10.12         h4de0772_0_cpython    conda-forge
python_abi                3.10                    4_cp310    conda-forge
pywin32                   306             py310h00ffb61_2    conda-forge
pywin32-ctypes            0.2.2           py310h5588dad_1    conda-forge
qt6-main                  6.5.2                h1088b08_4    conda-forge
setuptools                68.2.2             pyhd8ed1ab_0    conda-forge
tk                        8.6.13               hcfcfb64_0    conda-forge
tzdata                    2023c                h71feb2d_0    conda-forge
ucrt                      10.0.22621.0         h57928b3_0    conda-forge
vc                        14.3                h64f974e_17    conda-forge
vc14_runtime              14.36.32532         hdcecf7f_17    conda-forge
vs2015_runtime            14.36.32532         h05e6639_17    conda-forge
wheel                     0.41.2             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h8d14728_0    conda-forge
zlib                      1.2.13               hcfcfb64_5    conda-forge
zstd                      1.5.5                h12be248_0    conda-forge

Environment info

active environment : test
    active env location : C:\Users\elie\AppData\Local\mambaforge\envs\test
            shell level : 2
       user config file : C:\Users\elie\.condarc
 populated config files : C:\Users\elie\AppData\Local\mambaforge\.condarc
                          C:\Users\elie\.condarc
          conda version : 23.7.2
    conda-build version : 3.24.0
         python version : 3.10.12.final.0
       virtual packages : __archspec=1=x86_64
                          __cuda=8.0=0
                          __win=0=0
       base environment : C:\Users\elie\AppData\Local\mambaforge  (writable)
      conda av data dir : C:\Users\elie\AppData\Local\mambaforge\etc\conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://conda.anaconda.org/anaconda-fusion/win-64
                          https://conda.anaconda.org/anaconda-fusion/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\elie\AppData\Local\mambaforge\pkgs
                          C:\Users\elie\.conda\pkgs
                          C:\Users\elie\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\elie\AppData\Local\mambaforge\envs
                          C:\Users\elie\.conda\envs
                          C:\Users\elie\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/23.7.2 requests/2.31.0 CPython/3.10.12 Windows/10 Windows/10.0.19045
          administrator : False
             netrc file : None
           offline mode : False