Skip to content

Commit bc9d645

Browse files
jjmachanJithin James
and
Jithin James
authored
chore: fix issues with released package (#20)
* fix requirements * added __version__ to package --------- Co-authored-by: Jithin James <[email protected]>
1 parent 1a9f19e commit bc9d645

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

.github/workflows/python-publish.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,17 @@ jobs:
2121
environment: pypi-release
2222
steps:
2323
- uses: actions/checkout@v3
24+
with:
25+
fetch-depth: 0
2426
- name: Set up Python
2527
uses: actions/setup-python@v3
2628
with:
2729
python-version: '3.x'
2830
- name: Install dependencies
2931
run: |
3032
python -m pip install --upgrade pip
31-
pip install build
33+
pip install --upgrade setuptools
34+
pip install --upgrade build
3235
- name: Build package
3336
run: python -m build
3437
- name: Publish package

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,4 @@ cython_debug/
158158
# and can be added to the global gitignore or merged into this file. For a more nuclear
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160160
#.idea/
161-
belar/_version.py
162-
**/tmp.ipynb
163161
ragas/_version.py

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ dependencies = [
88
"sentence-transformers",
99
"nltk",
1010
"datasets",
11-
"spacy",
11+
"spacy<4.0.0,>=3.0.0",
12+
"en-core-web-sm",
1213
]
1314
dynamic = ["version", "readme"]
1415

ragas/__init__.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
try:
2+
from ._version import version as __version__
3+
from ._version import version_tuple
4+
except ImportError:
5+
__version__ = "unknown version"
6+
version_tuple = (0, 0, "unknown version")

0 commit comments

Comments
 (0)