glitchlings 0.2.3__tar.gz → 0.2.4__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 (56) hide show
  1. {glitchlings-0.2.3 → glitchlings-0.2.4}/PKG-INFO +3 -8
  2. {glitchlings-0.2.3 → glitchlings-0.2.4}/pyproject.toml +3 -9
  3. {glitchlings-0.2.3 → glitchlings-0.2.4}/rust/zoo/build.rs +10 -4
  4. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings.egg-info/PKG-INFO +3 -8
  5. {glitchlings-0.2.3 → glitchlings-0.2.4}/LICENSE +0 -0
  6. {glitchlings-0.2.3 → glitchlings-0.2.4}/MANIFEST.in +0 -0
  7. {glitchlings-0.2.3 → glitchlings-0.2.4}/README.md +0 -0
  8. {glitchlings-0.2.3 → glitchlings-0.2.4}/rust/Cargo.lock +0 -0
  9. {glitchlings-0.2.3 → glitchlings-0.2.4}/rust/Cargo.toml +0 -0
  10. {glitchlings-0.2.3 → glitchlings-0.2.4}/rust/zoo/Cargo.toml +0 -0
  11. {glitchlings-0.2.3 → glitchlings-0.2.4}/rust/zoo/assets/ocr_confusions.tsv +0 -0
  12. {glitchlings-0.2.3 → glitchlings-0.2.4}/rust/zoo/src/glitch_ops.rs +0 -0
  13. {glitchlings-0.2.3 → glitchlings-0.2.4}/rust/zoo/src/lib.rs +0 -0
  14. {glitchlings-0.2.3 → glitchlings-0.2.4}/rust/zoo/src/pipeline.rs +0 -0
  15. {glitchlings-0.2.3 → glitchlings-0.2.4}/rust/zoo/src/resources.rs +0 -0
  16. {glitchlings-0.2.3 → glitchlings-0.2.4}/rust/zoo/src/rng.rs +0 -0
  17. {glitchlings-0.2.3 → glitchlings-0.2.4}/rust/zoo/src/text_buffer.rs +0 -0
  18. {glitchlings-0.2.3 → glitchlings-0.2.4}/rust/zoo/src/typogre.rs +0 -0
  19. {glitchlings-0.2.3 → glitchlings-0.2.4}/setup.cfg +0 -0
  20. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings/__init__.py +0 -0
  21. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings/__main__.py +0 -0
  22. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings/dlc/__init__.py +0 -0
  23. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings/dlc/huggingface.py +0 -0
  24. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings/dlc/prime.py +0 -0
  25. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings/main.py +0 -0
  26. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings/util/__init__.py +0 -0
  27. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings/zoo/__init__.py +0 -0
  28. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings/zoo/_ocr_confusions.py +0 -0
  29. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings/zoo/_rate.py +0 -0
  30. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings/zoo/core.py +0 -0
  31. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings/zoo/jargoyle.py +0 -0
  32. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings/zoo/mim1c.py +0 -0
  33. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings/zoo/ocr_confusions.tsv +0 -0
  34. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings/zoo/redactyl.py +0 -0
  35. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings/zoo/reduple.py +0 -0
  36. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings/zoo/rushmore.py +0 -0
  37. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings/zoo/scannequin.py +0 -0
  38. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings/zoo/typogre.py +0 -0
  39. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings.egg-info/SOURCES.txt +0 -0
  40. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings.egg-info/dependency_links.txt +0 -0
  41. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings.egg-info/entry_points.txt +0 -0
  42. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings.egg-info/requires.txt +1 -1
  43. {glitchlings-0.2.3 → glitchlings-0.2.4}/src/glitchlings.egg-info/top_level.txt +0 -0
  44. {glitchlings-0.2.3 → glitchlings-0.2.4}/tests/test_cli.py +0 -0
  45. {glitchlings-0.2.3 → glitchlings-0.2.4}/tests/test_dataset_corruption.py +0 -0
  46. {glitchlings-0.2.3 → glitchlings-0.2.4}/tests/test_gaggle.py +0 -0
  47. {glitchlings-0.2.3 → glitchlings-0.2.4}/tests/test_glitchling_core.py +0 -0
  48. {glitchlings-0.2.3 → glitchlings-0.2.4}/tests/test_glitchlings_determinism.py +0 -0
  49. {glitchlings-0.2.3 → glitchlings-0.2.4}/tests/test_huggingface_dlc.py +0 -0
  50. {glitchlings-0.2.3 → glitchlings-0.2.4}/tests/test_jargoyle.py +0 -0
  51. {glitchlings-0.2.3 → glitchlings-0.2.4}/tests/test_keyboard_layouts.py +0 -0
  52. {glitchlings-0.2.3 → glitchlings-0.2.4}/tests/test_parameter_effects.py +0 -0
  53. {glitchlings-0.2.3 → glitchlings-0.2.4}/tests/test_prime_echo_chamber.py +0 -0
  54. {glitchlings-0.2.3 → glitchlings-0.2.4}/tests/test_property_based.py +0 -0
  55. {glitchlings-0.2.3 → glitchlings-0.2.4}/tests/test_rust_backed_glitchlings.py +0 -0
  56. {glitchlings-0.2.3 → glitchlings-0.2.4}/tests/test_util.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: glitchlings
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: Monsters for your language games.
5
5
  Author: osoleve
