Comments (5)
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.
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.
Do you know if there is any fedora-based Python container that can be used for testing instead of Debian?
from validate-pyproject.
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.
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)
- Support for SchemaStore HOT 21
- JSON Schema string is inconsistent (no trailing #) HOT 3
- 0.7.1: sphinx warnings HOT 9
- 0.7.1: pytest is failing in several units HOT 12
- Add pre-commit hook for validate-pyproject HOT 1
- Use stdlib for toml parsing in 3.11+
- 0.9 fails to install on windows python 3.10 HOT 8
- Data files are missing from wheel when building from git archive HOT 10
- `_find_and_load_licence()` in pre-compile might be unsafe HOT 6
- pre_compile fails when installed using setuptools instead of PEP517 HOT 9
- Missing SSL context when downloading classifiers.
- `NOTICE.txt` should be listed under `license_files`
- pipx run validate-pyproject --help HOT 3
- License Validation uses older standard HOT 2
- Report likely mistakes as warnings HOT 3
- vendoring of fastjsonschema HOT 2
- `tool.setuptools.packages` should allow `*-stub` name.
- Validate fields pointing to paths HOT 5
- CLI hangs when no arguments provided HOT 1
- Crash on first commit when adding a pre-commit hook HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from validate-pyproject.