Skip to content

Commit

Permalink
Remove pkg_resources (deprecated) (#962)
Browse files Browse the repository at this point in the history
* rm pkg_resources

* Update CHANGELOG.md

* add back importlib-metadata
  • Loading branch information
dgarcia360 authored Dec 18, 2023
1 parent 13d1564 commit dd2c370
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 25 deletions.
6 changes: 6 additions & 0 deletions docs/source/upgrade/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 1.6.4 - 18 Dec 2023

### Fixed

- [#962](https://github.com/scylladb/sphinx-scylladb-theme/pull/962): `pkg_resources` is deprecated in favor of `importlib.metadata`.

## 1.6.2 - 6 Dec 2023

### Added
Expand Down
39 changes: 18 additions & 21 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sphinx-scylladb-theme"
version = "1.6.2"
version = "1.6.4"
description = "A Sphinx Theme for ScyllaDB documentation projects"
authors = ["David García <hi@davidgarcia.dev>"]
exclude = [".github", "config", "docs", "extensions", ".postcss.config.js", ".prettierrc.json", "deploy.sh", "src", "package.json", "package-lock.json"]
Expand All @@ -17,7 +17,7 @@ Sphinx-Substitution-Extensions = "^2022.2.16"
sphinx-notfound-page = "^1.0.0"

[tool.poetry.dev-dependencies]
pytest = "^7.4.3"
pytest = "^7.4.2"
sphinx-autobuild = "^2021.3.14"
pre-commit = "^3.5.0"
myst-parser = "^2.0.0"
Expand Down
4 changes: 2 additions & 2 deletions sphinx_scylladb_theme/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import pkg_resources
import importlib_metadata

version = pkg_resources.get_distribution("sphinx-scylladb-theme").version
version = importlib_metadata.version("sphinx-scylladb-theme")

0 comments on commit dd2c370

Please sign in to comment.