pysegmenters-rules_segmenter 1.6.52__tar.gz → 1.6.255__tar.gz

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.
Files changed (20) hide show
  1. {pysegmenters_rules_segmenter-1.6.52 → pysegmenters_rules_segmenter-1.6.255}/.gitignore +2 -2
  2. pysegmenters_rules_segmenter-1.6.255/.gitmodules +4 -0
  3. pysegmenters_rules_segmenter-1.6.255/.python-version +1 -0
  4. pysegmenters_rules_segmenter-1.6.255/PKG-INFO +167 -0
  5. pysegmenters_rules_segmenter-1.6.255/README.md +105 -0
  6. pysegmenters_rules_segmenter-1.6.255/Taskfile.yml +33 -0
  7. {pysegmenters_rules_segmenter-1.6.52 → pysegmenters_rules_segmenter-1.6.255}/pyproject.toml +1 -0
  8. {pysegmenters_rules_segmenter-1.6.52 → pysegmenters_rules_segmenter-1.6.255}/src/pysegmenters_rules_segmenter/__init__.py +1 -1
  9. pysegmenters_rules_segmenter-1.6.52/PKG-INFO +0 -136
  10. pysegmenters_rules_segmenter-1.6.52/README.md +0 -74
  11. {pysegmenters_rules_segmenter-1.6.52 → pysegmenters_rules_segmenter-1.6.255}/.bumpversion.cfg +0 -0
  12. {pysegmenters_rules_segmenter-1.6.52 → pysegmenters_rules_segmenter-1.6.255}/.github/workflows/main.yml +0 -0
  13. {pysegmenters_rules_segmenter-1.6.52 → pysegmenters_rules_segmenter-1.6.255}/.pre-commit-config.yaml +0 -0
  14. {pysegmenters_rules_segmenter-1.6.52 → pysegmenters_rules_segmenter-1.6.255}/.readthedocs.yml +0 -0
  15. {pysegmenters_rules_segmenter-1.6.52 → pysegmenters_rules_segmenter-1.6.255}/AUTHORS.md +0 -0
  16. {pysegmenters_rules_segmenter-1.6.52 → pysegmenters_rules_segmenter-1.6.255}/CHANGELOG.md +0 -0
  17. {pysegmenters_rules_segmenter-1.6.52 → pysegmenters_rules_segmenter-1.6.255}/LICENSE +0 -0
  18. {pysegmenters_rules_segmenter-1.6.52 → pysegmenters_rules_segmenter-1.6.255}/RELEASE.md +0 -0
  19. {pysegmenters_rules_segmenter-1.6.52 → pysegmenters_rules_segmenter-1.6.255}/src/pysegmenters_rules_segmenter/rules_segmenter.py +0 -0
  20. {pysegmenters_rules_segmenter-1.6.52 → pysegmenters_rules_segmenter-1.6.255}/src/pysegmenters_rules_segmenter/rules_sentencizer.py +0 -0
@@ -82,8 +82,7 @@ target/
82
82
  profile_default/
83
83
  ipython_config.py
84
84
 
85
- # pyenv
86
- .python-version
85
+ # pyenv : .python-version est SUIVI ici, il porte la version d'interpréteur qu'uv installe
87
86
 
88
87
  # pipenv
89
88
  # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
@@ -136,3 +135,4 @@ docs/_build/
136
135
  **/sbom*.json
137
136
  **/trivy*.html
138
137
  **/audit*.json
