Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor databroker on top of intake. #392

Merged
merged 524 commits into from
Aug 29, 2019
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
524 commits
Select commit Hold shift + click to select a range
35cd6dc
wip
gwbischof Jun 13, 2019
9bc6d0b
working on stuff
gwbischof Jun 13, 2019
f01e54f
fit all the new peices together
gwbischof Jun 13, 2019
51344f9
update to core tests
gwbischof Jun 13, 2019
833c97c
added filled_event_pages function to BES
gwbischof Jun 14, 2019
80be075
made BES filler private
gwbischof Jun 14, 2019
ea98ac6
BLD: Use canonical spelling event-model.
danielballan Jun 17, 2019
48b82cb
CLN: Sort and deduplicate dependencies.
danielballan Jun 17, 2019
c075326
Merge pull request #55 from danielballan/cleanup-requirements
Jun 17, 2019
a898285
Changed DaskFiller so that it inherits from event_model.Filler
gwbischof Jun 17, 2019
6951fdf
BUG: fix filled field for descriptors
mrakitin Jun 17, 2019
13fb210
REF: Use dict comprehension.
danielballan Jun 18, 2019
43a521e
Handle one Event that references two Datum docs.
danielballan Jun 18, 2019
913039a
Merge pull request #56 from mrakitin/fix-filled
danielballan Jun 19, 2019
5df2c50
Include metadata in Entry.
danielballan Jun 26, 2019
d433eb5
Merge pull request #58 from danielballan/include-metadata
danielballan Jun 26, 2019
d71d94b
REL: v0.1.0a9
danielballan Jun 26, 2019
1e1dde9
work in progress
gwbischof Jun 26, 2019
9394ded
added merge_xarray_event_pages
gwbischof Jun 27, 2019
fa18d87
minor update to merge_xarrays
gwbischof Jun 27, 2019
9d0b4f7
updated DaskFIller, added event_page_to_darray_page
gwbischof Jul 1, 2019
2e8156a
Added dataarray_page_to_datasetpage
gwbischof Jul 1, 2019
091cdac
removed some stuff that wasn't needed
gwbischof Jul 1, 2019
8617116
import dask array
gwbischof Jul 1, 2019
e9e7e54
fixed copy mistake
gwbischof Jul 1, 2019
26c3b4b
added test
gwbischof Jul 1, 2019
73ed2a2
various updates
gwbischof Jul 1, 2019
aee97f8
some more fixes
gwbischof Jul 1, 2019
7b5a036
several changes
gwbischof Jul 2, 2019
21e4173
fixxed bug I created
gwbischof Jul 2, 2019
1d925f0
update to comments
gwbischof Jul 2, 2019
c2d6920
fixes to dan's comments
gwbischof Jul 2, 2019
649361b
more comment updates
gwbischof Jul 2, 2019
bc422cf
flake8 fix
gwbischof Jul 2, 2019
514a68c
override init in dask filler
gwbischof Jul 2, 2019
545833a
update to dask filler init
gwbischof Jul 2, 2019
db9184c
dask filler event_page to not inplace
gwbischof Jul 2, 2019
9fa458a
update to daskfiller inplace
gwbischof Jul 2, 2019
8475ec4
import copy
gwbischof Jul 3, 2019
d928b28
override for the event method in DaskFiller
gwbischof Jul 3, 2019
10451a4
Update to DaskFiller event method
gwbischof Jul 3, 2019
7d1e3cb
BLD: Use canonical spelling event-model.
danielballan Jun 17, 2019
34e3d9f
CLN: Sort and deduplicate dependencies.
danielballan Jun 17, 2019
ea07eb2
BUG: fix filled field for descriptors
mrakitin Jun 17, 2019
703462b
REF: Use dict comprehension.
danielballan Jun 18, 2019
c0bc051
Handle one Event that references two Datum docs.
danielballan Jun 18, 2019
1b7a022
Include metadata in Entry.
danielballan Jun 26, 2019
64d36a0
added interlace_event_page_chunks
gwbischof Jul 2, 2019
fd47a9b
Update to comments
gwbischof Jul 2, 2019
e1341f6
update to import
gwbischof Jul 2, 2019
d52d8f7
import update
gwbischof Jul 2, 2019
3fe7d72
requirments update
gwbischof Jul 3, 2019
5360ede
flake8 fixes
gwbischof Jul 3, 2019
8bae576
docstring fix
gwbischof Jul 3, 2019
d0a8bcb
Added inplace=True for Filler calls
gwbischof Jul 3, 2019
d3a3284
Merge pull request #3 from gwbischof/interlace_chunks_bu
gwbischof Jul 4, 2019
33a8ef1
Merge branch 'master' into to_xarray_update
gwbischof Jul 4, 2019
6cf98fb
fixed some merge problems
gwbischof Jul 4, 2019
6d7115f
Pass shape and dtype to from_delayed.
danielballan Jul 5, 2019
514ed00
Use canonical spelling of event-model.
danielballan Jul 5, 2019
750b4af
FIX: copy/patse typo
danielballan Jul 5, 2019
5b021fb
CI: libsnappy-dev is no longer required
danielballan Jul 5, 2019
e73bc2b
TST: Import RE fixture from bluesky.
danielballan Jul 5, 2019
478d833
TST: Add basic smoke tests for dask.
danielballan Jul 5, 2019
110baec
Merge pull request #54 from gwbischof/to_xarray_update
danielballan Jul 5, 2019
8e9f421
WIP: Implement RunCatalog.read_raw()
danielballan Mar 28, 2019
40366b8
FIX/TST: Get basic smoke test passing.
danielballan Apr 2, 2019
07373a7
update to read_partition_raw for pages, and updated the test also
gwbischof Jul 4, 2019
da56927
renamed read_raw to canonical_unfilled, and read_canonical to canonical
gwbischof Jul 5, 2019
b694c6c
Restore read_canonical() as back-compat alias.
danielballan Jul 5, 2019
2c27775
TST: Rename read_unfilled -> canonical_unfilled.
danielballan Jul 5, 2019
4062c41
added read_canonical alias in BlueskyRun
gwbischof Jul 5, 2019
d09334e
Merge pull request #2 from gwbischof/read_canonical_alias
danielballan Jul 5, 2019
10eaf8d
TST: Test that back-compat alias exists and warns.
danielballan Jul 5, 2019
5bf018b
Update read_canonical() -> canonical() in docs.
danielballan Jul 5, 2019
48d3838
Merge pull request #46 from danielballan/read-raw
gwbischof Jul 5, 2019
81d3e7f
TST: Make tests go faster by using module fixtures.
danielballan Jul 5, 2019
cb78480
TST: Do not mutate the test data.
danielballan Jul 8, 2019
4ced6ca
Only attempt to join thread on bluesky >=1.6.0
danielballan Jul 8, 2019
75845ef
Merge pull request #60 from danielballan/faster-tests
danielballan Jul 24, 2019
15f6a1d
Add intake.drivers entrypoints.
danielballan Jul 22, 2019
0c01808
Avoid circular imports problem by importing intake first.
danielballan Jul 24, 2019
2b931c0
Merge pull request #62 from danielballan/entrypoints
gwbischof Jul 24, 2019
e475d41
REL: v0.1.0a10
danielballan Aug 2, 2019
9ab76fa
CI: Include intake-xarray in bleeding-edge build.
danielballan Aug 5, 2019
451a508
Merge pull request #65 from danielballan/bleeding
danielballan Aug 5, 2019
dd1d2e7
REF: Remove attrs. (No test changes.)
danielballan Feb 21, 2019
55d4402
CI: Simplify mongodb setup.
danielballan Feb 21, 2019
f715de8
CI: Only publish docs on one CI build, but always build docs.
danielballan Feb 21, 2019
bbcbd15
CI: Include codecov in test requirements.
danielballan Feb 21, 2019
b52860e
CI: Drop 3.4, 3.5 so we can test against ophyd.
danielballan Feb 21, 2019
a549993
API: Remove mds client and server (to be superceded by intake).
danielballan Feb 21, 2019
bf10c6e
ENH: Direct Broker.from_config to new Broker if config has 'uri'.
danielballan Feb 22, 2019
2723a35
WIP: Sketch header_version functionality.
danielballan Feb 22, 2019
0149913
WIP: Sketch table() and documents().
danielballan Feb 22, 2019
1ef41ee
STY: Satisfy flake8 (for new file).
danielballan Feb 22, 2019
7300721
REF: Move get_fields to utils.
danielballan Mar 4, 2019
9cffaab
TST: Add intake-backed db test fixtures.
danielballan Mar 4, 2019
956135d
FIX: Various fixups to transitional module.
danielballan Mar 4, 2019
8544223
BLD: Update test requirements.
danielballan Mar 4, 2019
5283650
Add get_events, get_table, get_documents.
danielballan Mar 13, 2019
461db11
Filter documents by stream name.
danielballan Mar 13, 2019
6c795f2
DataFrame index is seq_num.
danielballan Mar 13, 2019
b63e159
API: Raise KeyError where appropriate.
danielballan Mar 13, 2019
4d8358d
Add field filtering.
danielballan Mar 13, 2019
ffd7b08
Add alias, dynamic_alias.
danielballan Mar 13, 2019
b3bd461
Support __getitem__ slice.
danielballan Mar 13, 2019
9046838
Define __eq__.
danielballan Mar 13, 2019
e3b48eb
API: Headers are rich objects and cannot be dicts.
danielballan Mar 13, 2019
0de0e81
Add many more methods. Use prepare_hook everywhere.
danielballan Mar 13, 2019
4c135e6
Add _repr_html_.
danielballan Mar 13, 2019
3deb082
Add ext.
danielballan Mar 13, 2019
ffdca73
MNT: Update names changed in suitcase, intake-bluesky.
danielballan Apr 9, 2019
cdb5a92
Add filtering-related methods.
danielballan Apr 9, 2019
3d20e3b
Handle since/until.
danielballan Apr 9, 2019
c433c78
FIX: Lookup by slice was failing some tests.
danielballan Apr 10, 2019
c3f50a1
TMP: Skip failing tests so @gwbischof can work against this branch.
danielballan Apr 22, 2019
b34313d
updated for mongo embedded
gwbischof Apr 24, 2019
e4319d6
Update for tests for mongo_embedded
gwbischof Apr 25, 2019
250af26
undid ordering test changes
gwbischof Apr 26, 2019
bd14f65
TMP: Comment out embedded until others pass.
danielballan Jun 6, 2019
1a920d5
TST: Skip testing mds against intake-backed Broker.
danielballan Jun 6, 2019
ecea1e1
BLD: Add intake-bluesky dependency.
danielballan Jun 6, 2019
0118b0d
BLD: Add test dependency on intake[server].
danielballan Jun 6, 2019
d2938a2
added mongobox to test requirments
gwbischof Aug 14, 2019
1ce3193
TST: Stream documents in prep for tests on partial data.
danielballan Jul 9, 2019
6b90446
Fix prepare_hook and reloading of 'stop' doc.
danielballan Jul 9, 2019
52b1192
Open entry once and cache the result.
danielballan Aug 15, 2019
bad3920
Use describe() to access metadata.
danielballan Aug 16, 2019
a0133e9
added filename argument to gen
gwbischof Aug 16, 2019
1b61128
moved gen
gwbischof Aug 16, 2019
c525071
fixed whitespace
gwbischof Aug 16, 2019
b9f332a
Merge pull request #66 from gwbischof/gen_arg
gwbischof Aug 16, 2019
7bb5b72
Header._stop was none, this change fixes a bunch of tests
gwbischof Aug 16, 2019
6f53ae9
removed print statements
gwbischof Aug 16, 2019
c3d2abb
Fix 'stop' accessor.
danielballan Aug 16, 2019
d9c24f4
Add a .reg attribute.
danielballan Aug 16, 2019
2b7c267
Make v0, v1, v2.
danielballan Aug 20, 2019
c909ffb
More v0, v1, v2 conversion.
danielballan Aug 20, 2019
64b318e
added method to get stop doc for jsonl
gwbischof Aug 20, 2019
7ccc756
changed get_stop to stop_doc and got tests working
gwbischof Aug 21, 2019
171a971
added a test for lastlines
gwbischof Aug 21, 2019
1aadbc9
got the msgpack tests working by adding get_stop
gwbischof Aug 21, 2019
8f0c431
fixes
gwbischof Aug 21, 2019
a61a950
comment updates
gwbischof Aug 21, 2019
2fc3436
update to tail
gwbischof Aug 22, 2019
2684b28
flake fix
gwbischof Aug 22, 2019
26f699e
fix to tail
gwbischof Aug 22, 2019
c9e28da
Yet more v0, v1, v2 conversion.
danielballan Aug 22, 2019
970ef91
Note possibility of returning None in docstring.
danielballan Aug 22, 2019
cc68759
Merge branch 'get_stop_doc'
danielballan Aug 22, 2019
d666938
More fixes
danielballan Aug 22, 2019
5431884
added export and insert to Broker
gwbischof Aug 23, 2019
ccd4c90
added Broker fs property
gwbischof Aug 23, 2019
2fee5c8
Add 'intake_bluesky/' from commit 'cc68759177d98274165a2fc863ccb52fbd…
danielballan Aug 23, 2019
6f5b0c2
Merge intake-bluesky's packaging-related files into ours.
danielballan Aug 23, 2019
8a45fdf
Stash intake-bluesky docs under doc to deal with them later.
danielballan Aug 23, 2019
22e3f99
Remove intake-bluesky versioneer file.
danielballan Aug 23, 2019
2573b45
Move intake drivers into databroker._drivers.
danielballan Aug 23, 2019
d3545a9
Move tests, core, in_memory.
danielballan Aug 23, 2019
a9dc550
Merge in useful stuff from intake-bluesky dotfiles.
danielballan Aug 23, 2019
e216ca6
Update imports. The test_v2 tests pass.
danielballan Aug 23, 2019
5479ba6
Catalogs of Runs inherit from v2.Broker.
danielballan Aug 23, 2019
a9fe2ce
Update read_canonical -> canonical.
danielballan Aug 23, 2019
844dff6
Tackle config-parsing.
danielballan Aug 26, 2019
2c61b34
Fix setup.py
danielballan Aug 26, 2019
a4b361c
Add insert() to v1.
danielballan Aug 26, 2019
32edf6f
Remove reference to old implementation versions.
danielballan Aug 26, 2019
ab692a4
Insert into other, not self.
danielballan Aug 26, 2019
36d2a89
copy_files now runs, but may not work
danielballan Aug 26, 2019
7b2182f
Get Broker.named('temp') working, backed by msgpack.
danielballan Aug 27, 2019
9ffafa9
Add experimental queries module.
danielballan Aug 27, 2019
2380c58
Get TimeRange working.
danielballan Aug 27, 2019
71a98db
Add missing imports
danielballan Aug 27, 2019
40b3049
Make BlueskyRun.get_file_list work for one resource at a time.
danielballan Aug 27, 2019
c0709bc
Make copy_files require Resource not UID
danielballan Aug 27, 2019
9a7814e
Add reload on insert. Remove duplicate method.
danielballan Aug 27, 2019
55a8b0c
Add Header.xarray and Header.xarray_dask <3 @tacaswell
danielballan Aug 27, 2019
085476d
Fix typo
danielballan Aug 27, 2019
a65e5f0
Implement get_images / Images for v1.
danielballan Aug 27, 2019
256c5f6
Implement export_size.
danielballan Aug 27, 2019
3060013
Use driver name so that drivers can be split into other pkgs.
danielballan Aug 27, 2019
9b8722a
Forget header_version.
danielballan Aug 27, 2019
dcc5c01
Add self-referential properties.
danielballan Aug 27, 2019
0bf6315
Remove vestigial search method.
danielballan Aug 27, 2019
8e0b304
Remove init by being a little messy with caching prop.
danielballan Aug 27, 2019
9ef0f6d
Update docstring.
danielballan Aug 27, 2019
e0c1c4a
Make TimeQuery immutable.
danielballan Aug 27, 2019
a4e3495
gave canonical a required argument 'fill'
gwbischof Aug 27, 2019
737153d
changed read partition to take a dict argument
gwbischof Aug 27, 2019
d426c80
Rework configuration as discussed on call.
danielballan Aug 27, 2019
c1a9936
Offer more help in the BlueskyRun.read() error message.
danielballan Aug 27, 2019
c1244ad
The soft reload is redundant, will happen on access.
danielballan Aug 27, 2019
d0bf10f
Give JSONL catalog a _get_serializer method as well.
danielballan Aug 27, 2019
e00d5be
Simplify v1.Broker construction in fixtures.
danielballan Aug 27, 2019
2877c78
Make name collision less likely.
danielballan Aug 27, 2019
c65668e
Put call to _get_serializer in one place.
danielballan Aug 27, 2019
755b161
Fix tests.
danielballan Aug 28, 2019
54efb44
Simplify more test fixtures.
danielballan Aug 28, 2019
85c6ee6
Patch v1 state and simplify Header signature.
danielballan Aug 28, 2019
f081177
Ensure v1.Broker(...).v2.v1 is v1.
danielballan Aug 28, 2019
af9bd92
Fix import.
danielballan Aug 28, 2019
b33cd8a
Revert change to back-compat test.
danielballan Aug 28, 2019
b928c1f
Fix test_v2/ tests.
danielballan Aug 28, 2019
ee7e3a9
Address xarray.concat warnings.
danielballan Aug 28, 2019
c5a9c29
Fix imports and remove PY2 shims.
danielballan Aug 28, 2019
104caf9
Move more config stuff to utils.
danielballan Aug 28, 2019
76797e7
Use pytest.ini instead of run_tests.py.
danielballan Aug 28, 2019
7482ce1
Merge branch 'master' into one-point-oh-no-you-didnt
danielballan Aug 28, 2019
0384315
Remove duplicate matrix block from bad merge.
danielballan Aug 28, 2019
fbe2bc7
Add libsnappy-dev, still a server dependency.
danielballan Aug 28, 2019
dea2bf4
Use bare pytest; run_tests.py has been removed.
danielballan Aug 28, 2019
a52c203
Bump intake pins to require releases that use entrypoints.
danielballan Aug 28, 2019
20ea823
Include suitcase-msgpack so Broker.named('temp').insert works.
danielballan Aug 28, 2019
438f403
Make databroer._drivers a package.
danielballan Aug 28, 2019
4dddd0c
Remove hand-editing intake.registry; rely on entrypoints.
danielballan Aug 28, 2019
4cc1dd2
Make 'fill' keyword-only as discussed. Finesse docstring.
danielballan Aug 28, 2019
2af117d
Remove all skip(reason='temp') marks.
danielballan Aug 28, 2019
1f9884d
Remove @py3.
danielballan Aug 28, 2019
8c34122
Pass fill through get_documents to canonical.
danielballan Aug 28, 2019
30ef418
Unpack pages in get_documents.
danielballan Aug 28, 2019
4bae5e0
updated to test_handler_options
gwbischof Aug 28, 2019
c9d6c9d
minor fix to get_documents
gwbischof Aug 28, 2019
7c63630
minor fix to get_documents
gwbischof Aug 28, 2019
d63a8f5
Added NotImplementedError for handler_registry arguments
gwbischof Aug 28, 2019
4ec6b0e
Remove handler_options from access methods. Raises NotImplementedError.
danielballan Aug 28, 2019
3e56fd4
Move _transpose to utils.transpose.
danielballan Aug 28, 2019
66f9597
Restore support for fill=False. Make table from docs, not xarray.
danielballan Aug 28, 2019
bef4fa3
get_documents was not yielding some doc types
danielballan Aug 28, 2019
c532de8
update to test_handler_options
gwbischof Aug 28, 2019
bb3798d
removed fill = field from the data function
gwbischof Aug 28, 2019
3502226
fix for test_filtering_stream_name
gwbischof Aug 28, 2019
a37a8ee
Do not require exactly the same order.
danielballan Aug 29, 2019
e55fea4
Name the index on the df returned by get_table().
danielballan Aug 29, 2019
71cd4a9
Use ophyd.sim.img instead of side-banding res, datum.
danielballan Aug 29, 2019
5e69d92
Merge config into event in every codepath.
danielballan Aug 29, 2019
e9c2a7b
added GetDocumentsRouter
gwbischof Aug 29, 2019
17feb05
Define class at module scope (easier to test).
danielballan Aug 29, 2019
004ea67
Revert "API: Remove mds client and server (to be superceded by intake)."
danielballan Aug 29, 2019
f003eee
Make client tests opt-in via env var.
danielballan Aug 29, 2019
07ead0c
Rework _GetDocumentsRouter into a generator-based thing.
danielballan Aug 29, 2019
ac1d20b
Only emit descriptors that match the stream_name.
danielballan Aug 29, 2019
cb4f077
Filter our own PendingDeprecationWarning.
danielballan Aug 29, 2019
a539414
update to __get_item__
gwbischof Aug 29, 2019
0f313c3
API: canonical(fill='yes') should still include resource, datum
danielballan Aug 29, 2019
22575ab
Revert "update to __get_item__"
gwbischof Aug 29, 2019
a94e40f
skipif test_urls tests
gwbischof Aug 29, 2019
f32d7b2
Update test_v2 to expect resource, datum.
danielballan Aug 29, 2019
74775ef
skipif moved to module level in test_urls
gwbischof Aug 29, 2019
741eae3
whitespace, spelling
danielballan Aug 29, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,6 @@ doc/source/_as_gen/*

#
doc/source/_as_gen

# generated by IPython example in docs
doc/data/*
75 changes: 42 additions & 33 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
dist: xenial # for Python 3.7
language: python
sudo: false
matrix:
fast_finish: true
include:
- python: 3.6
env: INTAKE_MASTER=false
- python: 3.7
env: INTAKE_MASTER=false
- python: 3.7
env: INTAKE_MASTER=true
- python: nightly
env: INTAKE_MASTER=false
addons:
apt:
packages:
# Some additional packages for the Python nightly
- libhdf5-serial-dev
- libnetcdf-dev
- libsnappy-dev
- netcdf-bin
allow_failures:
- python: nightly
- env: INTAKE_MASTER=true
cache:
directories:
- $HOME/.cache/pip
- $HOME/.ccache # https://github.com/travis-ci/travis-ci/issues/5853
addons:
apt:
packages:
- libsnappy-dev
services:
- mongodb

env:
global:
Expand All @@ -8,55 +40,32 @@ env:
# Doctr deploy key for bluesky/bluesky.github.io
- secure: "spb6HwGVvMPsQw9cEwJscmAlG7seL0svW8ouYlDr4OESJJJqC8bynEpAl7Zm/NuKiZ701IR9gEBFuwCRoEXNJ6AkqgBE0DOMj4Oezg4eUnaZz0aXJ+C6mz31vbcNmU6MrjSElw80cIXBpia3j//VMluMzJMsGx/ELPATu2nwyx1+KXljGpFe1/7HYcq/wFHi+sC02sZRVYJGqrb5Zms35hlk4xasWKlsgLh53kW+ss+4hY67vllL2iRkYiP+8z4e3dTOuDqJWx5lLT16wt0K+wJyP/QTyIP81tmMNoWRbdrfOrzyyVXZDbrlzpZDBRtvlMFMHOeEZOrFPIYuclEjT39Tge+T/OxR6SC8kvzqVItxyxLEKWpQu8DHRVEDAuirteuv4IKEnS80nbWn4v/sBOU+sC0/23dW9zZkMrNmRoSFcjudmy2PGIY8jxzOhGJJ+Rbi0xIaKwdLbDZoPHM3m9m2uWYfGNMBHDgnh/HDIq71zzYWaW4gChYgU0UeDM1RYnr1XRa44znlZ0YLnmEyxn/5LzH/hRDxqc5XH5OAiKLnTddZFYsvdRT1JMNSA5PRSm7E8BCvCOEwovjnvRUc0dktyd8+OC5+Eyf1neJ6M7F2sGxCi3yMKw3VmfCxINu6XO3GsPE7cKACEq0lriCxjNzFWbedOX9dTL1Uqdc3pQA="


cache:
directories:
- $HOME/.cache/pip
- $HOME/.cache/matplotlib

services:
- mongodb

addons:
apt:
sources:
- mongodb-3.2-precise
packages:
- mongodb-org-server
- mongodb-org

before_install:
- export TZ=US/Eastern

matrix:
fast_finish: true
include:
- python: 3.6
- python: 3.7
dist: xenial
env: PUBLISH_DOCS=1
- python: nightly
allow_failures:
- python: nightly

install:
- pip install --upgrade cython
- pip install --quiet --upgrade --global-option='--without-libyaml' pyyaml
- pip install .[all]
- pip install -r requirements-test.txt
- pip install codecov
# Install intake master branch if build settings indicate to do so.
- |
if [ "$INTAKE_MASTER" = true ] ; then
pip install git+https://github.com/intake/intake@master
pip install git+https://github.com/intake/intake-xarray@master
fi

script:
- coverage run run_tests.py
- coverage run -m pytest
- coverage report -m
- set -e
- pip install -r requirements-docs.txt
- make -C doc html
- |
if [ $PUBLISH_DOCS ]; then
# Push built documentation to GH pages.
pip install doctr
doctr deploy --deploy-repo NSLS-II/NSLS-II.github.io --deploy-branch-name master databroker
pip install doctr;
doctr deploy --deploy-repo NSLS-II/NSLS-II.github.io --deploy-branch-name master databroker;
doctr deploy --deploy-repo bluesky/bluesky.github.io --deploy-branch-name master databroker
fi

Expand Down
12 changes: 10 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include databroker/_version.py
include databroker/assets/schemas/*.json
recursive-include doc/source *
include doc/Makefile doc/make.bat
include LICENSE
Expand All @@ -8,3 +6,13 @@ include README.md
include requirements.txt
include setup.py
include versioneer.py

recursive-exclude * __pycache__
recursive-exclude * *.py[co]

include versioneer.py
include databroker/_version.py
include databroker/assets/schemas/*.json

# If including data files in the package, add them like:
# include path/to/data_file
12 changes: 4 additions & 8 deletions databroker/__init__.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
# Import intake to run driver discovery first and avoid circular import issues.
import intake
del intake

import warnings
import logging


logger = logging.getLogger(__name__)


try:
import attr # confusingly, this comes from 'attrs' on PyPI, not 'attr'
attr.s
except AttributeError:
raise ImportError("Wrong attr module imported. Please uninstall 'attr' "
"and install 'attrs' which provides the correct module.")


from ._core import (Broker, BrokerES, Header, ALL,
lookup_config, list_configs, describe_configs, temp_config,
wrap_in_doct,
Expand Down
Loading