6
6
  License: Apache License
@@ -209,27 +209,21 @@ Project-URL: Homepage, https://github.com/osoleve/glitchlings
209
209
  Project-URL: Repository, https://github.com/osoleve/glitchlings.git
210
210
  Project-URL: Issues, https://github.com/osoleve/glitchlings/issues
211
211
  Project-URL: Changelog, https://github.com/osoleve/glitchlings/releases
212
- Keywords: nlp,text,adversarial augmentation,text augmentation
212
+ Keywords: nlp,text,adversarial augmentation,text augmentation,large language models,llms,data augmentation,confusables,typo,
213
213
  Classifier: Development Status :: 3 - Alpha
214
214
  Classifier: Intended Audience :: Developers
215
- Classifier: License :: OSI Approved :: Apache Software License
216
215
  Classifier: Programming Language :: Python
217
216
  Classifier: Programming Language :: Python :: 3
218
217
  Classifier: Programming Language :: Python :: 3.10
219
218
  Classifier: Programming Language :: Python :: 3.11
220
219
  Classifier: Programming Language :: Python :: 3.12
221
220
  Classifier: Programming Language :: Rust
222
- Classifier: Operating System :: MacOS :: MacOS X
223
- Classifier: Operating System :: Microsoft :: Windows
224
- Classifier: Operating System :: POSIX :: Linux
225
- Classifier: Operating System :: OS Independent
226
221
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
227
222
  Classifier: Topic :: Software Development :: Testing
228
223
  Requires-Python: >=3.10
229
224
  Description-Content-Type: text/markdown
230
225
  License-File: LICENSE
231
226
  Requires-Dist: confusable-homoglyphs>=3.3.1
232
- Requires-Dist: jellyfish>=1.2.0
233
227
  Provides-Extra: hf
234
228
  Requires-Dist: datasets>=4.0.0; extra == "hf"
235
229
  Provides-Extra: wordnet
@@ -237,6 +231,7 @@ Requires-Dist: nltk>=3.9.1; extra == "wordnet"
237
231
  Requires-Dist: numpy<=2.0,>=1.24; extra == "wordnet"
238
232
  Provides-Extra: prime
239
233
  Requires-Dist: verifiers>=0.1.3.post0; extra == "prime"
234
+ Requires-Dist: jellyfish>=1.2.0; extra == "prime"
240
235
  Provides-Extra: dev
241
236
  Requires-Dist: pytest>=8.0.0; extra == "dev"
242
237
  Requires-Dist: hypothesis>=6.140.0; extra == "dev"
@@ -1,35 +1,29 @@
1
1
  [project]
2
2
  name = "glitchlings"
3
- version = "0.2.3"
3
+ version = "0.2.4"
4
4
  description = "Monsters for your language games."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
7
7
 
8
8
  dependencies = [
9
9
  "confusable-homoglyphs>=3.3.1",
10
- "jellyfish>=1.2.0",
11
10
  ]
12
11
 
13
12
  authors = [
14
13
  { name = "osoleve" }
15
14
  ]
16
15
 
17
- keywords = ["nlp", "text", "adversarial augmentation", "text augmentation"]
16
+ keywords = ["nlp", "text", "adversarial augmentation", "text augmentation", "large language models", "llms", "data augmentation", "confusables", "typo", ""]
18
17
 
19
18
  classifiers = [
20
19
  "Development Status :: 3 - Alpha",
21
20
  "Intended Audience :: Developers",
22
- "License :: OSI Approved :: Apache Software License",
23
21
  "Programming Language :: Python",
24
22
  "Programming Language :: Python :: 3",
25
23
  "Programming Language :: Python :: 3.10",
26
24
  "Programming Language :: Python :: 3.11",
27
25
  "Programming Language :: Python :: 3.12",
28
26
  "Programming Language :: Rust",
29
- "Operating System :: MacOS :: MacOS X",
30
- "Operating System :: Microsoft :: Windows",
31
- "Operating System :: POSIX :: Linux",
32
- "Operating System :: OS Independent",
33
27
  "Topic :: Scientific/Engineering :: Artificial Intelligence",
34
28
  "Topic :: Software Development :: Testing",
35
29
  ]
@@ -49,7 +43,7 @@ glitchlings = "glitchlings.main:main"
49
43
  [project.optional-dependencies]
