Skip to content

Commit

Permalink
Fix wheel and versioning issues (#39)
Browse files Browse the repository at this point in the history
Resolves #36 #37 #38
Co-authored-by: ljvmiranda921 <[email protected]>
  • Loading branch information
stickykeys99 authored Aug 2, 2024
1 parent e9c4a3e commit e8682d0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ jobs:
- name: "Run tests"
shell: bash
run: |
python -m pip install https://huggingface.co/ljvmiranda921/tl_calamancy_md/resolve/55ef01a244f3ca77676de6ba5a2beea0ba3e0021/tl_calamancy_md-any-py3-none-any.whl --no-deps
python -m pip install https://huggingface.co/ljvmiranda921/tl_calamancy_md/resolve/main/tl_calamancy_md-0.1.0-py3-none-any.whl --no-deps
python -m pytest --pyargs $MODULE_NAME
6 changes: 3 additions & 3 deletions calamancy/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ def _get_models_url() -> Dict[str, str]:
tracked and the download functions below work as expected.
"""
return {
"tl_calamancy_md-0.1.0": f"https://huggingface.co/ljvmiranda921/tl_calamancy_md/resolve/{GIT_REF}/tl_calamancy_md-any-py3-none-any.whl",
"tl_calamancy_lg-0.1.0": f"https://huggingface.co/ljvmiranda921/tl_calamancy_lg/resolve/{GIT_REF}/tl_calamancy_lg-any-py3-none-any.whl",
"tl_calamancy_trf-0.1.0": f"https://huggingface.co/ljvmiranda921/tl_calamancy_trf/resolve/{GIT_REF}/tl_calamancy_trf-any-py3-none-any.whl",
"tl_calamancy_md-0.1.0": f"https://huggingface.co/ljvmiranda921/tl_calamancy_md/resolve/{GIT_REF}/tl_calamancy_md-0.1.0-py3-none-any.whl",
"tl_calamancy_lg-0.1.0": f"https://huggingface.co/ljvmiranda921/tl_calamancy_lg/resolve/{GIT_REF}/tl_calamancy_lg-0.1.0-py3-none-any.whl",
"tl_calamancy_trf-0.1.0": f"https://huggingface.co/ljvmiranda921/tl_calamancy_trf/resolve/{GIT_REF}/tl_calamancy_trf-0.1.0-py3-none-any.whl",
}


Expand Down
4 changes: 2 additions & 2 deletions models/v0.1.0/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "tl_calamancy",
"lang": "tl",
"version": "0.1.0",
"spacy_version": ">=3.5.0",
"spacy_version": ">=3.5.0,<4.0.0",
"parent_package": "spacy",
"requirements": [
"spacy-transformers>=1.2.0"
"spacy-transformers>=1.2.5,<1.3.0"
],
"description": "calamanCy: Tagalog NLP pipelines in spaCy",
"author": "Lester James V. Miranda",
Expand Down
2 changes: 1 addition & 1 deletion models/v0.1.0/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
spacy>=3.5.0
spacy-transformers>=1.2.5
spacy-transformers>=1.2.5,<1.3.0
spacy-huggingface-hub>=0.0.9
pathy[gcs]
typer
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ requires-python = ">=3.7"
dependencies = [
"spacy>=3.5.0",
"wasabi>=0.9.1",
"typer>=0.4.2"
"typer>=0.4.2",
"spacy-transformers>=1.2.5,<1.3.0"
]

[project.optional-dependencies]
Expand Down

0 comments on commit e8682d0

Please sign in to comment.