138
+ **/audit*.md
@@ -0,0 +1,4 @@
1
+ [submodule "submodules/python-archetype"]
2
+ path = submodules/python-archetype
3
+ url = git@bitbucket.org:kairntech/python-archetype.git
4
+ branch = master
@@ -0,0 +1,167 @@
1
+ Metadata-Version: 2.5
2
+ Name: pysegmenters-rules_segmenter
3
+ Version: 1.6.255
4
+ Summary: Rule-based segmenter
5
+ Project-URL: Homepage, https://github.com/oterrier/pysegmenters_rules_segmenter/
6
+ Author-email: Olivier Terrier <olivier.terrier@kairntech.com>
7
+ License: The MIT License (MIT)
8
+
9
+ Copyright (c) 2021 Olivier Terrier
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in
19
+ all copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27
+ THE SOFTWARE.
28
+ License-File: AUTHORS.md
29
+ License-File: LICENSE
30
+ Classifier: Development Status :: 4 - Beta
31
+ Classifier: Intended Audience :: Developers
32
+ Classifier: Intended Audience :: Information Technology
33
+ Classifier: Intended Audience :: System Administrators
34
+ Classifier: License :: OSI Approved :: MIT License
35
+ Classifier: Operating System :: OS Independent
36
+ Classifier: Programming Language :: Python :: 3.12
37
+ Classifier: Topic :: Software Development
38
+ Classifier: Topic :: Software Development :: Libraries
39
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
40
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
41
+ Requires-Python: >=3.12
42
+ Requires-Dist: pymultirole-plugins<1.7.0,>=1.6.0
43
+ Requires-Dist: spacy[lookups]>=3.7.0
44
+ Provides-Extra: dev
45
+ Requires-Dist: bump2version; extra == 'dev'
46
+ Requires-Dist: pre-commit; extra == 'dev'
47
+ Provides-Extra: docs
48
+ Requires-Dist: lxml-html-clean; extra == 'docs'
49
+ Requires-Dist: m2r2; extra == 'docs'
50
+ Requires-Dist: sphinx; extra == 'docs'
51
+ Requires-Dist: sphinx-rtd-theme; extra == 'docs'
52
+ Requires-Dist: sphinxcontrib-apidoc; extra == 'docs'
53
+ Provides-Extra: sbom
54
+ Requires-Dist: cyclonedx-bom; extra == 'sbom'
55
+ Requires-Dist: pip-audit; extra == 'sbom'
56
+ Provides-Extra: test
57
+ Requires-Dist: pip; extra == 'test'
58
+ Requires-Dist: pytest; extra == 'test'
59
+ Requires-Dist: pytest-cov; extra == 'test'
60
+ Requires-Dist: ruff; extra == 'test'
61
+ Description-Content-Type: text/markdown
62
+
63
+ # pysegmenters_rules_segmenter
64
+
65
+ [![license](https://img.shields.io/github/license/oterrier/pysegmenters_rules_segmenter)](https://github.com/oterrier/pysegmenters_rules_segmenter/blob/master/LICENSE)
66
+ [![tests](https://github.com/oterrier/pysegmenters_rules_segmenter/workflows/tests/badge.svg)](https://github.com/oterrier/pysegmenters_rules_segmenter/actions?query=workflow%3Atests)
67
+ [![codecov](https://img.shields.io/codecov/c/github/oterrier/pysegmenters_rules_segmenter)](https://codecov.io/gh/oterrier/pysegmenters_rules_segmenter)
68
+ [![docs](https://img.shields.io/readthedocs/pysegmenters_rules_segmenter)](https://pysegmenters_rules_segmenter.readthedocs.io)
69
+ [![version](https://img.shields.io/pypi/v/pysegmenters_rules_segmenter)](https://pypi.org/project/pysegmenters_rules_segmenter/)
70
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pysegmenters_rules_segmenter)](https://pypi.org/project/pysegmenters_rules_segmenter/)
71
+
72
+ Rule based segmenter based on Spacy
73
+
74
+ ## Installation
75
+
76
+ You can simply `pip install pysegmenters_rules_segmenter`.
77
+
78
+ ## Development
79
+
80
+ The build is driven by [Task](https://taskfile.dev) and [uv](https://docs.astral.sh/uv/),
81
+ with the shared stages coming from the `python-archetype` submodule.
82
+
83
+ ### Getting started
84
+
85
+ The stages live in a Git submodule, so **clone with `--recurse-submodules`**:
86
+
87
+ ```bash
88
+ git clone --recurse-submodules git@bitbucket.org:kairntech/pysegmenters_rules_segmenter.git
89
+ cd pysegmenters_rules_segmenter
90
+ sh -c "$(curl -sSL https://taskfile.dev/install.sh)" -- -d -b ~/.local/bin
91
+ task
92
+ ```
93
+
94
+ Already cloned without it? The submodule directory is empty, and `task` fails on:
95
+
96
+ ```
97
+ task: No Taskfile found at ".../submodules/python-archetype/resources/Taskfile.yml"
98
+ ```
99
+
100
+ which means exactly that, and nothing worse:
101
+
102
+ ```bash
103
+ git submodule update --init
104
+ ```
105
+
106
+ **Task is the only manual prerequisite.** An archetype cannot bootstrap itself: uv and the
107
+ Python interpreter install themselves on demand (every task that runs uv depends on an
108
+ internal `install-python` task), but the thing that runs them does not. Make sure
109
+ `~/.local/bin` is on your `PATH` — that is where `task` and `uv` both land.
110
+
111
+ ### Running the pipeline
112
+
113
+ ```bash
114
+ task stages # print the pipeline stages, in order
115
+ task # run the pipeline up to (but excluding) py:publish
116
+ task -- --skip-tests # same, without the test stage
117
+ task up-to -- py:lint # run the pipeline up to and including one stage
118
+ task jenkins # run every stage, exactly what Jenkins runs
119
+ ```
120
+
121
+ `task` with no argument is safe by construction: it runs every stage but the last, and that
122
+ bound is computed from the `STAGES` list rather than written down. The last stage is the
123
+ only one with an effect outside your machine.
124
+
125
+ `STAGES`, declared once in `Taskfile.yml`, is the single definition of the pipeline order —
126
+ so what you run locally is what Jenkins runs.
127
+
128
+ ### Individual stages
129
+
130
+ | Task | Description |
131
+ |---------------------------------|-------------------------------------------------------|
132
+ | `task py:sync` | Install the project and its dependencies (uv sync) |
133
+ | `task py:lint` | `ruff check` and `ruff format --check` |
134
+ | `task py:format` | Reformat the code with ruff |
135
+ | `task py:test` | Run the test suite |
136
+ | `task py:test-marker -- <m>` | Run the tests carrying one pytest marker |
137
+ | `task py:sbom` | Generate a CycloneDX SBOM of the resolved environment |
138
+ | `task py:check-vulnerabilities` | Check for known CVEs |
139
+ | `task py:check-updates` | Check for dependency updates |
140
+ | `task py:build` | Build the wheel and sdist (uv build) |
141
+ | `task py:publish` | Publish the distributions (uv publish) |
142
+ | `task py:version-file` | Print the path of the file carrying `__version__` |
143
+ | `task py:set-version VERSION=x` | Write that version into it |
144
+
145
+ `uv.lock` is not versioned here, so `py:sync` always resolves from scratch (`--upgrade`):
146
+ a stale lock lying around on a machine would otherwise make you test and audit versions the
147
+ CI never sees.
148
+
149
+ ### SBOM & vulnerability check
150
+
151
+ `task py:sbom` and `task py:check-vulnerabilities` wrap the underlying tools. To run them
152
+ by hand:
153
+
154
+ ```bash
155
+ uv sync --extra test --extra sbom
156
+ uv run cyclonedx-py environment -o sbom.cdx.json --output-format json
157
+ uv run pip-audit --skip-editable --format json --output audit-report.json
158
+ ```
159
+
160
+ Ask for **all** the extras, not just `sbom`: `uv sync` synchronises rather than adds, so
161
+ whatever the requested extras do not pull in gets removed. `--extra sbom` on its own
162
+ uninstalls `ruff` and `pytest`, leaving an environment that can no longer lint or test.
163
+
164
+ `--skip-editable` skips the project itself, which no advisory database can know about. The
165
+ tasks do the same, and pip-audit still exits non-zero when it finds a real vulnerability —
166
+ which is the contract the CI relies on. Avoid `--strict`: it turns "dependency not found on
167
+ PyPI" into a fatal error, so it breaks as soon as the local version is not a published one.
@@ -0,0 +1,105 @@
1
+ # pysegmenters_rules_segmenter
2
+
3
+ [![license](https://img.shields.io/github/license/oterrier/pysegmenters_rules_segmenter)](https://github.com/oterrier/pysegmenters_rules_segmenter/blob/master/LICENSE)
4
+ [![tests](https://github.com/oterrier/pysegmenters_rules_segmenter/workflows/tests/badge.svg)](https://github.com/oterrier/pysegmenters_rules_segmenter/actions?query=workflow%3Atests)
5
+ [![codecov](https://img.shields.io/codecov/c/github/oterrier/pysegmenters_rules_segmenter)](https://codecov.io/gh/oterrier/pysegmenters_rules_segmenter)
6
+ [![docs](https://img.shields.io/readthedocs/pysegmenters_rules_segmenter)](https://pysegmenters_rules_segmenter.readthedocs.io)
7
+ [![version](https://img.shields.io/pypi/v/pysegmenters_rules_segmenter)](https://pypi.org/project/pysegmenters_rules_segmenter/)
8
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pysegmenters_rules_segmenter)](https://pypi.org/project/pysegmenters_rules_segmenter/)
9
+
10
+ Rule based segmenter based on Spacy
11
+
12
+ ## Installation
13
+
14
+ You can simply `pip install pysegmenters_rules_segmenter`.
15
+
16
+ ## Development
17
+
18
+ The build is driven by [Task](https://taskfile.dev) and [uv](https://docs.astral.sh/uv/),
19
+ with the shared stages coming from the `python-archetype` submodule.
20
+
21
+ ### Getting started
22
+
23
+ The stages live in a Git submodule, so **clone with `--recurse-submodules`**:
24
+
25
+ ```bash
26
+ git clone --recurse-submodules git@bitbucket.org:kairntech/pysegmenters_rules_segmenter.git
27
+ cd pysegmenters_rules_segmenter
28
+ sh -c "$(curl -sSL https://taskfile.dev/install.sh)" -- -d -b ~/.local/bin
29
+ task
30
+ ```
31
+
32
+ Already cloned without it? The submodule directory is empty, and `task` fails on:
33
+
34
+ ```
35
+ task: No Taskfile found at ".../submodules/python-archetype/resources/Taskfile.yml"
36
+ ```
37
+
38
+ which means exactly that, and nothing worse:
39
+
40
+ ```bash
41
+ git submodule update --init
42
+ ```
43
+
44
+ **Task is the only manual prerequisite.** An archetype cannot bootstrap itself: uv and the
45
+ Python interpreter install themselves on demand (every task that runs uv depends on an
46
+ internal `install-python` task), but the thing that runs them does not. Make sure
47
+ `~/.local/bin` is on your `PATH` — that is where `task` and `uv` both land.
48
+
49
+ ### Running the pipeline
50
+
51
+ ```bash
52
+ task stages # print the pipeline stages, in order
53
+ task # run the pipeline up to (but excluding) py:publish
54
+ task -- --skip-tests # same, without the test stage
55
+ task up-to -- py:lint # run the pipeline up to and including one stage
56
+ task jenkins # run every stage, exactly what Jenkins runs
57
+ ```
58
+
59
+ `task` with no argument is safe by construction: it runs every stage but the last, and that
60
+ bound is computed from the `STAGES` list rather than written down. The last stage is the
61
+ only one with an effect outside your machine.
62
+
63
+ `STAGES`, declared once in `Taskfile.yml`, is the single definition of the pipeline order —
64
+ so what you run locally is what Jenkins runs.
65
+
66
+ ### Individual stages
67
+
68
+ | Task | Description |
69
+ |---------------------------------|-------------------------------------------------------|
70
+ | `task py:sync` | Install the project and its dependencies (uv sync) |
71
+ | `task py:lint` | `ruff check` and `ruff format --check` |
72
+ | `task py:format` | Reformat the code with ruff |
73
+ | `task py:test` | Run the test suite |
74
+ | `task py:test-marker -- <m>` | Run the tests carrying one pytest marker |
75
+ | `task py:sbom` | Generate a CycloneDX SBOM of the resolved environment |
76
+ | `task py:check-vulnerabilities` | Check for known CVEs |
77
+ | `task py:check-updates` | Check for dependency updates |
78
+ | `task py:build` | Build the wheel and sdist (uv build) |
79
+ | `task py:publish` | Publish the distributions (uv publish) |
80
+ | `task py:version-file` | Print the path of the file carrying `__version__` |
81
+ | `task py:set-version VERSION=x` | Write that version into it |
82
+
83
+ `uv.lock` is not versioned here, so `py:sync` always resolves from scratch (`--upgrade`):
84
+ a stale lock lying around on a machine would otherwise make you test and audit versions the
85
+ CI never sees.
86
+
87
+ ### SBOM & vulnerability check
88
+
89
+ `task py:sbom` and `task py:check-vulnerabilities` wrap the underlying tools. To run them
90
+ by hand:
91
+
92
+ ```bash
93
+ uv sync --extra test --extra sbom
94
+ uv run cyclonedx-py environment -o sbom.cdx.json --output-format json
95
+ uv run pip-audit --skip-editable --format json --output audit-report.json
96
+ ```
97
+
98
+ Ask for **all** the extras, not just `sbom`: `uv sync` synchronises rather than adds, so
99
+ whatever the requested extras do not pull in gets removed. `--extra sbom` on its own
100
+ uninstalls `ruff` and `pytest`, leaving an environment that can no longer lint or test.
101
+
102
+ `--skip-editable` skips the project itself, which no advisory database can know about. The
103
+ tasks do the same, and pip-audit still exits non-zero when it finds a real vulnerability —
104
+ which is the contract the CI relies on. Avoid `--strict`: it turns "dependency not found on
105
+ PyPI" into a fatal error, so it breaks as soon as the local version is not a published one.
@@ -0,0 +1,33 @@
1
+ version: '3'
2
+
3
+ includes:
4
+ # Les tasks Python, sous le namespace 'py:'.
5
+ py:
6
+ taskfile: submodules/python-archetype/resources/Taskfile.yml
7
+ vars:
8
+ # Le module qui porte __version__. Déclaré ICI et non dans le Jenkinsfile, pour
9
+ # que 'task py:set-version' et 'task py:version-file' servent aussi au
10
+ # développeur : le bump de version n'était jusqu'ici reproductible que par la CI.
11
+ #
12
+ # Chemin depuis la racine, et pas nom de module : l'archétype en fait
13
+ # '{{.MODULE}}/__init__.py'. Ce dépôt est en layout src/, comme les autres
14
+ # dépôts pymultirole.
15
+ MODULE: src/pysegmenters_rules_segmenter
16
+ # uv.lock n'est pas versionné ici (il est dans .gitignore) : sync doit résoudre à
17
+ # neuf, sinon un lock périmé traînant sur un poste fait tester et auditer autre
18
+ # chose que ce que produit la CI.
19
+ LOCK_VERSIONED: "false"
20
+ # Le lanceur de pipeline, à plat, pour que 'task', 'task up-to' et
21
+ # 'task jenkins' soient au premier niveau.
22
+ _:
23
+ taskfile: submodules/python-archetype/resources/Stages.yml
24
+ flatten: true
25
+ vars:
26
+ # La seule définition de l'ordre du pipeline. pythonPipeline joue ces stages, plus
27
+ # les siens qui n'ont de sens que dans Jenkins (init, version, py:publish), et son
28
+ # checkStageDrift() vérifie que cette liste en est un sous-ensemble ORDONNÉ.
29
+ STAGES: >-
30
+ py:sync py:lint py:test
31
+ py:sbom py:check-vulnerabilities
32
+ py:build py:publish
33
+ TEST_STAGE: py:test
@@ -66,6 +66,7 @@ packages = ["src/pysegmenters_rules_segmenter"]
66
66
 
67
67
  [tool.hatch.build]
68
68
  exclude = [
69
+ "/submodules",
69
70
  "/tests",
70
71
  "/docs",
71
72
  "Jenkinsfile",
@@ -1,3 +1,3 @@
1
1
  """Rule-based segmenter"""
2
2
 
3
- __version__ = "1.6.52"
3
+ __version__ = "1.6.255"
@@ -1,136 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: pysegmenters-rules_segmenter
3
- Version: 1.6.52
4
- Summary: Rule-based segmenter
5
- Project-URL: Homepage, https://github.com/oterrier/pysegmenters_rules_segmenter/
6
- Author-email: Olivier Terrier <olivier.terrier@kairntech.com>
7
- License: The MIT License (MIT)
8
-
9
- Copyright (c) 2021 Olivier Terrier
10
-
11
- Permission is hereby granted, free of charge, to any person obtaining a copy
12
- of this software and associated documentation files (the "Software"), to deal
13
- in the Software without restriction, including without limitation the rights
14
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- copies of the Software, and to permit persons to whom the Software is
16
- furnished to do so, subject to the following conditions:
17
-
18
- The above copyright notice and this permission notice shall be included in
19
- all copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27
- THE SOFTWARE.
28
- License-File: AUTHORS.md
29
- License-File: LICENSE
30
- Classifier: Development Status :: 4 - Beta
31
- Classifier: Intended Audience :: Developers
32
- Classifier: Intended Audience :: Information Technology
33
- Classifier: Intended Audience :: System Administrators
34
- Classifier: License :: OSI Approved :: MIT License
35
- Classifier: Operating System :: OS Independent
36
- Classifier: Programming Language :: Python :: 3.12
37
- Classifier: Topic :: Software Development
38
- Classifier: Topic :: Software Development :: Libraries
39
- Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
40
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
41
- Requires-Python: >=3.12
42
- Requires-Dist: pymultirole-plugins<1.7.0,>=1.6.0
43
- Requires-Dist: spacy[lookups]>=3.7.0
44
- Provides-Extra: dev
45
- Requires-Dist: bump2version; extra == 'dev'
46
- Requires-Dist: pre-commit; extra == 'dev'
47
- Provides-Extra: docs
48
- Requires-Dist: lxml-html-clean; extra == 'docs'
49
- Requires-Dist: m2r2; extra == 'docs'
50
- Requires-Dist: sphinx; extra == 'docs'
51
- Requires-Dist: sphinx-rtd-theme; extra == 'docs'
52
- Requires-Dist: sphinxcontrib-apidoc; extra == 'docs'
53
- Provides-Extra: sbom
54
- Requires-Dist: cyclonedx-bom; extra == 'sbom'
55
- Requires-Dist: pip-audit; extra == 'sbom'
56
- Provides-Extra: test
57
- Requires-Dist: pip; extra == 'test'
58
- Requires-Dist: pytest; extra == 'test'
59
- Requires-Dist: pytest-cov; extra == 'test'
60
- Requires-Dist: ruff; extra == 'test'
61
- Description-Content-Type: text/markdown
62
-
63
- # pysegmenters_rules_segmenter
64
-
65
- [![license](https://img.shields.io/github/license/oterrier/pysegmenters_rules_segmenter)](https://github.com/oterrier/pysegmenters_rules_segmenter/blob/master/LICENSE)
66
- [![tests](https://github.com/oterrier/pysegmenters_rules_segmenter/workflows/tests/badge.svg)](https://github.com/oterrier/pysegmenters_rules_segmenter/actions?query=workflow%3Atests)
67
- [![codecov](https://img.shields.io/codecov/c/github/oterrier/pysegmenters_rules_segmenter)](https://codecov.io/gh/oterrier/pysegmenters_rules_segmenter)
68
- [![docs](https://img.shields.io/readthedocs/pysegmenters_rules_segmenter)](https://pysegmenters_rules_segmenter.readthedocs.io)
69
- [![version](https://img.shields.io/pypi/v/pysegmenters_rules_segmenter)](https://pypi.org/project/pysegmenters_rules_segmenter/)
70
- [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pysegmenters_rules_segmenter)](https://pypi.org/project/pysegmenters_rules_segmenter/)
71
-
72
- Rule based segmenter based on Spacy
73
-
74
- ## Installation
75
-
76
- You can simply `pip install pysegmenters_rules_segmenter`.
77
-
78
- ## Developing
79
-
80
- ### Pre-requesites
81
-
82
- You will need to install `flit` (for building the package) and `tox` (for orchestrating testing and documentation building):
83
-
84
- ```
85
- python3 -m pip install flit tox
86
- ```
87
-
88
- Clone the repository:
89
-
90
- ```
91
- git clone https://github.com/oterrier/pysegmenters_rules_segmenter
92
- ```
93
-
94
- ### Running the test suite
95
-
96
- You can run the full test suite against all supported versions of Python (3.8) with:
97
-
98
- ```
99
- tox
100
- ```
101
-
102
- ### Building the documentation
103
-
104
- You can build the HTML documentation with:
105
-
106
- ```
107
- tox -e docs
108
- ```
109
-
110
- The built documentation is available at `docs/_build/index.html.
111
-
112
- ## SBOM & vulnerability check
113
-
114
- Install the SBOM dependencies:
115
-
116
- ```
117
- uv sync --extra sbom
118
- ```
119
-
120
- Generate a CycloneDX SBOM from the current environment:
121
-
122
- ```
123
- uv run cyclonedx-py environment -o sbom.cdx.json --output-format json
124
- ```
125
-
126
- Audit dependencies for known vulnerabilities:
127
-
128
- ```
129
- uv run pip-audit --format json --output audit-report.json
130
- ```
131
-
132
- To fail on any known vulnerability (useful in CI):
133
-
134
- ```
135
- uv run pip-audit --strict
136
- ```
@@ -1,74 +0,0 @@
1
- # pysegmenters_rules_segmenter
2
-
3
- [![license](https://img.shields.io/github/license/oterrier/pysegmenters_rules_segmenter)](https://github.com/oterrier/pysegmenters_rules_segmenter/blob/master/LICENSE)
4
- [![tests](https://github.com/oterrier/pysegmenters_rules_segmenter/workflows/tests/badge.svg)](https://github.com/oterrier/pysegmenters_rules_segmenter/actions?query=workflow%3Atests)
5
- [![codecov](https://img.shields.io/codecov/c/github/oterrier/pysegmenters_rules_segmenter)](https://codecov.io/gh/oterrier/pysegmenters_rules_segmenter)
6
- [![docs](https://img.shields.io/readthedocs/pysegmenters_rules_segmenter)](https://pysegmenters_rules_segmenter.readthedocs.io)
7
- [![version](https://img.shields.io/pypi/v/pysegmenters_rules_segmenter)](https://pypi.org/project/pysegmenters_rules_segmenter/)
8
- [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pysegmenters_rules_segmenter)](https://pypi.org/project/pysegmenters_rules_segmenter/)
9
-
10
- Rule based segmenter based on Spacy
11
-
12
- ## Installation
13
-
14
- You can simply `pip install pysegmenters_rules_segmenter`.
15
-
16
- ## Developing
17
-
18
- ### Pre-requesites
19
-
20
- You will need to install `flit` (for building the package) and `tox` (for orchestrating testing and documentation building):
21
-
22
- ```
23
- python3 -m pip install flit tox
24
- ```
25
-
26
- Clone the repository:
27
-
28
- ```
29
- git clone https://github.com/oterrier/pysegmenters_rules_segmenter
30
- ```
31
-
32
- ### Running the test suite
33
-
34
- You can run the full test suite against all supported versions of Python (3.8) with:
35
-
36
- ```
37
- tox
38
- ```
39
-
40
- ### Building the documentation
41
-
42
- You can build the HTML documentation with:
43
-
44
- ```
45
- tox -e docs
46
- ```
47
-
48
- The built documentation is available at `docs/_build/index.html.
49
-
50
- ## SBOM & vulnerability check
51
-
52
- Install the SBOM dependencies:
53
-
54
- ```
55
- uv sync --extra sbom
56
- ```
57
-
58
- Generate a CycloneDX SBOM from the current environment:
59
-
60
- ```
61
- uv run cyclonedx-py environment -o sbom.cdx.json --output-format json
62
- ```
63
-
64
- Audit dependencies for known vulnerabilities:
65
-
66
- ```
67
- uv run pip-audit --format json --output audit-report.json
68
- ```
69
-
70
- To fail on any known vulnerability (useful in CI):
71
-
72
- ```
73
- uv run pip-audit --strict
74
- ```