From ef31d0a632a847f80815458351d3a9463afdbee8 Mon Sep 17 00:00:00 2001 From: Robert Voelckner Date: Wed, 21 Dec 2022 13:19:19 +0100 Subject: [PATCH] Fixing a few naming issues --- README.md | 16 ++++++++-------- pyproject.toml | 6 +++--- src/{disk_cache => ez_disk_cache}/__init__.py | 0 src/{disk_cache => ez_disk_cache}/disk_cache.py | 0 4 files changed, 11 insertions(+), 11 deletions(-) rename src/{disk_cache => ez_disk_cache}/__init__.py (100%) rename src/{disk_cache => ez_disk_cache}/disk_cache.py (100%) diff --git a/README.md b/README.md index 4b500ed..98a2e1d 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Cache instances are organized as sub-folders inside a **cache root folder**. The ```python import time from dataclasses import dataclass -from disk_cache import DiskCacheConfig, disk_cache +from ez_disk_cache import DiskCacheConfig, disk_cache @dataclass class Config(DiskCacheConfig): @@ -64,7 +64,7 @@ The following example demonstrates the coexistence of multiple cache instances a ```python import time from dataclasses import dataclass -from disk_cache import DiskCacheConfig, disk_cache +from ez_disk_cache import DiskCacheConfig, disk_cache @dataclass class CarConfig(DiskCacheConfig): @@ -114,7 +114,7 @@ The following example shows how *ez-disk-cache* can be used to cache generator f from dataclasses import dataclass from typing import List -from disk_cache import DiskCacheConfig, disk_cache, LazyList +from ez_disk_cache import DiskCacheConfig, disk_cache, LazyList @dataclass class Config(DiskCacheConfig): @@ -140,7 +140,7 @@ As mentioned above, decorated functions are strongly recommended to expect exact ```python import time from dataclasses import dataclass -from disk_cache import DiskCacheConfig, disk_cache +from ez_disk_cache import DiskCacheConfig, disk_cache @dataclass class Config(DiskCacheConfig): @@ -174,7 +174,7 @@ As soon as a given cache root folder exceeds one of these limits, old cache inst ```python from dataclasses import dataclass -from disk_cache import DiskCacheConfig, disk_cache +from ez_disk_cache import DiskCacheConfig, disk_cache @dataclass class Config(DiskCacheConfig): @@ -200,7 +200,7 @@ A decorated function itself offers a few methods that may be used to manage the ```python from dataclasses import dataclass -from disk_cache import DiskCacheConfig, disk_cache +from ez_disk_cache import DiskCacheConfig, disk_cache @dataclass class Config(DiskCacheConfig): @@ -234,7 +234,7 @@ The following example shows how to alter the cache-compatibility behaviour of *e import time from dataclasses import dataclass -from disk_cache import DiskCacheConfig, disk_cache +from ez_disk_cache import DiskCacheConfig, disk_cache @dataclass class CarConfig(DiskCacheConfig): @@ -269,7 +269,7 @@ import time from dataclasses import dataclass from typing import Dict, Any -from disk_cache import DiskCacheConfig, disk_cache +from ez_disk_cache import DiskCacheConfig, disk_cache class CustomSubType: def __init__(self, a, b): diff --git a/pyproject.toml b/pyproject.toml index 15dee42..6fd2e24 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "ez-disk-cache" -version = "0.0.1" +version = "0.0.2" authors = [ { name="Robert Voelckner" }, ] @@ -19,5 +19,5 @@ classifiers = [ dependencies = ["pyyaml>=6.0"] [project.urls] -"Homepage" = "https://github.com/robvoe/ez_disk_cache" -"Bug Tracker" = "https://github.com/robvoe/ez_disk_cache/issues" \ No newline at end of file +"Homepage" = "https://github.com/robvoe/ez-disk-cache" +"Bug Tracker" = "https://github.com/robvoe/ez-disk-cache/issues" \ No newline at end of file diff --git a/src/disk_cache/__init__.py b/src/ez_disk_cache/__init__.py similarity index 100% rename from src/disk_cache/__init__.py rename to src/ez_disk_cache/__init__.py diff --git a/src/disk_cache/disk_cache.py b/src/ez_disk_cache/disk_cache.py similarity index 100% rename from src/disk_cache/disk_cache.py rename to src/ez_disk_cache/disk_cache.py