@opentrons/shared-data 0.0.1-alpha.20 → 0.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Makefile +1 -1
- package/lib/opentrons-shared-data.js +1 -1
- package/lib/opentrons-shared-data.js.map +1 -1
- package/package.json +1 -1
- package/js/__tests__/__snapshots__/pipettes.test.ts.snap +0 -5969
- package/js/__tests__/deckSchemas.test.ts +0 -87
- package/js/__tests__/errors.test.js +0 -21
- package/js/__tests__/getAreSlotsAdjacent.test.ts +0 -128
- package/js/__tests__/getWellNamePerMultiTip.test.ts +0 -162
- package/js/__tests__/labwareDefQuirks.test.ts +0 -37
- package/js/__tests__/labwareDefSchemaV1.test.ts +0 -82
- package/js/__tests__/labwareDefSchemaV2.test.ts +0 -298
- package/js/__tests__/moduleAccessors.test.ts +0 -50
- package/js/__tests__/moduleSpecsSchema.test.ts +0 -77
- package/js/__tests__/pipetteSchemaV2.test.ts +0 -107
- package/js/__tests__/pipetteSpecSchemas.test.ts +0 -48
- package/js/__tests__/pipettes.test.ts +0 -58
- package/js/__tests__/protocolSchemaV4.test.ts +0 -137
- package/js/__tests__/protocolSchemaV5.test.ts +0 -137
- package/js/__tests__/protocolSchemaV6.test.ts +0 -132
- package/js/__tests__/protocolSchemaV7.test.ts +0 -64
- package/js/__tests__/protocolValidation.test.ts +0 -83
- package/js/__tests__/sortWells.test.ts +0 -40
- package/js/__tests__/splitWellsOnColumn.test.ts +0 -21
- package/js/__tests__/validateErrors.test.js +0 -34
- package/js/constants.ts +0 -338
- package/js/cypressUtils.ts +0 -35
- package/js/errors.ts +0 -33
- package/js/fixtures.ts +0 -161
- package/js/getLabware.ts +0 -154
- package/js/gripper.ts +0 -29
- package/js/helpers/__tests__/getAdapterName.test.ts +0 -31
- package/js/helpers/__tests__/getDeckDefFromLoadedLabware.test.ts +0 -12
- package/js/helpers/__tests__/getVectorDifference.test.ts +0 -25
- package/js/helpers/__tests__/getVectorSum.test.ts +0 -21
- package/js/helpers/__tests__/labwareInference.test.ts +0 -84
- package/js/helpers/__tests__/orderWells.test.ts +0 -87
- package/js/helpers/__tests__/parseProtocolData.test.ts +0 -165
- package/js/helpers/__tests__/volume.test.ts +0 -108
- package/js/helpers/__tests__/wellSets.test.ts +0 -352
- package/js/helpers/get96Channel384WellPlateWells.ts +0 -44
- package/js/helpers/getAddressableAreasInProtocol.ts +0 -59
- package/js/helpers/getLoadedLabwareDefinitionsByUri.ts +0 -30
- package/js/helpers/getModuleVizDims.ts +0 -118
- package/js/helpers/getOccludedSlotCountForModule.ts +0 -13
- package/js/helpers/getVectorDifference.ts +0 -12
- package/js/helpers/getVectorSum.ts +0 -12
- package/js/helpers/getWellNamePerMultiTip.ts +0 -86
- package/js/helpers/getWellTotalVolume.ts +0 -16
- package/js/helpers/index.ts +0 -347
- package/js/helpers/labwareInference.ts +0 -92
- package/js/helpers/orderWells.ts +0 -69
- package/js/helpers/parseProtocolData.ts +0 -141
- package/js/helpers/volume.ts +0 -35
- package/js/helpers/wellIsRect.ts +0 -6
- package/js/helpers/wellSets.ts +0 -155
- package/js/index.ts +0 -14
- package/js/labwareTools/__tests__/__snapshots__/createIrregularLabware.test.ts.snap +0 -3
- package/js/labwareTools/__tests__/__snapshots__/createLabware.test.ts.snap +0 -3
- package/js/labwareTools/__tests__/createDefaultDisplayName.test.ts +0 -111
- package/js/labwareTools/__tests__/createIrregularLabware.test.ts +0 -226
- package/js/labwareTools/__tests__/createLabware.test.ts +0 -147
- package/js/labwareTools/index.ts +0 -452
- package/js/modules.ts +0 -97
- package/js/pipettes.ts +0 -89
- package/js/protocols.ts +0 -290
- package/js/schema.ts +0 -80
- package/js/scripts/generateDeckLayersFromSVG.js +0 -46
- package/js/titleCase.ts +0 -30
- package/js/types.ts +0 -600
- package/python/.coveragerc +0 -4
- package/python/.flake8 +0 -32
- package/python/Config.in +0 -10
- package/python/Makefile +0 -134
- package/python/Pipfile +0 -28
- package/python/Pipfile.lock +0 -645
- package/python/buildroot.mk +0 -30
- package/python/mypy.ini +0 -41
- package/python/opentrons_shared_data/__init__.py +0 -17
- package/python/opentrons_shared_data/_version.py +0 -20
- package/python/opentrons_shared_data/command/__init__.py +0 -52
- package/python/opentrons_shared_data/deck/__init__.py +0 -96
- package/python/opentrons_shared_data/deck/dev_types.py +0 -180
- package/python/opentrons_shared_data/errors/__init__.py +0 -30
- package/python/opentrons_shared_data/errors/categories.py +0 -60
- package/python/opentrons_shared_data/errors/codes.py +0 -108
- package/python/opentrons_shared_data/errors/exceptions.py +0 -915
- package/python/opentrons_shared_data/gripper/__init__.py +0 -63
- package/python/opentrons_shared_data/gripper/constants.py +0 -6
- package/python/opentrons_shared_data/gripper/gripper_definition.py +0 -101
- package/python/opentrons_shared_data/labware/__init__.py +0 -22
- package/python/opentrons_shared_data/labware/constants.py +0 -7
- package/python/opentrons_shared_data/labware/dev_types.py +0 -140
- package/python/opentrons_shared_data/labware/labware_definition.py +0 -328
- package/python/opentrons_shared_data/load.py +0 -57
- package/python/opentrons_shared_data/module/__init__.py +0 -74
- package/python/opentrons_shared_data/module/dev_types.py +0 -141
- package/python/opentrons_shared_data/pipette/__init__.py +0 -107
- package/python/opentrons_shared_data/pipette/dev_types.py +0 -177
- package/python/opentrons_shared_data/pipette/file_operation_helpers.py +0 -37
- package/python/opentrons_shared_data/pipette/load_data.py +0 -261
- package/python/opentrons_shared_data/pipette/model_constants.py +0 -123
- package/python/opentrons_shared_data/pipette/mutable_configurations.py +0 -431
- package/python/opentrons_shared_data/pipette/pipette_definition.py +0 -503
- package/python/opentrons_shared_data/pipette/pipette_load_name_conversions.py +0 -240
- package/python/opentrons_shared_data/pipette/scripts/__init__.py +0 -0
- package/python/opentrons_shared_data/pipette/scripts/build_json_script.py +0 -469
- package/python/opentrons_shared_data/pipette/scripts/update_configuration_files.py +0 -450
- package/python/opentrons_shared_data/pipette/types.py +0 -193
- package/python/opentrons_shared_data/protocol/__init__.py +0 -13
- package/python/opentrons_shared_data/protocol/constants.py +0 -98
- package/python/opentrons_shared_data/protocol/dev_types.py +0 -436
- package/python/opentrons_shared_data/protocol/models/__init__.py +0 -48
- package/python/opentrons_shared_data/protocol/models/protocol_schema_v6.py +0 -145
- package/python/opentrons_shared_data/protocol/models/protocol_schema_v7.py +0 -95
- package/python/opentrons_shared_data/protocol/models/protocol_schema_v8.py +0 -110
- package/python/opentrons_shared_data/protocol/models/shared_models.py +0 -111
- package/python/opentrons_shared_data/py.typed +0 -0
- package/python/opentrons_shared_data/robot/__init__.py +0 -33
- package/python/opentrons_shared_data/robot/dev_types.py +0 -37
- package/python/pytest.ini +0 -2
- package/python/setup.cfg +0 -5
- package/python/setup.py +0 -179
- package/python/tests/__init__.py +0 -1
- package/python/tests/conftest.py +0 -0
- package/python/tests/deck/__init__.py +0 -0
- package/python/tests/deck/test_list_names.py +0 -12
- package/python/tests/deck/test_position.py +0 -113
- package/python/tests/deck/test_typechecks.py +0 -28
- package/python/tests/errors/__init__.py +0 -1
- package/python/tests/errors/test_error_completeness.py +0 -19
- package/python/tests/errors/test_exceptions.py +0 -74
- package/python/tests/gripper/__init__.py +0 -0
- package/python/tests/gripper/test_definition.py +0 -30
- package/python/tests/gripper/test_load.py +0 -16
- package/python/tests/labware/__init__.py +0 -13
- package/python/tests/labware/test_typechecks.py +0 -21
- package/python/tests/module/__init__.py +0 -20
- package/python/tests/module/test_load.py +0 -49
- package/python/tests/module/test_typechecks.py +0 -34
- package/python/tests/pipette/__init__.py +0 -0
- package/python/tests/pipette/test_load_data.py +0 -103
- package/python/tests/pipette/test_mutable_configurations.py +0 -266
- package/python/tests/pipette/test_pipette_definition.py +0 -183
- package/python/tests/pipette/test_pipette_load_name_conversions.py +0 -222
- package/python/tests/pipette/test_typechecks.py +0 -50
- package/python/tests/pipette/test_validate_schema.py +0 -37
- package/python/tests/protocol/__init__.py +0 -15
- package/python/tests/protocol/test_protocol_schema_v6.py +0 -107
- package/python/tests/protocol/test_protocol_schema_v7.py +0 -34
- package/python/tests/protocol/test_protocol_schema_v8.py +0 -20
- package/python/tests/protocol/test_typechecks.py +0 -36
- package/python/tests/robot/__init__.py +0 -0
- package/python/tests/robot/test_typechecks.py +0 -20
package/python/Makefile
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
# shared-data/python makefile
|
|
2
|
-
|
|
3
|
-
include ../../scripts/python.mk
|
|
4
|
-
include ../../scripts/push.mk
|
|
5
|
-
|
|
6
|
-
# Host key location for robot
|
|
7
|
-
ssh_key ?= $(default_ssh_key)
|
|
8
|
-
# Other SSH args for robot
|
|
9
|
-
ssh_opts ?= $(default_ssh_opts)
|
|
10
|
-
|
|
11
|
-
# using bash instead of /bin/bash in SHELL prevents macOS optimizing away our PATH update
|
|
12
|
-
SHELL := bash
|
|
13
|
-
|
|
14
|
-
# add node_modules/.bin to PATH
|
|
15
|
-
PATH := $(shell cd ../.. && yarn bin):$(PATH)
|
|
16
|
-
|
|
17
|
-
# This may be set as an environment variable (and is by CI tasks that upload
|
|
18
|
-
# to test pypi) to add a .dev extension to the python package versions. If
|
|
19
|
-
# empty, no .dev extension is appended, so this definition is here only as
|
|
20
|
-
# documentation
|
|
21
|
-
BUILD_NUMBER ?=
|
|
22
|
-
|
|
23
|
-
ot_project := $(OPENTRONS_PROJECT)
|
|
24
|
-
project_rs_default = $(if $(ot_project),$(ot_project),robot-stack)
|
|
25
|
-
project_ot3_default = $(if $(ot_project),$(ot_project),ot3)
|
|
26
|
-
|
|
27
|
-
# this may be set as an environment variable to select the version of
|
|
28
|
-
# python to run if pyenv is not available. it should always be set to
|
|
29
|
-
# point to a python3.6.
|
|
30
|
-
OT_PYTHON ?= python
|
|
31
|
-
|
|
32
|
-
BUILD_DIR := dist
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
wheel_file = $(BUILD_DIR)/$(call python_get_wheelname,shared-data,$(project_rs_default),opentrons_shared_data,$(BUILD_NUMBER),../../scripts/python_build_utils.py)
|
|
36
|
-
sdist_file = $(BUILD_DIR)/$(call python_get_sdistname,shared-data,$(project_ot3_default),opentrons_shared_data,,../../scripts/python_build_utils.py)
|
|
37
|
-
|
|
38
|
-
py_sources = $(filter %.py,$(shell $(SHX) find opentrons_shared_data)) opentrons_shared_data/py.typed
|
|
39
|
-
deck_sources = $(wildcard ../deck/definitions/*/*.json) $(wildcard ../deck/schemas/*.json)
|
|
40
|
-
labware_sources = $(wildcard ../labware/definitions/*/*.json) $(wildcard ../labware/schemas/*.json)
|
|
41
|
-
module_sources = $(wildcard ../module/definitions/*.json) $(wildcard ../module/definitions/*/*.json) $(wildcard ../module/schemas/*.json)
|
|
42
|
-
pipette_sources = $(wildcard ../pipette/definitions/*.json) $(wildcard ../pipette/schemas/*.json)
|
|
43
|
-
protocol_sources = $(wildcard ../protocol/schemas/*.json)
|
|
44
|
-
gripper_sources = $(wildcard ../gripper/definitions/*.json) $(wildcard ../gripper/schemas/*.json)
|
|
45
|
-
|
|
46
|
-
json_sources = $(deck_sources) $(labware_sources) $(module_sources) $(pipette_sources) $(protocol_sources) $(gripper_sources)
|
|
47
|
-
|
|
48
|
-
tests ?= tests
|
|
49
|
-
|
|
50
|
-
twine_auth_args := --username $(pypi_username) --password $(pypi_password)
|
|
51
|
-
twine_repository_url ?= $(pypi_test_upload_url)
|
|
52
|
-
|
|
53
|
-
clean_cmd = $(SHX) rm -rf build $(BUILD_DIR) .coverage coverage.xml '*.egg-info' ' **/__pycache__' '**/*.pyc' 'opentrons_shared_data/**/.mypy_cache'
|
|
54
|
-
|
|
55
|
-
.PHONY: all
|
|
56
|
-
all: clean sdist wheel
|
|
57
|
-
|
|
58
|
-
.PHONY: setup
|
|
59
|
-
setup: setup-py
|
|
60
|
-
|
|
61
|
-
.PHONY: setup-py
|
|
62
|
-
setup-py:
|
|
63
|
-
$(pipenv) sync $(pipenv_opts)
|
|
64
|
-
$(pipenv) run pip freeze
|
|
65
|
-
|
|
66
|
-
.PHONY: teardown
|
|
67
|
-
teardown: teardown-py
|
|
68
|
-
|
|
69
|
-
.PHONY: teardown-py
|
|
70
|
-
teardown-py:
|
|
71
|
-
$(pipenv) --rm
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
.PHONY: clean
|
|
75
|
-
clean:
|
|
76
|
-
$(clean_cmd)
|
|
77
|
-
|
|
78
|
-
.PHONY: wheel
|
|
79
|
-
wheel: export OPENTRONS_PROJECT=$(project_rs_default)
|
|
80
|
-
wheel: setup.py $(py_sources) $(json_sources)
|
|
81
|
-
$(SHX) mkdir -p build
|
|
82
|
-
$(python) setup.py $(wheel_opts) bdist_wheel
|
|
83
|
-
$(SHX) ls $(BUILD_DIR)
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
.PHONY: sdist
|
|
87
|
-
sdist: export OPENTRONS_PROJECT=$(project_ot3_default)
|
|
88
|
-
sdist: setup.py $(py_sources) $(json_sources)
|
|
89
|
-
$(SHX) mkdir -p build
|
|
90
|
-
$(python) setup.py sdist
|
|
91
|
-
$(SHX) ls $(BUILD_DIR)
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
.PHONY: lint
|
|
95
|
-
lint: $(py_sources)
|
|
96
|
-
$(python) -m mypy opentrons_shared_data tests
|
|
97
|
-
$(python) -m black --check opentrons_shared_data tests setup.py
|
|
98
|
-
$(python) -m flake8 opentrons_shared_data tests setup.py
|
|
99
|
-
|
|
100
|
-
.PHONY: format
|
|
101
|
-
format:
|
|
102
|
-
$(python) -m black opentrons_shared_data tests setup.py
|
|
103
|
-
|
|
104
|
-
.PHONY: push-no-restart
|
|
105
|
-
push-no-restart: wheel
|
|
106
|
-
$(call push-python-package,$(host),$(ssh_key),$(ssh_opts),$(wheel_file))
|
|
107
|
-
|
|
108
|
-
.PHONY: push
|
|
109
|
-
push: push-no-restart
|
|
110
|
-
$(call restart-service,$(host),$(ssh_key),$(ssh_opts),opentrons-robot-server)
|
|
111
|
-
|
|
112
|
-
.PHONY: push-no-restart-ot3
|
|
113
|
-
push-no-restart-ot3: sdist
|
|
114
|
-
$(call push-python-sdist,$(host),$(ssh_key),$(ssh_opts),$(sdist_file),/opt/opentrons-robot-server,opentrons_shared_data)
|
|
115
|
-
|
|
116
|
-
.PHONY: push-ot3
|
|
117
|
-
push-ot3: push-no-restart-ot3
|
|
118
|
-
$(call restart-server,$(host),$(ssh_key),$(ssh_opts),opentrons-robot-server)
|
|
119
|
-
|
|
120
|
-
.PHONY: deploy
|
|
121
|
-
deploy: wheel
|
|
122
|
-
$(call python_upload_package,$(twine_auth_args),$(twine_repository_url),$(wheel_file))
|
|
123
|
-
|
|
124
|
-
.PHONY: test
|
|
125
|
-
test:
|
|
126
|
-
$(python) -m pytest --cov=opentrons_shared_data --cov-report xml:coverage.xml $(tests) $(test_opts)
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
.PHONY: generate-schema
|
|
130
|
-
generate-schema:
|
|
131
|
-
$(python) -c "from opentrons_shared_data.$(target) import generate_schema; print(generate_schema())" > ../${target}/schemas/${version}.json
|
|
132
|
-
|
|
133
|
-
%-schema:
|
|
134
|
-
$(MAKE) generate-schema target=$*
|
package/python/Pipfile
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
[[source]]
|
|
2
|
-
url = "https://pypi.python.org/simple"
|
|
3
|
-
verify_ssl = true
|
|
4
|
-
name = "pypi"
|
|
5
|
-
|
|
6
|
-
[dev-packages]
|
|
7
|
-
mypy = "==0.800"
|
|
8
|
-
flake8 = "~=3.9.0"
|
|
9
|
-
flake8-annotations = "~=2.6.2"
|
|
10
|
-
flake8-docstrings = "~=1.6.0"
|
|
11
|
-
flake8-noqa = "~=1.2.1"
|
|
12
|
-
twine = "==2.0.0"
|
|
13
|
-
wheel = "==0.30.0"
|
|
14
|
-
pytest = "==7.0.1"
|
|
15
|
-
pytest-cov = "==2.10.1"
|
|
16
|
-
pytest-xdist = "~=2.2.1 "
|
|
17
|
-
typeguard = "~=2.13"
|
|
18
|
-
# specify typing-extensions explicitly to force lockfile inclusion on Python >= 3.8
|
|
19
|
-
typing-extensions = ">=4.0.0,<5"
|
|
20
|
-
# pytest dependencies on windows, spec'd here to force lockfile inclusion
|
|
21
|
-
# https://github.com/pypa/pipenv/issues/4408#issuecomment-668324177
|
|
22
|
-
atomicwrites = { version = "==1.4.0", sys_platform = "== 'win32'" }
|
|
23
|
-
colorama = { version = "==0.4.4", sys_platform = "== 'win32'" }
|
|
24
|
-
black = "==22.3.0"
|
|
25
|
-
pytest-clarity = "~=1.0.0"
|
|
26
|
-
|
|
27
|
-
[packages]
|
|
28
|
-
opentrons-shared-data = { editable = true, path = "." }
|