From b3c482de3a530214e7a091060b2e98c733e71032 Mon Sep 17 00:00:00 2001 From: Wu Zhenyu Date: Sat, 14 Jan 2023 23:12:25 +0800 Subject: [PATCH] :truck: Rename python_wakatime to repl_python_wakatime --- README.md | 6 +++--- docs/api/python_wakatime.md | 2 +- docs/conf.py | 4 ++-- pyproject.toml | 6 +++--- src/{python_wakatime => repl_python_wakatime}/__init__.py | 0 src/{python_wakatime => repl_python_wakatime}/ipython.py | 0 src/{python_wakatime => repl_python_wakatime}/ptpython.py | 0 src/{python_wakatime => repl_python_wakatime}/py.typed | 0 src/{python_wakatime => repl_python_wakatime}/python.py | 0 src/{python_wakatime => repl_python_wakatime}/utils.py | 0 tests/__init___test.py | 2 +- 11 files changed, 10 insertions(+), 10 deletions(-) rename src/{python_wakatime => repl_python_wakatime}/__init__.py (100%) rename src/{python_wakatime => repl_python_wakatime}/ipython.py (100%) rename src/{python_wakatime => repl_python_wakatime}/ptpython.py (100%) rename src/{python_wakatime => repl_python_wakatime}/py.typed (100%) rename src/{python_wakatime => repl_python_wakatime}/python.py (100%) rename src/{python_wakatime => repl_python_wakatime}/utils.py (100%) diff --git a/README.md b/README.md index 09e4cee..a222b18 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Supported REPLs: [`$PYTHON_STARTUP`](https://docs.python.org/3/using/cmdline.html#envvar-PYTHONSTARTUP). ```python -from python_wakatime.python import install_hook +from repl_python_wakatime.python import install_hook install_hook() ``` @@ -60,7 +60,7 @@ install_hook() ```python from ptpython.repl import PythonRepl -from python_wakatime.ptpython import install_hook +from repl_python_wakatime.ptpython import install_hook def configure(repl: PythonRepl) -> None: @@ -74,7 +74,7 @@ def configure(repl: PythonRepl) -> None: - configure file: `~/.ipython/profile_default/ipython_config.py`. ```python -from python_wakatime.iptpython import install_hook +from repl_python_wakatime.iptpython import install_hook install_hook(c) ``` diff --git a/docs/api/python_wakatime.md b/docs/api/python_wakatime.md index c8f753e..674a604 100644 --- a/docs/api/python_wakatime.md +++ b/docs/api/python_wakatime.md @@ -1,4 +1,4 @@ -# python_wakatime +# repl_python_wakatime ````{eval-rst} ```{eval-sh} diff --git a/docs/conf.py b/docs/conf.py index 1a9cfd0..b90f323 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -2,8 +2,8 @@ https://www.sphinx-doc.org/en/master/usage/configuration.html """ -from python_wakatime import __version__ as version # type: ignore -from python_wakatime._metainfo import ( # type: ignore +from repl_python_wakatime import __version__ as version # type: ignore +from repl_python_wakatime._metainfo import ( # type: ignore author, copyright, project, diff --git a/pyproject.toml b/pyproject.toml index bea08eb..0cff03c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,16 +39,16 @@ Download = "https://github.com/wakatime/repl-python-wakatime/releases" Source = "https://github.com/wakatime/repl-python-wakatime" [tool.setuptools.package-data] -python_wakatime = ["py.typed", "assets/*"] +repl_python_wakatime = ["py.typed", "assets/*"] [tool.setuptools.dynamic.optional-dependencies] dev = { file = "requirements/dev.txt" } [tool.setuptools_scm] -write_to = "src/python_wakatime/_version.py" +write_to = "src/repl_python_wakatime/_version.py" [tool.setuptools-generate] -write-to = "src/python_wakatime/_metainfo.py" +write-to = "src/repl_python_wakatime/_metainfo.py" [tool.black] line-length = 79 diff --git a/src/python_wakatime/__init__.py b/src/repl_python_wakatime/__init__.py similarity index 100% rename from src/python_wakatime/__init__.py rename to src/repl_python_wakatime/__init__.py diff --git a/src/python_wakatime/ipython.py b/src/repl_python_wakatime/ipython.py similarity index 100% rename from src/python_wakatime/ipython.py rename to src/repl_python_wakatime/ipython.py diff --git a/src/python_wakatime/ptpython.py b/src/repl_python_wakatime/ptpython.py similarity index 100% rename from src/python_wakatime/ptpython.py rename to src/repl_python_wakatime/ptpython.py diff --git a/src/python_wakatime/py.typed b/src/repl_python_wakatime/py.typed similarity index 100% rename from src/python_wakatime/py.typed rename to src/repl_python_wakatime/py.typed diff --git a/src/python_wakatime/python.py b/src/repl_python_wakatime/python.py similarity index 100% rename from src/python_wakatime/python.py rename to src/repl_python_wakatime/python.py diff --git a/src/python_wakatime/utils.py b/src/repl_python_wakatime/utils.py similarity index 100% rename from src/python_wakatime/utils.py rename to src/repl_python_wakatime/utils.py diff --git a/tests/__init___test.py b/tests/__init___test.py index 2a2b88d..b39b0b8 100644 --- a/tests/__init___test.py +++ b/tests/__init___test.py @@ -4,7 +4,7 @@ import os from pathlib import Path -from python_wakatime.utils import get_project +from repl_python_wakatime.utils import get_project class Test: