Convert scripts to entry_points
This MR converts all of the scripts previously managed in bin/
into entry points constructed from code now managed as modules in the new dqsegdb.tools
subpackage.
Using entry points rather than scripts has a few advantages
- much easier to test functions in the code independently of the whole
- much easier to measure coverage
- entry points are more portable (easier to install on non-Unix platforms, for example)
- allows for a
noarch: python
conda package (niche benefit)
This should have no impact on the functionality or usability of any of the current scripts.
Merge request reports
Activity
added 6 commits
- cb359e05 - ligolw_dq_query_dqsegdb: fix %prog for module execution
- 39ba1e96 - ligolw_publish_threaded_dqxml_dqsegdb: fix %prog for module execution
- 33ec0914 - ligolw_segment_insert_dqsegdb: fix %prog for module execution
- 77130a68 - ligolw_segment_query_dqsegdb: fix %prog for module execution
- 9f845545 - ligolw_segments_from_cats_dqsegdb: fix %prog for module execution
- 40573a4e - add test module for entry points
Toggle commit listadded 12 commits
- 40573a4e...d3c12ffb - 2 earlier commits
- b73811a2 - convert ligolw_segments_from_cats_dqsegdb to an entry_point
- 3a95afbb - convert ligolw_segment_insert_dqsegdb to an entry_point
- 0510e975 - convert ligolw_publish_threaded_dqxml_dqsegdb to an entry_point
- 195a234c - setup.py: remove scripts usage
- b2baabf7 - ligolw_dq_query_dqsegdb: fix %prog for module execution
- 82370571 - ligolw_publish_threaded_dqxml_dqsegdb: fix %prog for module execution
- c26531fb - ligolw_segment_insert_dqsegdb: fix %prog for module execution
- 43e176c0 - ligolw_segment_query_dqsegdb: fix %prog for module execution
- 8b79c064 - ligolw_segments_from_cats_dqsegdb: fix %prog for module execution
- df586614 - add test module for entry points
Toggle commit listadded 16 commits
-
df586614...00e5d93b - 3 commits from branch
computing/dqsegdb:master
- 00e5d93b...bab06a36 - 3 earlier commits
- 05280573 - convert ligolw_segments_from_cats_dqsegdb to an entry_point
- d0a0dd35 - convert ligolw_segment_insert_dqsegdb to an entry_point
- cefa4900 - convert ligolw_publish_threaded_dqxml_dqsegdb to an entry_point
- 52355d68 - setup.py: remove scripts usage
- 9e8c3aae - ligolw_dq_query_dqsegdb: fix %prog for module execution
- c02508f6 - ligolw_publish_threaded_dqxml_dqsegdb: fix %prog for module execution
- 0ead2dad - ligolw_segment_insert_dqsegdb: fix %prog for module execution
- c7d83722 - ligolw_segment_query_dqsegdb: fix %prog for module execution
- 08e5c9b1 - ligolw_segments_from_cats_dqsegdb: fix %prog for module execution
- 0ba4b56c - add test module for entry points
Toggle commit list-
df586614...00e5d93b - 3 commits from branch
mentioned in merge request !121 (merged)
added 20 commits
-
6dd6ce7f...2e34d3ac - 5 commits from branch
computing/dqsegdb:master
- 2e34d3ac...0b5de874 - 5 earlier commits
- 5c619372 - convert ligolw_publish_threaded_dqxml_dqsegdb to an entry_point
- 054f98b7 - setup.py: remove scripts usage
- 669b26fb - ligolw_dq_query_dqsegdb: fix %prog for module execution
- 5cf3f215 - ligolw_publish_threaded_dqxml_dqsegdb: fix %prog for module execution
- 13096b09 - ligolw_segment_insert_dqsegdb: fix %prog for module execution
- 2d61bcb0 - ligolw_segment_query_dqsegdb: fix %prog for module execution
- a75083c1 - ligolw_segments_from_cats_dqsegdb: fix %prog for module execution
- e87180d4 - add test module for entry points
- 8b96a1da - ligolw_segment_query_dqsegdb: resolve legacy use of global options
- b73eb1a2 - tests: add basic functional test of ligolw_segment_insert
Toggle commit list-
6dd6ce7f...2e34d3ac - 5 commits from branch
@duncanmmacleod When I run the DQSegDB test suite, I get an error from the threaded publishing test (testing
ligolw_publish_threaded_dqxml_dqsegdb
). The output on std. out is:runtime error (local variable 'die_now' referenced before assignment) Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/root/venv_dqsegdb-client_MR_117/client/dqsegdb/tools/ligolw_publish_threaded_dqxml.py", line 148, in unlink_file os.unlink(name)
You can see the test on segments.ligo.org in /tmp/threaded_publish_1390922429/, where
run_publishing_threaded_test.sh
is run andH-DQ_Segments_cur_publishing_threaded_test.log
is the log file, which might be helpful to see where the error above is produced in code execution.@robert.bruntz, see d7c7656b.
added 1 commit
- d7c7656b - ligolw_publish_threaded_dqxml: hack around global die_now variable
changed milestone to %dqsegdb client 2.2.0
@robert.bruntz, have you had a change to verify this MR?
added 33 commits
-
d7c7656b...19b9ec80 - 17 commits from branch
computing/dqsegdb:master
- 19b9ec80...92457cf2 - 6 earlier commits
- 497d68ac - setup.py: remove scripts usage
- 53b89149 - ligolw_dq_query_dqsegdb: fix %prog for module execution
- 341ce165 - ligolw_publish_threaded_dqxml_dqsegdb: fix %prog for module execution
- 0998a38f - ligolw_segment_insert_dqsegdb: fix %prog for module execution
- 4a34e3b1 - ligolw_segment_query_dqsegdb: fix %prog for module execution
- 7ec06554 - ligolw_segments_from_cats_dqsegdb: fix %prog for module execution
- 45aa1055 - add test module for entry points
- 030d78df - ligolw_segment_query_dqsegdb: resolve legacy use of global options
- f8a19b6f - tests: add basic functional test of ligolw_segment_insert
- 2a0f237e - ligolw_publish_threaded_dqxml: hack around global die_now variable
Toggle commit list-
d7c7656b...19b9ec80 - 17 commits from branch
added 1 commit
- 6caa7887 - ligolw_segment_insert: remove unused dunder attribute