Skip to content

Commit 1f99337

Browse files
jet-logicjet-logic
authored andcommitted
v0.0.6
1 parent 90b805c commit 1f99337

File tree

5 files changed

+14
-47
lines changed

5 files changed

+14
-47
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -30,33 +30,3 @@ jobs:
3030

3131
- name: Run mypy
3232
run: mypy renx || true
33-
34-
# - name: Verify version sync
35-
# run: |
36-
# python -c "from runce import __version__; print(__version__)" > actual_version
37-
# python -c "import toml; print(toml.load('pyproject.toml')['project'].get('version', 'DYNAMIC'))" > pyproject_version
38-
# if [ $(cat pyproject_version) != "DYNAMIC" ] && [ $(cat pyproject_version) != $(cat actual_version) ]; then
39-
# echo "Version mismatch!"
40-
# exit 1
41-
# fi
42-
43-
# Windows:
44-
# runs-on: windows-latest
45-
46-
# steps:
47-
# - uses: actions/checkout@v4
48-
49-
# - name: Set up Python
50-
# uses: actions/setup-python@v5
51-
# with:
52-
# python-version: "3.10"
53-
54-
# - name: Install dependencies
55-
# run: |
56-
# python -m pip install --upgrade pip
57-
# pip install pytest pytest-cov toml flake8 black mypy
58-
# pip install -e .
59-
60-
# - name: Run tests
61-
# run: |
62-
# python -m pytest

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# renx - Advanced File Renaming Tool
22

3-
[![Python Version](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/downloads/)
3+
[![Python Version](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
44
[![PyPI version fury.io](https://badge.fury.io/py/renx.svg)](https://pypi.python.org/pypi/renx/)
5+
[![Tests Status](https://github.com/jet-logic/renx/actions/workflows/build.yml/badge.svg)](https://github.com/jet-logic/renx/actions)
56

67
`renx` is a powerful command-line utility for batch renaming files and directories with advanced pattern matching and transformation capabilities.
78

@@ -199,10 +200,10 @@ Search-Replace Operations
199200
When your downloaded files look like they were named by a cat walking on a keyboard 😉:
200201

201202
```bash
202-
python -m renx \
203-
-s '#(?:(YTS(?:.?\w+)|YIFY|GloDLS|RARBG|ExTrEmE|EZTVx.to|MeGusta))##ix' \
203+
python -m renx --act \
204+
-s '#(?:(YTS(?:.?\w+)|YIFY|GloDLS|RARBG|ExTrEmE|EZTVx.to|MeGusta|Lama))##ix' \
204205
-s '!(2160p|1080p|720p|x264|x265|HEVC|AAC|AC3)!!i' \
205-
-s '!(HDRip|BluRay|WEB-DL|DVDrip|BRrip|HDRip|DTS)!!i' \
206+
-s '!(HDRip|BluRay|WEB-DL|DVDrip|BRrip|WEBRip|HDRip|DTS)!!i' \
206207
-s '!\[(|\w+)\]!\1!' \
207208
-s '/[\._-]+/./' \
208209
-s '/\.+/ /stem' \

pyproject.toml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
requires = ["setuptools>=42", "wheel"]
33
build-backend = "setuptools.build_meta"
44

5+
[tool.setuptools.dynamic]
6+
version = {attr = "renx.__init__.__version__"}
7+
58
[project]
69
name = "renx"
7-
version = "0.0.6"
10+
dynamic = ["version"]
811
description = "Advanced file renaming tool with regex and case transformation support"
912
readme = "README.md"
1013
authors = [
@@ -16,17 +19,12 @@ classifiers = [
1619
"Intended Audience :: Developers",
1720
"Intended Audience :: System Administrators",
1821
"Programming Language :: Python :: 3",
19-
"Programming Language :: Python :: 3.7",
20-
"Programming Language :: Python :: 3.8",
21-
"Programming Language :: Python :: 3.9",
22-
"Programming Language :: Python :: 3.10",
23-
"Programming Language :: Python :: 3.11",
2422
"Operating System :: OS Independent",
2523
"Environment :: Console",
2624
"Topic :: Utilities",
2725
]
2826
keywords = ["rename", "files", "regex", "cli", "batch"]
29-
requires-python = ">=3.7"
27+
requires-python = ">=3.8"
3028
dependencies = []
3129

3230
[project.urls]
@@ -51,14 +49,9 @@ dev = [
5149
"isort>=5.0",
5250
]
5351

54-
[tool.pytest.ini_options]
55-
testpaths = ["tests"]
56-
python_files = "test_*.py"
57-
addopts = "--cov=renx --cov-report=term-missing"
58-
5952
[tool.black]
6053
line-length = 127
61-
target-version = ['py37']
54+
target-version = ['py38']
6255
include = '\.pyi?$'
6356
exclude = '''
6457
/(

renx/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.0.6"

renx/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from os.path import dirname, join
44
from os.path import splitext
55
from .findskel import FindSkel
6+
from . import __version__
67

78

89
def asciify(text: str):
@@ -116,6 +117,7 @@ def add_arguments(self, argp):
116117
argp.add_argument("--lower", action="store_true", help="to lower case")
117118
argp.add_argument("--upper", action="store_true", help="to upper case")
118119
argp.add_argument("--urlsafe", action="store_true", help="only urlsafe characters")
120+
argp.add_argument("--version", action="version", version=f"{__version__}")
119121
if not argp.description:
120122
argp.description = "Renames files matching re substitution pattern"
121123

0 commit comments

Comments
 (0)