Skip to content

Commit ef5a6ac

Browse files
authored
Merge pull request #20 from datatractor/ml-evs/fixes
Fix mismatched package/module name and update README
2 parents 2fc3bbe + fea284a commit ef5a6ac

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

.github/workflows/build-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
2727
- name: Build docs
2828
run: |
29-
sphinx-apidoc -o docs/source/apidoc beam
29+
sphinx-apidoc -o docs/source/apidoc datatractor_beam
3030
sphinx-build -b html docs/source/ public/main
3131
3232
- name: Upload docs artifact

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pip install .
4848
### Usage
4949

5050
#### As a Python module
51-
To extract data from a file, you can use the `extract` function from the `beam` module inside your own Python code:
51+
To extract data from a file, you can use the `extract` function from the `datatractor_beam` module inside your own Python code:
5252

5353
```python
5454
from beam import extract

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import os
1414
import sys
1515

16-
sys.path.insert(0, os.path.abspath(os.path.join("..", "..", "beam")))
16+
sys.path.insert(0, os.path.abspath(os.path.join("..", "..", "datatractor_beam")))
1717

1818
version = "main"
1919

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Datatractor Beam: Reference implementation of the Datatractor API
77
:hidden:
88
:glob:
99

10-
apidoc/beam
10+
apidoc/datatractor_beam
1111

1212

1313
Documentation of |beamrepo|_, the reference implementation of the Datatractor API,

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ source = "vcs"
99
version-file = "_version.py"
1010

1111
[tool.hatch.build.targets.wheel]
12-
packages = ["beam"]
12+
packages = ["datatractor_beam"]
1313

1414
[project]
1515
name = "datatractor-beam"
@@ -57,7 +57,7 @@ dev = [
5757
repository = "https://github.com/datatractor/beam"
5858

5959
[project.scripts]
60-
datatractor = "beam:run_datatractor"
60+
datatractor = "datatractor_beam:run_datatractor"
6161

6262
[tool.ruff]
6363
extend-exclude = [

scripts/biologic-mpr-example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pathlib
22
import urllib.request
33

4-
from beam import extract
4+
from datatractor_beam import extract
55

66
# Download an example MPR file from the registry
77
download_path = pathlib.Path(__file__).parent / "data" / "example.mpr"

tests/test_mpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import pytest
66

7-
from beam import ExtractorPlan, SupportedExecutionMethod, extract
7+
from datatractor_beam import ExtractorPlan, SupportedExecutionMethod, extract
88

99

1010
@pytest.fixture

0 commit comments

Comments
 (0)