CosmicStudioSoftware / OMMBV

Orthogonal Multipole Magnetic Basis Vectors - Complete orthogonal vector basis with accurate field-line mapping of electric fields and ion drifts within multipole magnetic fields
BSD 3-Clause "New" or "Revised" License
10 stars 7 forks source link

pysatMagVect tests require pysat, but pysat is not a dependancy in setup.py #13

Closed lkilcommons closed 5 years ago

lkilcommons commented 5 years ago

After a successful installation python setup.py install, nosetest -vs pysatMagVect fails with No module pysat. Minor problem, but might be good if pysat were added to optional dependancies in setup.py. e.g.

'tests_require=['pysat']'

or

extras_require={'testing':['nose','pysat']}

Not clear which is best practice, I've seen both. I think tests_require is specifically if you want python setup.py test to run your tests. https://stackoverflow.com/questions/26064738/should-pytest-et-al-go-in-tests-require-or-extras-requiretesting

(Python 2.7 in virtual environment on Glade supercomputer)

rstoneback commented 5 years ago

Thanks for the report Liam.

I’ll take a look. Just a heads up that develop is the most current and has a number of changes compared to master. I’m planning on pulling into master very soon, once I get back to Dallas and have some time to catch up.

Cheers, Russell

On Nov 16, 2018, at 11:08 AM, Liam Kilcommons notifications@github.com<mailto:notifications@github.com> wrote:

After a successful installation python setup.py install, nosetest -vs pysatMagVect fails with No module pysat. Minor problem, but might be good if pysat were added to optional dependancies in setup.py. e.g.

'tests_require=[pysat]'

or

extras_require={'testing':[nose,pysat]}

Not clear which is best practice, I've seen both. I think tests_require is specifically if you want python setup.py test to run your tests. https://stackoverflow.com/questions/26064738/should-pytest-et-al-go-in-tests-require-or-extras-requiretesting

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/rstoneback/pysatMagVect/issues/13, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADbdeYNLx8VqFRl6Nje6Dl9Gya5LKwb7ks5uvv8jgaJpZM4YmuYe.

rstoneback commented 5 years ago

Fix in pull #14 . I added pysat to the general requirements and nose via the extras_require. Thanks for posting for the issue.