Comments (9)
So I removed the \
from the requirements.txt
and:
Ok(Dependency { name: "anytree", extras: [], spec: Some(Version([VersionSpec { comparator: Eq, version: "2.8.0" }])), marker: Some(And(Operator(PythonVersion, Comparator(Ge), String("3.9")), Operator(PythonVersion, Comparator(Lt), String("4.0")))) })
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
Ok(Dependency { name: "chardet", extras: [], spec: Some(Version([VersionSpec { comparator: Eq, version: "5.0.0" }])), marker: Some(And(Operator(PythonVersion, Comparator(Ge), String("3.9")), Operator(PythonVersion, Comparator(Lt), String("4.0")))) })
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
Ok(Dependency { name: "commonmark", extras: [], spec: Some(Version([VersionSpec { comparator: Eq, version: "0.9.1" }])), marker: Some(And(Operator(PythonVersion, Comparator(Ge), String("3.9")), Operator(PythonVersion, Comparator(Lt), String("4.0")))) })
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
Ok(Dependency { name: "deprecated", extras: [], spec: Some(Version([VersionSpec { comparator: Eq, version: "1.2.13" }])), marker: Some(And(Operator(PythonVersion, Comparator(Ge), String("3.9")), Operator(PythonVersion, Comparator(Lt), String("4.0")))) })
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
Ok(Dependency { name: "pygments", extras: [], spec: Some(Version([VersionSpec { comparator: Eq, version: "2.13.0" }])), marker: Some(And(Operator(PythonVersion, Comparator(Ge), String("3.9")), Operator(PythonVersion, Comparator(Lt), String("4.0")))) })
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
Ok(Dependency { name: "pypdf2", extras: [], spec: Some(Version([VersionSpec { comparator: Eq, version: "2.11.1" }])), marker: Some(And(Operator(PythonVersion, Comparator(Ge), String("3.9")), Operator(PythonVersion, Comparator(Lt), String("4.0")))) })
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
Ok(Dependency { name: "python-dotenv", extras: [], spec: Some(Version([VersionSpec { comparator: Eq, version: "0.21.0" }])), marker: Some(And(Operator(PythonVersion, Comparator(Ge), String("3.9")), Operator(PythonVersion, Comparator(Lt), String("4.0")))) })
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
Ok(Dependency { name: "rich-argparse-plus", extras: [], spec: Some(Version([VersionSpec { comparator: Eq, version: "0.3.1.4" }])), marker: Some(And(Operator(PythonVersion, Comparator(Ge), String("3.9")), Operator(PythonVersion, Comparator(Lt), String("4.0")))) })
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
Ok(Dependency { name: "rich", extras: [], spec: Some(Version([VersionSpec { comparator: Eq, version: "12.6.0" }])), marker: Some(And(Operator(PythonVersion, Comparator(Ge), String("3.9")), Operator(PythonVersion, Comparator(Lt), String("4.0")))) })
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
Ok(Dependency { name: "six", extras: [], spec: Some(Version([VersionSpec { comparator: Eq, version: "1.16.0" }])), marker: Some(And(Operator(PythonVersion, Comparator(Ge), String("3.9")), Operator(PythonVersion, Comparator(Lt), String("4.0")))) })
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
Ok(Dependency { name: "typing-extensions", extras: [], spec: Some(Version([VersionSpec { comparator: Eq, version: "4.4.0" }])), marker: Some(And(Operator(PythonVersion, Comparator(Ge), String("3.9")), Operator(PythonVersion, Comparator(Lt), String("3.10")))) })
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
Ok(Dependency { name: "wrapt", extras: [], spec: Some(Version([VersionSpec { comparator: Eq, version: "1.14.1" }])), marker: Some(And(Operator(PythonVersion, Comparator(Ge), String("3.9")), Operator(PythonVersion, Comparator(Lt), String("4.0")))) })
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
Ok(Dependency { name: "yara-python", extras: [], spec: Some(Version([VersionSpec { comparator: Eq, version: "4.2.3" }])), marker: Some(And(Operator(PythonVersion, Comparator(Ge), String("3.9")), Operator(PythonVersion, Comparator(Lt), String("4.0")))) })
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
[
found end of input at 0..1,
]
So it did parse all 14 dependencies but treated the --hash
values as its own line for parsing, and failed, I presume.
from pep-508.
Is pep-508 able to parse --hash=
values? As mentioned in:
https://pip.pypa.io/en/stable/topics/secure-installs/
I don't think I saw this in the original pep 508 spec and it would be easy to miss
from pep-508.
This is a better read: https://pip.pypa.io/en/stable/reference/requirements-file-format/#per-requirement-options
As hash checking is part of per-requirement options
in pip, which checks whether the requirements.txt contains --hash=
values that it can use. Would this crate be interested in implementing this?
from pep-508.
Only --hash
seems to want an embedded value in the requirements.txt in those options, so implementing something for just parsing that would fit the requirement I think.
from pep-508.
Looks like requirements.txt's format isn't equivalent to pep 508, I wonder if it's possible to introduce some sort of flavoring, since pyproject seems to just use pep 508 directly
from pep-508.
Well, your crate is mostly used for parsing from requirements\constrains.txt, pyproject.toml and other spaces where people use PEP-508. And from that set, requirements.txt is the most popular one. Wouldn't you consider solving this supposedly edge case?
Maybe there could be an embedded
field in the return struct that could contain these hashes or for anything else that are "embedded" onto the parsing text?
from pep-508.
Wouldn't you consider solving this supposedly edge case?
Yes, that's why I wanted to introduce some sort of flavoring, possibly having a module for requirements.txt
from pep-508.
Wouldn't you consider solving this supposedly edge case?
Yes, that's why I wanted to introduce some sort of flavoring, possibly having a module for requirements.txt
That sounds fantastic.
from pep-508.
any updates on this?
from pep-508.
Related Issues (2)
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 pep-508.