Skip to content

Commit

Permalink
2.2.3 - Remove deprecated call
Browse files Browse the repository at this point in the history
  • Loading branch information
vkottler committed Jul 11, 2023
1 parent 5615d69 commit b7dbd27
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
=====================================
generator=datazen
version=3.1.2
hash=9d5d3a05af6eef0ccd3e45362818a324
hash=f6114ec2f47f68cb9c8196b8c0c35bf4
=====================================
-->

# vcorelib ([2.2.2](https://pypi.org/project/vcorelib/))
# vcorelib ([2.2.3](https://pypi.org/project/vcorelib/))

[![python](https://img.shields.io/pypi/pyversions/vcorelib.svg)](https://pypi.org/project/vcorelib/)
![Build Status](https://github.com/vkottler/vcorelib/workflows/Python%20Package/badge.svg)
Expand Down
1 change: 1 addition & 0 deletions local/configs/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ requirements:
- ruamel.yaml
- tomli
- tomli-w
- importlib-resources

dev_requirements:
- pytest-asyncio
Expand Down
2 changes: 1 addition & 1 deletion local/variables/package.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
major: 2
minor: 2
patch: 2
patch: 3
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__"

[project]
name = "vcorelib"
version = "2.2.2"
version = "2.2.3"
description = "A collection of core Python utilities."
readme = "README.md"
requires-python = ">=3.8"
Expand Down
4 changes: 2 additions & 2 deletions vcorelib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# =====================================
# generator=datazen
# version=3.1.2
# hash=bdc75eb0a895b331c46cd22610ba8fbc
# hash=3353bd64495549481f1323d3f2cf2882
# =====================================

"""
Expand All @@ -10,7 +10,7 @@

DESCRIPTION = "A collection of core Python utilities."
PKG_NAME = "vcorelib"
VERSION = "2.2.2"
VERSION = "2.2.3"

# vcorelib-specific content.
DEFAULT_INDENT = 2
Expand Down
6 changes: 4 additions & 2 deletions vcorelib/paths/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from typing import Union as _Union

# third-party
from pkg_resources import resource_filename as _resource_filename
import importlib_resources as _importlib_resources

# internal
from vcorelib import DEFAULT_ENCODING as _DEFAULT_ENCODING
Expand Down Expand Up @@ -159,7 +159,9 @@ def _construct_search_path(
# Add a package resource to the search path if a package name was provided.
if package is not None:
try:
to_check.append(_resource_filename(package, package_subdir))
to_check.append(
_importlib_resources.files(package).joinpath(package_subdir)
)
except ModuleNotFoundError:
if logger is not None:
logger.warning(
Expand Down
1 change: 1 addition & 0 deletions vcorelib/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ fastjsonschema
ruamel.yaml
tomli
tomli-w
importlib-resources

0 comments on commit b7dbd27

Please sign in to comment.