50
44
  hf = ["datasets>=4.0.0"]
51
45
  wordnet = ["nltk>=3.9.1", "numpy>=1.24,<=2.0"]
52
- prime = ["verifiers>=0.1.3.post0"]
46
+ prime = ["verifiers>=0.1.3.post0", "jellyfish>=1.2.0"]
53
47
  dev = [
54
48
  "pytest>=8.0.0",
55
49
  "hypothesis>=6.140.0",
@@ -9,10 +9,15 @@ fn main() {
9
9
  prepare_confusion_table().expect("failed to stage OCR confusion table for compilation");
10
10
  pyo3_build_config::add_extension_module_link_args();
11
11
 
12
- if let Some(python) = configured_python() {
13
- link_python(&python);
14
- } else if let Some(python) = detect_python() {
15
- link_python(&python);
12
+ // Only perform custom Python linking on non-Linux platforms.
13
+ // On Linux, manylinux wheels must NOT link against libpython to ensure portability.
14
+ // PyO3's add_extension_module_link_args() already handles this correctly by default.
15
+ if cfg!(not(target_os = "linux")) {
16
+ if let Some(python) = configured_python() {
17
+ link_python(&python);
18
+ } else if let Some(python) = detect_python() {
19
+ link_python(&python);
20
+ }
16
21
  }
17
22
  }
18
23
 
@@ -77,6 +82,7 @@ fn link_python(python: &OsStr) {
77
82
  let stem = stripped
78
83
  .strip_suffix(".so")
79
84
  .or_else(|| stripped.strip_suffix(".a"))
85
+ .or_else(|| stripped.strip_suffix(".dylib"))
80
86
  .unwrap_or(stripped);
81
87
  if !stem.is_empty() {
82
88
  println!("cargo:rustc-link-lib={stem}");
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: glitchlings
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: Monsters for your language games.
5
5
  Author: osoleve
6
6
  License: Apache License
@@ -209,27 +209,21 @@ Project-URL: Homepage, https://github.com/osoleve/glitchlings
209
209
  Project-URL: Repository, https://github.com/osoleve/glitchlings.git
210
210
  Project-URL: Issues, https://github.com/osoleve/glitchlings/issues
211
211
  Project-URL: Changelog, https://github.com/osoleve/glitchlings/releases
212
- Keywords: nlp,text,adversarial augmentation,text augmentation
212
+ Keywords: nlp,text,adversarial augmentation,text augmentation,large language models,llms,data augmentation,confusables,typo,
213
213
  Classifier: Development Status :: 3 - Alpha
214
214
  Classifier: Intended Audience :: Developers
215
- Classifier: License :: OSI Approved :: Apache Software License
216
215
  Classifier: Programming Language :: Python
217
216
  Classifier: Programming Language :: Python :: 3
218
217
  Classifier: Programming Language :: Python :: 3.10
219
218
  Classifier: Programming Language :: Python :: 3.11
220
219
  Classifier: Programming Language :: Python :: 3.12
221
220
  Classifier: Programming Language :: Rust
222
- Classifier: Operating System :: MacOS :: MacOS X
223
- Classifier: Operating System :: Microsoft :: Windows
224
- Classifier: Operating System :: POSIX :: Linux
225
- Classifier: Operating System :: OS Independent
226
221
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
227
222
  Classifier: Topic :: Software Development :: Testing
228
223
  Requires-Python: >=3.10
229
224
  Description-Content-Type: text/markdown
230
225
  License-File: LICENSE
231
226
  Requires-Dist: confusable-homoglyphs>=3.3.1
232
- Requires-Dist: jellyfish>=1.2.0
233
227
  Provides-Extra: hf
234
228
  Requires-Dist: datasets>=4.0.0; extra == "hf"
235
229
  Provides-Extra: wordnet
@@ -237,6 +231,7 @@ Requires-Dist: nltk>=3.9.1; extra == "wordnet"
237
231
  Requires-Dist: numpy<=2.0,>=1.24; extra == "wordnet"
238
232
  Provides-Extra: prime
239
233
  Requires-Dist: verifiers>=0.1.3.post0; extra == "prime"
234
+ Requires-Dist: jellyfish>=1.2.0; extra == "prime"
240
235
  Provides-Extra: dev
241
236
  Requires-Dist: pytest>=8.0.0; extra == "dev"
242
237
  Requires-Dist: hypothesis>=6.140.0; extra == "dev"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,5 +1,4 @@
1
1
  confusable-homoglyphs>=3.3.1
2
- jellyfish>=1.2.0
3
2
 
4
3
  [dev]
5
4
  pytest>=8.0.0
@@ -12,6 +11,7 @@ datasets>=4.0.0
12
11
 
13
12
  [prime]
14
13
  verifiers>=0.1.3.post0
14
+ jellyfish>=1.2.0
15
15
 
16
16
  [wordnet]
17
17
  nltk>=3.9.1