prjemian / spec2nexus

Converts SPEC data files and scans into NeXus HDF5 files
https://prjemian.github.io/spec2nexus/
4 stars 7 forks source link

review/revise the import requirements #252

Closed prjemian closed 2 years ago

prjemian commented 2 years ago

Not all of the packages listed in requirements.txt are still needed. Also, the conda-forge linter suggests matplotlib-base would avoid having a large Qt download consequence.

(base) $ git grep import | grep coverage
(base) $ git grep import | grep docopt
(base) $ git grep import | grep h5py
demo/usaxs_flyscan.py:import h5py
docs/source/conf.py:autodoc_mock_imports = "h5py numpy matplotlib pyRestTable".split()
src/spec2nexus/eznx.py:import h5py  # HDF5 support
src/spec2nexus/tests/test_data_03_06_JanTest.py:import h5py
src/spec2nexus/tests/test_eznx.py:import h5py
src/spec2nexus/tests/test_issue107.py:import h5py
src/spec2nexus/tests/test_issue191.py:import h5py
src/spec2nexus/tests/test_issue230.py:import h5py
src/spec2nexus/tests/test_md_apstools_specwriter.py:import h5py
src/spec2nexus/tests/test_nexus.py:import h5py
src/spec2nexus/tests/test_plugin.py:import h5py
src/spec2nexus/tests/test_uxml.py:import h5py
src/spec2nexus/tests/test_writer.py:import h5py
src/spec2nexus/writer.py:import h5py
(base) $ git grep import | grep lxml
src/spec2nexus/plugins/uxml.py:from lxml import etree
src/spec2nexus/tests/test_specplot_gallery.py:from lxml import etree
src/spec2nexus/tests/test_uxml.py:from lxml import etree
(base) $ git grep import | grep six
docs/source/_static/pv_plugin.py:import six
docs/source/how_to_write_plugin.rst:   import six
docs/source/how_to_write_plugin.rst:   import six
docs/source/how_to_write_plugin.rst:   import six
src/spec2nexus/eznx.py:import six
src/spec2nexus/plugins/XPCS.py:import six
src/spec2nexus/plugins/apstools_specwriter.py:import six
src/spec2nexus/plugins/fallback.py:import six
src/spec2nexus/plugins/spec_common.py:import six
src/spec2nexus/plugins/uim.py:import six
src/spec2nexus/plugins/unicat.py:import six
src/spec2nexus/plugins/uxml.py:import six
src/spec2nexus/tests/custom_plugins/process_only_plugin.py:import six
(base) $ git grep import | grep pyRestTable
docs/source/conf.py:autodoc_mock_imports = "h5py numpy matplotlib pyRestTable".split()
prjemian commented 2 years ago

Also consider https://github.com/prjemian/spec2nexus/network/dependencies

carterbox commented 2 years ago

Remember to update the conda-forge recipe with the new dependencies.