diff --git a/pyproject.toml b/pyproject.toml index d0d5b2d..9484dce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,11 @@ [project] name = "execy" -version = "0.1.0" -description = "Add a short description here" +version = "0.1.7" +description = "The ececy exec_time decorator is a utility that measures the execution time of a function. It can be used to easily track and log the time taken by a function to execute, both for synchronous and asynchronous functions." authors = [ { name = "hglong16", email = "intihad.vuong@gmail.com" } ] -dependencies = ["pytest-asyncio~=0.21.0", "setuptools~=67.8.0", "wheel~=0.40.0", "twine~=4.0.2"] +dependencies = [] readme = "README.md" requires-python = ">= 3.8" @@ -14,8 +14,6 @@ requires = ["hatchling"] build-backend = "hatchling.build" [tool.rye.scripts] -build = "python setup.py sdist bdist_wheel" -upload = "twine upload dist/*" [tool.rye] managed = true diff --git a/requirements-dev.lock b/requirements-dev.lock index b0877f5..19065bc 100644 --- a/requirements-dev.lock +++ b/requirements-dev.lock @@ -8,46 +8,14 @@ -e file:. black==23.3.0 -bleach==6.0.0 -certifi==2023.5.7 -cffi==1.15.1 -charset-normalizer==3.1.0 click==8.1.3 -cryptography==41.0.0 -docutils==0.20.1 exceptiongroup==1.1.1 -idna==3.4 -importlib-metadata==6.6.0 iniconfig==2.0.0 isort==5.12.0 -jaraco-classes==3.2.3 -jeepney==0.8.0 -keyring==23.13.1 -markdown-it-py==2.2.0 -mdurl==0.1.2 -more-itertools==9.1.0 mypy-extensions==1.0.0 packaging==23.1 pathspec==0.11.1 -pkginfo==1.9.6 platformdirs==3.5.1 pluggy==1.0.0 -pycparser==2.21 -pygments==2.15.1 pytest==7.3.1 -pytest-asyncio==0.21.0 -readme-renderer==37.3 -requests==2.31.0 -requests-toolbelt==1.0.0 -rfc3986==2.0.0 -rich==13.4.1 -secretstorage==3.3.3 -six==1.16.0 tomli==2.0.1 -twine==4.0.2 -urllib3==2.0.2 -webencodings==0.5.1 -wheel==0.40.0 -zipp==3.15.0 -# The following packages are considered to be unsafe in a requirements file: -setuptools==67.8.0 diff --git a/requirements.lock b/requirements.lock index 0119f23..aa6be96 100644 --- a/requirements.lock +++ b/requirements.lock @@ -7,41 +7,3 @@ # all-features: false -e file:. -bleach==6.0.0 -certifi==2023.5.7 -cffi==1.15.1 -charset-normalizer==3.1.0 -cryptography==41.0.0 -docutils==0.20.1 -exceptiongroup==1.1.1 -idna==3.4 -importlib-metadata==6.6.0 -iniconfig==2.0.0 -jaraco-classes==3.2.3 -jeepney==0.8.0 -keyring==23.13.1 -markdown-it-py==2.2.0 -mdurl==0.1.2 -more-itertools==9.1.0 -packaging==23.1 -pkginfo==1.9.6 -pluggy==1.0.0 -pycparser==2.21 -pygments==2.15.1 -pytest==7.3.1 -pytest-asyncio==0.21.0 -readme-renderer==37.3 -requests==2.31.0 -requests-toolbelt==1.0.0 -rfc3986==2.0.0 -rich==13.4.1 -secretstorage==3.3.3 -six==1.16.0 -tomli==2.0.1 -twine==4.0.2 -urllib3==2.0.2 -webencodings==0.5.1 -wheel==0.40.0 -zipp==3.15.0 -# The following packages are considered to be unsafe in a requirements file: -setuptools==67.8.0 diff --git a/setup.py b/setup.py deleted file mode 100644 index f4534c3..0000000 --- a/setup.py +++ /dev/null @@ -1,15 +0,0 @@ -# setup.py - -from setuptools import setup, find_packages - -setup( - name="execy", - version="1.0.0", - author="hglong16", - author_email="intihad.vuong@gmail.com", - description="A package for measuring execution time", - packages=find_packages("src"), - package_dir={"": "src"}, - python_requires=">=3.6", - license="MIT", -) diff --git a/src/exectime/__init__.py b/src/exectime/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/src/execy/__init__.py b/src/execy/__init__.py new file mode 100644 index 0000000..b852914 --- /dev/null +++ b/src/execy/__init__.py @@ -0,0 +1 @@ +from execy.exec import exec_time diff --git a/src/exectime/exec.py b/src/execy/exec.py similarity index 100% rename from src/exectime/exec.py rename to src/execy/exec.py diff --git a/tests/test_exec.py b/tests/test_exec.py index bfb8ee8..3380c3b 100644 --- a/tests/test_exec.py +++ b/tests/test_exec.py @@ -1,7 +1,7 @@ import time import asyncio import pytest -from exectime.exec import exec_time +from execy.exec import exec_time @exec_time