Skip to content

Commit 5fd8a12

Browse files
authored
Release/v2.5.2 (#71)
* Replace use of findChild with find (#69) * Fix for PEP 625 (#70)
1 parent 02bd598 commit 5fd8a12

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

.build/mkdocs_markmap_build/common.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
import os
33
import sys
44
from pathlib import Path
5-
from typing import Dict, List
5+
from typing import List
66
from urllib3.poolmanager import PoolManager
77
from urllib3.response import HTTPResponse
88

99
from github import Github
1010
from github.GitRelease import GitRelease
1111
from github.Repository import Repository
1212

13-
from mkdocs_markmap.__meta__ import PACKAGE_NAME, PROJECT_NAME, PROJECT_VERSION, REPOSITORY_NAME
13+
from mkdocs_markmap.__meta__ import PROJECT_NAME, PROJECT_VERSION, REPOSITORY_NAME
1414

1515

1616
PROJECT_PATH: Path = Path(__file__).parent.parent.parent.absolute()
1717
DIST_PATH: Path = PROJECT_PATH / 'dist'
1818
CHANGELOG_PATH: Path = PROJECT_PATH / 'changelog'
1919

2020
GZ_WILDCARD: str = f'{PROJECT_NAME}-{{version}}*.gz'
21-
WHL_WILDCARD: str = f'{PACKAGE_NAME}-{{version}}*.whl'
21+
WHL_WILDCARD: str = f'{PROJECT_NAME}-{{version}}*.whl'
2222

2323

2424
class GithubHandler(object):

.github/workflows/verify.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build:
10-
name: Distribute
10+
name: Ensure Integrity
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code

changelog/v2.5.2.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# v2.5.2
2+
3+
* Fix for DeprecationWarning due to use of `findChild` (#70)
4+
* Fix for PEP 625 (#69)

mkdocs_markmap/__meta__.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
PACKAGE_NAME: str = "mkdocs_markmap"
2-
PROJECT_NAME: str = PACKAGE_NAME.replace("_", "-")
3-
PROJECT_VERSION: str = "2.5.1"
1+
PROJECT_NAME: str = "mkdocs_markmap"
2+
PROJECT_VERSION: str = "2.5.2"
43

54
OWNER: str = "neatc0der"
65
ORGANISATION: str = "markmap"

mkdocs_markmap/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def on_page_content(self, html: str, page: Page, **kwargs) -> str:
121121
code: Tag
122122
if markmap.name == "pre":
123123
pre = markmap
124-
code = markmap.findChild("code")
124+
code = markmap.find("code")
125125
else:
126126
pre = markmap.parent
127127
code = markmap

setup.py

+5-8
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,10 @@
55
from mkdocs_markmap.__meta__ import OWNER, PROJECT_NAME, PROJECT_VERSION, REPOSITORY_URL
66

77

8-
def readme() -> str:
9-
"""print long description"""
10-
with open('README.md') as f:
11-
return f.read()
12-
13-
148
def get_requirements(filename: str, base_dir: str = 'requirements') -> List[str]:
159
"""Load list of dependencies."""
1610
install_requires = []
17-
with open(Path(base_dir) / filename) as fp:
11+
with (Path(base_dir) / filename).open() as fp:
1812
for line in fp:
1913
stripped_line = line.partition('#')[0].strip()
2014
if stripped_line:
@@ -27,7 +21,7 @@ def get_requirements(filename: str, base_dir: str = 'requirements') -> List[str]
2721
name=PROJECT_NAME,
2822
version=PROJECT_VERSION,
2923
description='MkDocs plugin and extension to creates mindmaps from markdown using markmap',
30-
long_description=readme(),
24+
long_description=Path('README.md').read_text(),
3125
long_description_content_type='text/markdown',
3226
keywords='mkdocs python markdown markmap mindmap include',
3327
url=REPOSITORY_URL,
@@ -46,6 +40,9 @@ def get_requirements(filename: str, base_dir: str = 'requirements') -> List[str]
4640
'Programming Language :: Python :: 3.8',
4741
'Programming Language :: Python :: 3.9',
4842
'Programming Language :: Python :: 3.10',
43+
'Programming Language :: Python :: 3.11',
44+
'Programming Language :: Python :: 3.12',
45+
'Programming Language :: Python :: 3.13',
4946
],
5047
packages=find_packages(exclude=['*.tests']),
5148
package_dir={

0 commit comments

Comments
 (0)