Skip to content

Commit 96a7eb2

Browse files
committed
version pumb, dependencies upgrade, publish on release instead of tag
1 parent a067829 commit 96a7eb2

7 files changed

Lines changed: 18 additions & 14 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
name: Publish to PyPI
22

33
on:
4-
push:
5-
tags:
6-
- "v*" # Only publish on version tags like v0.1.0
4+
release:
5+
types: [published]
76

87
jobs:
9-
build-and-publish:
8+
publish:
109
runs-on: ubuntu-latest
11-
1210
steps:
1311
- uses: actions/checkout@v4
1412

@@ -17,15 +15,16 @@ jobs:
1715
with:
1816
python-version: "3.x"
1917

20-
- name: Install build tools
18+
- name: Install dependencies
2119
run: |
20+
python -m pip install --upgrade pip
2221
pip install build twine
2322
2423
- name: Build package
2524
run: python -m build
2625

2726
- name: Publish to PyPI
28-
run: twine upload dist/*
2927
env:
3028
TWINE_USERNAME: __token__
3129
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
30+
run: twine upload dist/*

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
[![Python 3.12+](https://img.shields.io/badge/python-3.12+-blue.svg)](https://www.python.org/downloads/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
2-
![Alpha](https://img.shields.io/badge/Status-Alpha-red)
1+
[![PyPI version](https://img.shields.io/pypi/v/py-json-analyzer.svg)](https://pypi.org/project/py-json-analyzer/)
2+
[![Python 3.12+](https://img.shields.io/badge/python-3.12+-blue.svg)](https://www.python.org/downloads/)
3+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
34

45
# 🔍 JSON Explorer
56

@@ -30,6 +31,7 @@ requests==2.32.4
3031
rich==14.0.0
3132
setuptools==80.9.0
3233
matplotlib==3.10.3
34+
dateparser==1.2.2
3335
```
3436

3537
> 💡 On Windows, the `windows-curses` package will be installed automatically to enable terminal UI features.

json_explorer/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.3"
1+
__version__ = "0.2.0"

json_explorer/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
88
Author: MS-32154
99
10-
Version: 0.1.3
10+
Version: 0.2.0
1111
License: MIT
12-
Date: 2025-07-03
12+
Date: 2025-09-01
1313
"""
1414

1515
import argparse

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "py-json-analyzer"
7-
version = "0.1.3"
7+
version = "0.2.0"
88
description = "Analyze, visualize, and explore JSON data from files or URLs"
99
authors = [
1010
{ name="MS-32154", email="[email protected]" }
1111
]
1212
dependencies = [
13+
"dateparser",
1314
"rich",
1415
"requests",
1516
"matplotlib",

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ requests==2.32.4
33
rich==14.0.0
44
setuptools==80.9.0
55
matplotlib==3.10.3
6+
dateparser==1.2.2
67
windows-curses==2.4.1; sys_platform == "win32"

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = py-json-analyzer
3-
version = 0.1.3
3+
version = 0.2.0
44
description = Analyze, visualize, and explore JSON data
55
long_description = file: README.md
66
long_description_content_type = text/markdown
@@ -10,6 +10,7 @@ license = MIT
1010
[options]
1111
packages = find:
1212
install_requires =
13+
dateparser
1314
rich
1415
requests
1516
matplotlib

0 commit comments

Comments
 (0)