diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 93c8d69..143a10b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,12 +25,4 @@ jobs: POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} run: | poetry build - poetry publish - - - name: Create GitHub Release - uses: softprops/action-gh-release@v1 - with: - files: dist/* - generate_release_notes: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + poetry publish \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9c1ee69..1bace3a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,25 +13,18 @@ jobs: steps: - uses: actions/checkout@v3 - + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - + - name: Install Poetry run: | curl -sSL https://install.python-poetry.org | python3 - - + - name: Install dependencies run: poetry install - + - name: Run tests run: poetry run pytest - - - name: Check formatting - run: | - poetry run black . --check - poetry run isort . --check - poetry run flake8 . - poetry run mypy . \ No newline at end of file diff --git a/.gitignore b/.gitignore index a71a134..c0c0982 100644 --- a/.gitignore +++ b/.gitignore @@ -384,3 +384,4 @@ cython_debug/ # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ .venv +.venv diff --git a/README.md b/README.md index a5989bc..b039487 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,15 @@ -# WikiDict +# Wikiluv Wikipedia at your fingertips. ## Installation ```bash -pip install wikidict +pip install wikiluv ``` ## Usage ```bash -wikidict rose +wikiluv rose ``` # Demo -![demo](https://github.com/walidsa3d/wikidict/blob/master/wikidict.gif) \ No newline at end of file +![demo](https://github.com/walidsa3d/wikiluv/blob/master/wikiluv.gif) \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 8354150..ba4065d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.poetry] -name = "wikidict" +name = "wikiluv" version = "0.2.0" description = "Wikipedia at your fingertips" authors = ["walid "] @@ -20,4 +20,4 @@ requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" [tool.poetry.scripts] -wikidict = "wikidict.main:main" \ No newline at end of file +wikiluv = "wikiluv.main:main" \ No newline at end of file diff --git a/tests/test.py b/tests/test.py index 3894726..62e91a5 100644 --- a/tests/test.py +++ b/tests/test.py @@ -1,14 +1,14 @@ import sys -sys.path.append('../wikidict') +sys.path.append('../wikiluv') -from wikidict import * +from wikiluv import * import unittest2 import requests import sys class WikiddictTestCase(unittest2.TestCase): - """Tests for `wikidict/wikidict.py`.""" + """Tests for `wikiluv/wikiluv.py`.""" def setUp(self): self.query = "google" diff --git a/wikidict.gif b/wikidict.gif deleted file mode 100644 index 0456ef3..0000000 Binary files a/wikidict.gif and /dev/null differ diff --git a/wikidict/__init__.py b/wikiluv/__init__.py similarity index 100% rename from wikidict/__init__.py rename to wikiluv/__init__.py diff --git a/wikidict/lancodes.py b/wikiluv/lancodes.py similarity index 100% rename from wikidict/lancodes.py rename to wikiluv/lancodes.py diff --git a/wikidict/main.py b/wikiluv/main.py similarity index 96% rename from wikidict/main.py rename to wikiluv/main.py index bda1a21..d469f5e 100644 --- a/wikidict/main.py +++ b/wikiluv/main.py @@ -7,8 +7,8 @@ from rich.console import Console from rich.spinner import Spinner from rich.text import Text -from wikidict.lancodes import codes -from wikidict.utils import justify +from wikiluv.lancodes import codes +from wikiluv.utils import justify console = Console() BASE_URL = "https://{lang}.wikipedia.org/w/api.php?continue=&action=query&titles={query}&prop=extracts&exintro=&explaintext=&format=json&redirects&formatversion=2" diff --git a/wikidict/utils.py b/wikiluv/utils.py similarity index 100% rename from wikidict/utils.py rename to wikiluv/utils.py