Code Monkey home page Code Monkey logo

Comments (5)

abravalheri avatar abravalheri commented on July 17, 2024

Hi @pquentin thank you very much for reporting this. Do you have a small script to reproduce the problem?

I am trying:

% mkdir /tmp/_test
% cd /tmp/_test
% echo "" | pipx run 'validate-pyproject[all]==0.6.1'
Valid file
% echo -e "[project]\nname='proj'" | pipx run 'validate-pyproject[all]==0.6.1'
[ERROR] `project` must contain ['version'] properties

(It seems to be working...)

from validate-pyproject.

pquentin avatar pquentin commented on July 17, 2024

It's very weird. I'm using Python 3.8.13 on Fedora, where I can reproduce with a clean venv. But the same operations in Docker just work:

FROM python:3.8.13

RUN python3.8 -m venv test
RUN test/bin/pip install validate-pyproject[all]
RUN test/bin/pip list
RUN test/bin/pip --version
RUN test/bin/python --version
RUN echo '' > pyproject.toml
RUN test/bin/validate-pyproject pyproject.toml

from validate-pyproject.

abravalheri avatar abravalheri commented on July 17, 2024

Do you know if there is any fedora-based Python container that can be used for testing instead of Debian?

from validate-pyproject.

abravalheri avatar abravalheri commented on July 17, 2024

Hi @pquentin, I just run the following on a fedora container:

> docker run --rm -it fedora
$ sudo dnf upgrade -y
$ sudo dnf update -y
$ python3 -VV
Python 3.10.3 (main, Mar 18 2022, 00:00:00) [GCC 11.2.1 20220127 (Red Hat 11.2.1-9)]
$ python3 -m venv .venv
$ .venv/bin/pip -VV
pip 21.2.3 from /.venv/lib64/python3.10/site-packages/pip (python 3.10)
$ .venv/bin/pip install 'validate-pyproject[all]'
$ .venv/bin/pip list
Package            Version
------------------ ---------
packaging          21.3
pip                21.2.3
pyparsing          3.0.7
setuptools         57.4.0
tomli              2.0.1
trove-classifiers  2022.3.21
validate-pyproject 0.6.1

$ echo '' > pyproject.toml
$ .venv/bin/validate-pyproject pyproject.toml
Valid file
$ echo -e "[project]\nname='proj'\n" | .venv/bin/validate-pyproject
[ERROR] `project` must contain ['version'] properties

$ .venv/bin/python -m pip install -U pip setuptools
$ .venv/bin/pip list
Package            Version
------------------ ---------
packaging          21.3
pip                22.0.4
pyparsing          3.0.7
setuptools         61.2.0
tomli              2.0.1
trove-classifiers  2022.3.21
validate-pyproject 0.6.1

$ .venv/bin/validate-pyproject pyproject.toml
Valid file

Please let me know if you can find a reproducer for this problem

from validate-pyproject.

pquentin avatar pquentin commented on July 17, 2024

I tried with Python 3.8 using the Fedora docker image, but that works too. Sorry, I don't have any ideas left and I won't take the time to debug. Closing for now.

from validate-pyproject.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.