Re: [Rpm-maint] [rpm-software-management/rpm] Python requires generator: Cannot chain different ops: or + with (#995)

2020-01-11 Thread Gordon Messmer
The RPM Python API would be ideal if I could use it to determine if an expression were valid. I would think dsSingle would do that, but it does not seem to care whether the second arg is a valid expression or not. -- You are receiving this because you are subscribed to this thread. Reply to

Re: [Rpm-maint] [rpm-software-management/rpm] Python requires generator: Cannot chain different ops: or + with (#995)

2020-01-11 Thread ニール・ゴンパ
The RPM Python API may provide a way to build such a tool that could be incorporated into [`rpmdevtools`](https://pagure.io/rpmdevtools), but there's currently no such tool. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Python requires generator: Cannot chain different ops: or + with (#995)

2020-01-11 Thread Gordon Messmer
Does rpm offer an interface to determine whether or not a dependency expression is valid, either on a command line or in python's "rpm" module? Or is building an rpm the only available test? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or

Re: [Rpm-maint] [rpm-software-management/rpm] Python requires generator: Cannot chain different ops: or + with (#995)

2020-01-03 Thread Igor Gnatenko
Closed #995 via #996. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/995#event-2920694911___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Python requires generator: Cannot chain different ops: or + with (#995)

2020-01-03 Thread Miro Hrončok
https://github.com/rpm-software-management/rpm/pull/996 -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Python requires generator: Cannot chain different ops: or + with (#995)

2020-01-03 Thread Miro Hrončok
My fix does this: ``` (python3.8dist(pyparsing) >= 2.0.1 with (python3.8dist(pyparsing) < 2.1.2 or python3.8dist(pyparsing) >= 2.1.2.0) with (python3.8dist(pyparsing) < 2.0.4 or python3.8dist(pyparsing) >= 2.0.4.0) with (python3.8dist(pyparsing) < 2.1.6 or python3.8dist(pyparsing) >= 2.1.6.0))

Re: [Rpm-maint] [rpm-software-management/rpm] Python requires generator: Cannot chain different ops: or + with (#995)

2020-01-03 Thread Miro Hrončok
I'm testing a fix. If it works, will submit a PR. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Python requires generator: Cannot chain different ops: or + with (#995)

2020-01-03 Thread Miro Hrončok
We would need to put the or pairs into parenthesis, correct? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

[Rpm-maint] [rpm-software-management/rpm] Python requires generator: Cannot chain different ops: or + with (#995)

2020-01-03 Thread Miro Hrončok
The new version of Python requires generator fails with complicated expressions. cc @gordonmessmer @Conan-Kudo @ignatenkobrain Examples: ## Matplotlib https://koschei.fedoraproject.org/package/python-matplotlib?collection=f32 Requirement: `pyparsing>=2.0.1,!=2.0.4,!=2.1.2,!=2.1.6` ```