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
pip install boto smart_open sphinx sphinx-rtd-theme
26
26
# pip<24.1 because https://github.com/omry/omegaconf/pull/1195
27
27
# setuptools>=65.0.2 because https://github.com/pypa/setuptools/commit/d03da04e024ad4289342077eef6de40013630a44#diff-9ea6e1e3dde6d4a7e08c7c88eceed69ca745d0d2c779f8f85219b22266efff7fR1
# pip<24.1 because https://github.com/omry/omegaconf/pull/1195
47
47
# setuptools>=65.0.2 because https://github.com/pypa/setuptools/commit/d03da04e024ad4289342077eef6de40013630a44#diff-9ea6e1e3dde6d4a7e08c7c88eceed69ca745d0d2c779f8f85219b22266efff7fR1
@@ -70,11 +70,11 @@ jobs:
70
70
# If torch for the platform is not available in PyPI, use this command:
71
71
# pip install "<torch_wheel_url>"
72
72
# Get wheel URL from http://download.pytorch.org/whl/torch/
73
-
- name: Install dependencies from docker_requirements.txt
@@ -108,44 +108,79 @@ Make sure the tests pass on GitHub Actions.
108
108
109
109
See more in [tests/README.md](./tests/README.md)
110
110
111
+
## Installing and Building
112
+
113
+
### Installing for Development
114
+
115
+
Install PyThaiNLP in editable mode with core dependencies:
116
+
117
+
```sh
118
+
pip install -e .
119
+
```
120
+
121
+
Install with optional dependency groups:
122
+
123
+
```sh
124
+
# Install with compact set of dependencies (recommended for development)
125
+
pip install -e ".[compact]"
126
+
127
+
# Install with full dependencies
128
+
pip install -e ".[full]"
129
+
130
+
# Install with testing dependencies (pinned versions for reproducibility)
131
+
pip install -e ".[testing]"
132
+
```
133
+
134
+
See all available optional dependency groups in `pyproject.toml` under `[project.optional-dependencies]`.
135
+
136
+
### Building Distribution Packages
137
+
138
+
To build source distribution and wheel:
139
+
140
+
```sh
141
+
python -m build
142
+
```
143
+
144
+
This will create distribution packages in the `dist/` directory.
145
+
111
146
## Releasing
112
147
113
148
- We use [semantic versioning](https://semver.org/): MAJOR.MINOR.PATCH, with development build suffix: MAJOR.MINOR.PATCH-devBUILD
114
-
- We use [`bumpversion`](https://github.com/c4urself/bump2version/#installation) to manage versioning.
115
-
-`bumpversion [major|minor|patch|release|build]`
149
+
- We use [`bump-my-version`](https://github.com/callowayproject/bump-my-version) to manage versioning. The configuration is in `pyproject.toml` under `[tool.bumpversion]`.
Copy file name to clipboardExpand all lines: README.md
+29-3Lines changed: 29 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ pip install pythainlp
31
31
32
32
## Getting Started
33
33
34
-
- PyThaiNLP requires Python 3.7+.
34
+
- PyThaiNLP requires Python 3.9+.
35
35
- Python 2.7 users can use PyThaiNLP 1.6. See [2.0 change log](https://github.com/PyThaiNLP/pythainlp/issues/118) | [Upgrading from 1.7](https://pythainlp.org/docs/2.0/notes/pythainlp-1_7-2_0.html) | [Upgrading ThaiNER from 1.7](https://github.com/PyThaiNLP/pythainlp/wiki/Upgrade-ThaiNER-from-PyThaiNLP-1.7-to-PyThaiNLP-2.0)
36
36
-[PyThaiNLP Get Started notebook](https://pythainlp.org/tutorials/notebooks/pythainlp_get_started.html) | [API document](https://pythainlp.org/docs) | [Tutorials](https://pythainlp.org/tutorials)
0 commit comments