Re: [Distutils] Accessing tests_require and setup_requires from the setup.py

2016-06-03 Thread Sebastien Awwad
This ties into what I've been working on to fix the package dependency conflict resolution problem for pip , actually: You may be able to use a tool I wrote to automatically extract requirements from setup.py, without installing (knowing that setup.py is a

Re: [Distutils] Accessing tests_require and setup_requires from the setup.py

2016-06-03 Thread Sebastien Awwad
- I'm not at all familiar with composer. - For DNF - I assume you mean CNF, logical expression format generally used in SAT solvers (not DNF as in I did-not-finish the blog post I'm working on on this yet). If the question is why backtracking rather than SAT solving, I start to get into that in ba

Re: [Distutils] Accessing tests_require and setup_requires from the setup.py

2016-06-03 Thread Christopher Baines
On 03/06/16 14:19, Paul Moore wrote: > On 3 June 2016 at 13:20, Christopher Baines wrote: >> I'm trying to write a script to get information about a source >> distributions requirements (from the source distribution), but I'm not >> sure how to access the tests_require and setup_requires that can

Re: [Distutils] Accessing tests_require and setup_requires from the setup.py

2016-06-03 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/03/2016 09:58 AM, Daniel Holth wrote: > Here is how you can write setup_requires and test_requires to a file, > by adding a plugin to egg_info.writers in setuptools. FWIW, eggtestinfo is an 'egg_info.writers' plugin which dumps test-related meta

Re: [Distutils] Accessing tests_require and setup_requires from the setup.py

2016-06-03 Thread Daniel Holth
Tell me what you know about SAT solvers, dnf and composer. On Fri, Jun 3, 2016, 12:28 Sebastien Awwad wrote: > This ties into what I've been working on to fix the package dependency > conflict resolution problem for pip > , actually: > > You may be able to

Re: [Distutils] Accessing tests_require and setup_requires from the setup.py

2016-06-03 Thread Daniel Holth
Here is how you can write setup_requires and test_requires to a file, by adding a plugin to egg_info.writers in setuptools. https://gist.github.com/dholth/59e4c8a0c0d963b019d81e18bf0a89e3 On Fri, Jun 3, 2016 at 9:29 AM Paul Moore wrote: > On 3 June 2016 at 14:24, Christopher Baines wrote: > >

Re: [Distutils] Accessing tests_require and setup_requires from the setup.py

2016-06-03 Thread Paul Moore
On 3 June 2016 at 14:24, Christopher Baines wrote: > On 03/06/16 14:19, Paul Moore wrote: >> On 3 June 2016 at 13:20, Christopher Baines wrote: >>> I'm trying to write a script to get information about a source >>> distributions requirements (from the source distribution), but I'm not >>> sure ho

Re: [Distutils] Accessing tests_require and setup_requires from the setup.py

2016-06-03 Thread Paul Moore
On 3 June 2016 at 13:20, Christopher Baines wrote: > I'm trying to write a script to get information about a source > distributions requirements (from the source distribution), but I'm not > sure how to access the tests_require and setup_requires that can > sometimes be found in the setup.py? > >

[Distutils] Accessing tests_require and setup_requires from the setup.py

2016-06-03 Thread Christopher Baines
I'm trying to write a script to get information about a source distributions requirements (from the source distribution), but I'm not sure how to access the tests_require and setup_requires that can sometimes be found in the setup.py? Apologies if this is really simple, and I've just missed the an