Skip to content

Commit eade0a1

Browse files
committed
fix ci
1 parent ebf1ac8 commit eade0a1

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

Diff for: .github/workflows/test_macos.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ jobs:
1212
uses: actions/setup-python@v2
1313
with:
1414
python-version: 3.10.11
15-
- name: Install pytest locally
15+
16+
- name: Install pytest
1617
run: |
1718
python3 -m pip install pytest
1819
- name: Install kss locally
1920
run: |
20-
python setup.py install
21+
pip3 install -e .
2122
- name: Run the test suite
2223
run: |
2324
pytest -v

Diff for: .github/workflows/test_ubuntu.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
with:
1414
python-version: 3.10.11
1515

16-
- name: Install pytest locally
16+
- name: Install pytest
1717
run: |
1818
python3 -m pip install pytest
1919
- name: Install kss locally
2020
run: |
21-
python setup.py install
21+
pip3 install -e .
2222
- name: Run the test suite
2323
run: |
2424
pytest -v

Diff for: .github/workflows/test_windows.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
with:
1414
python-version: 3.10.11
1515

16-
- name: Install pytest locally
16+
- name: Install pytest
1717
run: |
1818
python3 -m pip install pytest
1919
- name: Install kss locally
2020
run: |
21-
python setup.py install
21+
pip3 install -e .
2222
- name: Run the test suite
2323
run: |
2424
pytest -v

Diff for: setup.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@ def read_file(filename, cb):
150150
with open("README.md", encoding="utf-8") as f:
151151
long_description = f.read()
152152

153+
install_requires = [
154+
"six", "emoji==1.2.0", "pecab", "networkx", "jamo",
155+
"hangul-jamo", "hanja==0.13.3", "tossi", "hangulize",
156+
"pycountry", "distance", "unidecode", "cmudict",
157+
"koparadigm", "kollocate", "bs4", "numpy", "pytest",
158+
]
159+
153160
setup(
154161
name="kss",
155162
version=version,
@@ -160,12 +167,7 @@ def read_file(filename, cb):
160167
description="A Toolkit for Korean sentence segmentation",
161168
long_description_content_type="text/markdown",
162169
platforms=["any"],
163-
install_requires=[
164-
"six", "emoji==1.2.0", "pecab", "networkx", "jamo",
165-
"hangul-jamo", "hanja==0.13.3", "tossi", "hangulize",
166-
"pycountry", "distance", "unidecode", "cmudict",
167-
"koparadigm", "kollocate", "bs4", "numpy", "pytest",
168-
],
170+
install_requires=install_requires,
169171
long_description=long_description,
170172
packages=find_packages(exclude=["bench", "assets", ".java", ".pytest_cache"]),
171173
python_requires=">=3",

0 commit comments

Comments
 (0)