flat-summer-8204
05/11/2022, 4:01 PMrequirements.txt
used to generate the lockfile
dep-a ==4.2.31 #
On dep-a
v 4.2.31 , in the setup.py
, 'python_requires': '>=3.7.0,<3.8.0'
Results:
I was playing just changing the interpreter_constraints
✅ lockfile generated,
❌ fails to generate the lockfile with error: ERROR: No matching distribution found for dep-a==4.2.31
1. If pants.toml.[python].interpreter_constraints = ["==3.7.11"]
, ✅
2. If pants.toml.[python].interpreter_constraints = ["==3.7.*"]
, ✅
3. If pants.toml.[python].interpreter_constraints = [">=3.7.11"]
, ❌
Use Case 2
requirements.txt
used to generate the lockfile
dep-a ==4.2.32
On dep-a
v 4.2.32 , in the setup.py
, 'python_requires': '>=3.7.*1*,<3.8.0'
Results:
I was playing just changing the interpreter_constraints
✅ lockfile generated,
❌ fails to generate the lockfile with error: ERROR: No matching distribution found for dep-a==4.2.32
1. If pants.toml.[python].interpreter_constraints = ["==3.7.11"]
, ✅
2. If pants.toml.[python].interpreter_constraints = ["==3.7.*"]
, ❌
3. If pants.toml.[python].interpreter_constraints = [">=3.7.11"]
, ❌
So based on the that, why does it have different results when setting interpreter_constraints
to "==3.7.11"
and ">=3.7.11"
?
pex
issue indeed. I will create an issue there to iterate over this.