diff --git a/.github/workflows/pythonpublish.yml b/.github/workflows/pythonpublish.yml index b2b39f5..20a5e0d 100644 --- a/.github/workflows/pythonpublish.yml +++ b/.github/workflows/pythonpublish.yml @@ -21,11 +21,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine pyyaml + pip install setuptools twine pyyaml build - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - python setup.py bdist_wheel + python -m build twine upload dist/* diff --git a/pyproject.toml b/pyproject.toml index 8b64142..815635d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -77,7 +77,7 @@ profile = "black" skip_gitignore = true [tool.pytest.ini_options] -addopts = "-ra --strict-config --strict-markers --doctest-modules --showlocals -s -v --durations=0" +addopts = "-ra --strict-config --strict-markers --doctest-modules --showlocals -v" doctest_optionflags = "NORMALIZE_WHITESPACE ELLIPSIS" junit_family = "xunit2" minversion = "6.0" diff --git a/reproschema/redcap2reproschema.py b/reproschema/redcap2reproschema.py index e61eef7..d46db94 100644 --- a/reproschema/redcap2reproschema.py +++ b/reproschema/redcap2reproschema.py @@ -287,7 +287,6 @@ def process_row( rowData["ui"]["readonlyValue"] = True for key, value in field.items(): - # breakpoint() if SCHEMA_MAP.get(key) in ["question", "description"] and value: rowData.update({SCHEMA_MAP[key]: parse_html(value)}) elif SCHEMA_MAP.get(key) == "preamble" and value and add_preable: diff --git a/reproschema/tests/test_rs2redcap_redcap2rs.py b/reproschema/tests/test_rs2redcap_redcap2rs.py index 7379acb..46a09d0 100644 --- a/reproschema/tests/test_rs2redcap_redcap2rs.py +++ b/reproschema/tests/test_rs2redcap_redcap2rs.py @@ -362,7 +362,6 @@ def compare_protocols(prot_tree_orig, prot_tree_final): # TODO: check choices # for key in ["minValue", "maxValue"]: # if getattr(respopt_final, key) != getattr(respopt_orig, key): - # breakpoint() # errors_list.append(print(f"Activity {act_name}: items {nm} have different {key}")) return errors_list, warnings_list @@ -405,7 +404,6 @@ def test_rs2redcap_redcap2rs(tmpdir): "output_nimh/nimh_minimal/nimh_minimal/nimh_minimal_schema" ) - breakpoint() http_kwargs = {} stop, port = start_server() http_kwargs["port"] = port