You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We welcome community contributions in the form of pull requests. When contributing code, please ensure:
6
+
7
+
- Documentation is provided. New functions and classes should have numpy/scipy style [docstrings](https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt).
8
+
- Unit tests are written for new features that are not covered by [existing tests](https://github.com/MIT-LCP/wfdb-python/tree/main/tests).
9
+
- The code style is consistent with the project's formating standards.
10
+
11
+
Run the formatter with:
12
+
13
+
```sh
14
+
black .
15
+
```
16
+
17
+
## Package and Dependency Management
18
+
19
+
This project uses [poetry](https://python-poetry.org/docs/) for package management and distribution.
20
+
21
+
Development dependencies are specified as optional dependencies, and then added to the "dev" extra group in the [pyproject.toml](./pyproject.toml) file.
22
+
23
+
```sh
24
+
# Do NOT use: poetry add <somepackage> --dev
25
+
poetry add --optional <somepackage>
26
+
```
27
+
28
+
The `[tool.poetry.dev-dependencies]` attribute is NOT used because of a [limitation](https://github.com/python-poetry/poetry/issues/3514) that prevents these dependencies from being pip installable. Therefore, dev dependencies are not installed when purely running `poetry install`, and the `--no-dev` flag has no meaning in this project.
29
+
30
+
## Creating Distributions
31
+
32
+
Make sure the versions in [version.py](./wfdb/version.py) and [pyproject.toml](./pyproject.toml) are updated and kept in sync.
33
+
34
+
It may be useful to publish to testpypi and preview the changes before publishing to PyPi. However, the project dependencies likely will not be available when trying to install from there.
The project's documentation is generated by [Sphinx](https://docs.readthedocs.io/en/stable/intro/getting-started-with-sphinx.html) using the content in the [docs](./docs) directory. The generated content is then hosted on readthedocs (RTD) at: <http://wfdb.readthedocs.io>
59
+
60
+
To manage the content on RTD, request yourself to be added to the [wfdb](https://readthedocs.org/projects/wfdb/) project. The project has already been configured to import content from the GitHub repository. Documentation for new releases should be automatically built and uploaded. See the [import guide](https://docs.readthedocs.io/en/stable/intro/import-guide.html) for more details.
61
+
62
+
There is some redundancy in specifying the Sphinx requirements between pyproject.toml and [docs/requirements.txt](./docs/requirements.txt), the latter of which is used by RTD. Make sure that the content is consistent across the two files.
63
+
64
+
To generate the HTML content locally, install the required dependencies and run from the `docs` directory:
Copy file name to clipboardExpand all lines: README.md
+3-77Lines changed: 3 additions & 77 deletions
Original file line number
Diff line number
Diff line change
@@ -45,86 +45,12 @@ poetry install -E dev
45
45
poetry install -E dev --no-root
46
46
```
47
47
48
-
See the [note](#package-management)below about dev dependencies.
48
+
**See the [note](https://github.com/MIT-LCP/wfdb-python/blob/main/DEVELOPING.md#package-and-dependency-management) about dev dependencies.**
49
49
50
50
## Developing
51
51
52
-
We welcome community contributions in the form of pull requests. When contributing code, please ensure:
53
-
54
-
- Documentation is provided. New functions and classes should have numpy/scipy style [docstrings](https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt).
55
-
- Unit tests are written for new features that are not covered by [existing tests](https://github.com/MIT-LCP/wfdb-python/tree/main/tests).
56
-
- The code style is consistent with the project's formating standards.
57
-
58
-
Run the formatter with:
59
-
60
-
```sh
61
-
black .
62
-
```
63
-
64
-
### Package and Dependency Management
65
-
66
-
This project uses [poetry](https://python-poetry.org/docs/) for package management and distribution.
67
-
68
-
Development dependencies are specified as optional dependencies, and then added to the "dev" extra group in the [pyproject.toml](./pyproject.toml) file.
69
-
70
-
```sh
71
-
# Do NOT use: poetry add <somepackage> --dev
72
-
poetry add --optional <somepackage>
73
-
```
74
-
75
-
The `[tool.poetry.dev-dependencies]` attribute is NOT used because of a [limitation](https://github.com/python-poetry/poetry/issues/3514) that prevents these dependencies from being pip installable. Therefore, dev dependencies are not installed when purely running `poetry install`, and the `--no-dev` flag has no meaning in this project.
76
-
77
-
### Creating Distributions
78
-
79
-
Make sure the versions in [version.py](./wfdb/version.py) and [pyproject.toml](./pyproject.toml) are updated and kept in sync.
80
-
81
-
It may be useful to publish to testpypi and preview the changes before publishing to PyPi. However, the project dependencies likely will not be available when trying to install from there.
The project's documentation is generated by [Sphinx](https://docs.readthedocs.io/en/stable/intro/getting-started-with-sphinx.html) using the content in the [docs](./docs) directory. The generated content is then hosted on readthedocs (RTD) at: <http://wfdb.readthedocs.io>
106
-
107
-
To manage the content on RTD, request yourself to be added to the [wfdb](https://readthedocs.org/projects/wfdb/) project. The project has already been configured to import content from the GitHub repository. Documentation for new releases should be automatically built and uploaded. See the [import guide](https://docs.readthedocs.io/en/stable/intro/import-guide.html) for more details.
108
-
109
-
There is some redundancy in specifying the Sphinx requirements between pyproject.toml and [docs/requirements.txt](./docs/requirements.txt), the latter of which is used by RTD. Make sure that the content is consistent across the two files.
110
-
111
-
To generate the HTML content locally, install the required dependencies and run from the `docs` directory:
112
-
113
-
```sh
114
-
make html
115
-
```
116
-
117
-
### Tests
118
-
119
-
Run tests using pytest:
120
-
121
-
```sh
122
-
pytest
123
-
# Distribute tests across multiple cores.
124
-
# https://github.com/pytest-dev/pytest-xdist
125
-
pytest -n auto
126
-
```
52
+
Please see the [DEVELOPING.md](https://github.com/MIT-LCP/wfdb-python/blob/main/DEVELOPING.md) document for contribution/development instructions.
127
53
128
54
## Citing
129
55
130
-
When using this resource, please cite the software [publication](https://physionet.org/content/wfdb-python/)oh PhysioNet.
56
+
When using this resource, please cite the software [publication](https://physionet.org/content/wfdb-python/)on PhysioNet.
0 commit comments