Skip to content

Commit ea7e2be

Browse files
committed
Rename project to pymdownx-superfence-filter-lines
Also rename the wheel package to `pymdownx-superfence-filter-lines` and the python package to `pymdownx_superfence_filter_lines`. This is because this is really not Frequenz specific. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 088b259 commit ea7e2be

File tree

13 files changed

+36
-41
lines changed

13 files changed

+36
-41
lines changed

.cookiecutter-replay.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
"cookiecutter": {
33
"Introduction": "",
44
"type": "lib",
5-
"name": "pymdownx-superfences-filter-lines",
5+
"name": "pymdownx-superfence-filter-lines",
66
"description": "A custom superfence for pymdown-extensions that can filters lines and plays nice with MkDocs",
77
"title": "Frequenz Filter Lines Superfence",
88
"keywords": "markdown, filter, mkdocs, python3, mkdocs-material, pymdownx, pymdown-extensions, superfence",
99
"github_org": "frequenz-floss",
1010
"license": "MIT",
1111
"author_name": "Frequenz Energy-as-a-Service GmbH",
1212
"author_email": "[email protected]",
13-
"python_package": "frequenz.pymdownx.superfences.filter_lines",
14-
"pypi_package_name": "frequenz-pymdownx-superfences-filter-lines",
15-
"github_repo_name": "frequenz-pymdownx-superfences-filter-lines-python",
13+
"python_package": "pymdownx_superfence_filter_lines",
14+
"pypi_package_name": "pymdownx-superfence-filter-lines",
15+
"github_repo_name": "pymdownx-superfence-filter-lines-python",
1616
"default_codeowners": "(like @some-org/some-team; defaults to a team based on the repo type)",
1717
"_template": "gh:frequenz-floss/frequenz-repo-config-python",
1818
"_repo_dir": "/home/luca/.cookiecutters/frequenz-repo-config-python/cookiecutter",

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
blank_issues_enabled: true
55
contact_links:
66
- name: Ask a question ❓
7-
url: https://github.com/frequenz-floss/frequenz-pymdownx-superfences-filter-lines-python/discussions/new?category=support
7+
url: https://github.com/frequenz-floss/pymdownx-superfence-filter-lines-python/discussions/new?category=support
88
about: Use this if you are not sure how to do something, have installation problems, etc.

.github/labeler.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
# For example:
1010
#
1111
# "part:module":
12-
# - "src/frequenz/pymdownx/superfences/filter_lines/module/**"
12+
# - "src/pymdownx_superfence_filter_lines/module/**"
1313
#
1414
# "part:other":
15-
# - "src/frequenz/pymdownx/superfences/filter_lines/other/**"
15+
# - "src/pymdownx_superfence_filter_lines/other/**"
1616
#
1717
# # For excluding some files (in this example, label "part:complicated"
1818
# # everything inside src/ with a .py suffix, except for src/__init__.py)

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ These are the steps to create a new release:
139139

140140
5. A GitHub action will test the tag and if all goes well it will create
141141
a [GitHub
142-
Release](https://github.com/frequenz-floss/frequenz-pymdownx-superfences-filter-lines-python/releases),
142+
Release](https://github.com/frequenz-floss/pymdownx-superfence-filter-lines-python/releases),
143143
and upload a new package to
144-
[PyPI](https://pypi.org/project/frequenz-pymdownx-superfences-filter-lines/)
144+
[PyPI](https://pypi.org/project/pymdownx-superfence-filter-lines/)
145145
automatically.
146146

147147
6. Once this is done, reset the `RELEASE_NOTES.md` with the template:

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Frequenz Filter Lines Superfence
22

3-
[![Build Status](https://github.com/frequenz-floss/frequenz-pymdownx-superfences-filter-lines-python/actions/workflows/ci.yaml/badge.svg)](https://github.com/frequenz-floss/frequenz-pymdownx-superfences-filter-lines-python/actions/workflows/ci.yaml)
4-
[![PyPI Package](https://img.shields.io/pypi/v/frequenz-pymdownx-superfences-filter-lines)](https://pypi.org/project/frequenz-pymdownx-superfences-filter-lines/)
5-
[![Docs](https://img.shields.io/badge/docs-latest-informational)](https://frequenz-floss.github.io/frequenz-pymdownx-superfences-filter-lines-python/)
3+
[![Build Status](https://github.com/frequenz-floss/pymdownx-superfence-filter-lines-python/actions/workflows/ci.yaml/badge.svg)](https://github.com/frequenz-floss/pymdownx-superfence-filter-lines-python/actions/workflows/ci.yaml)
4+
[![PyPI Package](https://img.shields.io/pypi/v/pymdownx-superfence-filter-lines)](https://pypi.org/project/pymdownx-superfence-filter-lines/)
5+
[![Docs](https://img.shields.io/badge/docs-latest-informational)](https://frequenz-floss.github.io/pymdownx-superfence-filter-lines-python/)
66

77
## Introduction
88

@@ -82,8 +82,8 @@ markdown_extensions:
8282
custom_fences:
8383
- name: "*"
8484
class: "highlight"
85-
format: !!python/name:frequenz.pymdownx.superfences.filter_lines.do_format
86-
validator: !!python/name:frequenz.pymdownx.superfences.filter_lines.do_validate
85+
format: !!python/name:pymdownx_superfence_filter_lines.do_format
86+
validator: !!python/name:pymdownx_superfence_filter_lines.do_validate
8787
```
8888
8989
### Standalone
@@ -92,11 +92,11 @@ To use this superfence standalone, you can use something like this:
9292
9393
```python
9494
import markdown
95-
from frequenz.pymdownx.superfences.filter_lines import do_format, do_validate
95+
from pymdownx_superfence_filter_lines import do_format, do_validate
9696

9797
html = markdown.markdown(
9898
markdown_source,
99-
extensions=['pymdownx.superfences'],
99+
extensions=['pymdownx.superfence'],
100100
extension_configs={
101101
"pymdownx.superfences": {
102102
"custom_fences": [

mkdocs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ site_name: "Frequenz Filter Lines Superfence"
66
site_description: "A custom superfence for pymdown-extensions that can filters lines and plays nice with MkDocs"
77
site_author: "Frequenz Energy-as-a-Service GmbH"
88
copyright: "Copyright © 2023 Frequenz Energy-as-a-Service GmbH"
9-
repo_name: "frequenz-pymdownx-superfences-filter-lines-python"
10-
repo_url: "https://github.com/frequenz-floss/frequenz-pymdownx-superfences-filter-lines-python"
9+
repo_name: "pymdownx-superfence-filter-lines-python"
10+
repo_url: "https://github.com/frequenz-floss/pymdownx-superfence-filter-lines-python"
1111
edit_uri: "edit/v0.x.x/docs/"
1212
strict: true # Treat warnings as errors
1313

@@ -82,8 +82,8 @@ markdown_extensions:
8282
format: !!python/name:pymdownx.superfences.fence_code_format
8383
- name: "*"
8484
class: "highlight"
85-
format: !!python/name:frequenz.pymdownx.superfences.filter_lines.do_format
86-
validator: !!python/name:frequenz.pymdownx.superfences.filter_lines.do_validate
85+
format: !!python/name:pymdownx_superfence_filter_lines.do_format
86+
validator: !!python/name:pymdownx_superfence_filter_lines.do_validate
8787
- pymdownx.tabbed
8888
- pymdownx.tasklist:
8989
custom_checkbox: true

pyproject.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ requires = [
1010
build-backend = "setuptools.build_meta"
1111

1212
[project]
13-
name = "frequenz-pymdownx-superfences-filter-lines"
13+
name = "pymdownx-superfence-filter-lines"
1414
description = "A custom superfence for pymdown-extensions that can filters lines and plays nice with MkDocs"
1515
readme = "README.md"
1616
license = { text = "MIT" }
@@ -19,7 +19,7 @@ keywords = [
1919
"python",
2020
"lib",
2121
"library",
22-
"pymdownx-superfences-filter-lines",
22+
"pymdownx-superfence-filter-lines",
2323
"markdown",
2424
"filter",
2525
"mkdocs",
@@ -70,13 +70,13 @@ dev-mypy = [
7070
"mypy == 1.7.1",
7171
"types-Markdown == 3.5.0.3",
7272
# For checking the noxfile, docs/ script, and tests
73-
"frequenz-pymdownx-superfences-filter-lines[dev-mkdocs,dev-noxfile,dev-pytest]",
73+
"pymdownx-superfence-filter-lines[dev-mkdocs,dev-noxfile,dev-pytest]",
7474
]
7575
dev-noxfile = ["nox == 2023.4.22", "frequenz-repo-config[lib] == 0.7.5"]
7676
dev-pylint = [
7777
"pylint == 3.0.3",
7878
# For checking the noxfile, docs/ script, and tests
79-
"frequenz-pymdownx-superfences-filter-lines[dev-mkdocs,dev-noxfile,dev-pytest]",
79+
"pymdownx-superfence-filter-lines[dev-mkdocs,dev-noxfile,dev-pytest]",
8080
]
8181
dev-pytest = [
8282
"pytest == 7.4.3",
@@ -86,15 +86,15 @@ dev-pytest = [
8686
"async-solipsism == 0.5",
8787
]
8888
dev = [
89-
"frequenz-pymdownx-superfences-filter-lines[dev-mkdocs,dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]",
89+
"pymdownx-superfence-filter-lines[dev-mkdocs,dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]",
9090
]
9191

9292
[project.urls]
93-
Documentation = "https://frequenz-floss.github.io/frequenz-pymdownx-superfences-filter-lines-python/"
94-
Changelog = "https://github.com/frequenz-floss/frequenz-pymdownx-superfences-filter-lines-python/releases"
95-
Issues = "https://github.com/frequenz-floss/frequenz-pymdownx-superfences-filter-lines-python/issues"
96-
Repository = "https://github.com/frequenz-floss/frequenz-pymdownx-superfences-filter-lines-python"
97-
Support = "https://github.com/frequenz-floss/frequenz-pymdownx-superfences-filter-lines-python/discussions/categories/support"
93+
Documentation = "https://frequenz-floss.github.io/pymdownx-superfence-filter-lines-python/"
94+
Changelog = "https://github.com/frequenz-floss/pymdownx-superfence-filter-lines-python/releases"
95+
Issues = "https://github.com/frequenz-floss/pymdownx-superfence-filter-lines-python/issues"
96+
Repository = "https://github.com/frequenz-floss/pymdownx-superfence-filter-lines-python"
97+
Support = "https://github.com/frequenz-floss/pymdownx-superfence-filter-lines-python/discussions/categories/support"
9898

9999
[tool.black]
100100
line-length = 88
@@ -158,7 +158,7 @@ namespace_packages = true
158158
# used but getting the original ignored error when removing the type: ignore.
159159
# See for example: https://github.com/python/mypy/issues/2960
160160
#no_incremental = true
161-
packages = ["frequenz.pymdownx.superfences.filter_lines"]
161+
modules = ["pymdownx_superfence_filter_lines"]
162162
strict = true
163163

164164
[[tool.mypy.overrides]]

src/frequenz/pymdownx/superfences/filter_lines/__init__.py renamed to src/pymdownx_superfence_filter_lines/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def parse(cls, text: str) -> tuple[Self | None, list[ValueError]]:
131131
132132
The string must be a comma-separated list of ranges, where each range is in the
133133
format described in
134-
[`LinesRange.parse`][frequenz.pymdownx.superfences.filter_lines.LinesRange.parse].
134+
[`LinesRange.parse`][pymdownx_superfence_filter_lines.LinesRange.parse].
135135
136136
If no ranges are given, `None` is returned. If any ranges are invalid, they are
137137
ignored and a list of errors is returned.

0 commit comments

Comments
 (0)