Skip to content

Commit f7ad9e1

Browse files
committed
feat: bump version 1.0.1
upload package to pypi
1 parent e6d081e commit f7ad9e1

File tree

5 files changed

+25
-56
lines changed

5 files changed

+25
-56
lines changed

CHANGELOG.md

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +0,0 @@
1-
# Changelog
2-
3-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4-
5-
## [1.0.0](https://gitlab.sz.sensetime.com/its-engineering/toolkit/jsonpath-python/compare/v0.0.3...v1.0.0) (2021-01-04)
6-
7-
8-
### Features
9-
10-
* bump version 1.0.0 ([292daff](https://gitlab.sz.sensetime.com/its-engineering/toolkit/jsonpath-python/commit/292daff3bfcbde3715d460dcdb9fe6f53921a4b8))
11-
* support operator: field-extractor ([4645c33](https://gitlab.sz.sensetime.com/its-engineering/toolkit/jsonpath-python/commit/4645c33a54dda9705c3422c4f18bbfc7d0c9c986))
12-
13-
14-
### Bug Fixes
15-
16-
* fix unnecessary-comprehension ([77ad2db](https://gitlab.sz.sensetime.com/its-engineering/toolkit/jsonpath-python/commit/77ad2dbcabd11ac66708b5b9aea226700170fe7f))
17-
18-
### [0.0.3](https://gitlab.sz.sensetime.com/its-engineering/toolkit/jsonpath-python/compare/v0.0.2...v0.0.3) (2021-01-04)
19-
20-
21-
### Features
22-
23-
* add output mode: PATH ([3e2bcda](https://gitlab.sz.sensetime.com/its-engineering/toolkit/jsonpath-python/commit/3e2bcda7fbbd7636786bd28549253a40bb0d5a28))
24-
* bump version 0.0.3 ([14da85e](https://gitlab.sz.sensetime.com/its-engineering/toolkit/jsonpath-python/commit/14da85e1bda03dd403fd32c71e53dbafac16ec5d))
25-
26-
27-
### Bug Fixes
28-
29-
* fix path mode & add unit tests ([18059d7](https://gitlab.sz.sensetime.com/its-engineering/toolkit/jsonpath-python/commit/18059d70e5f808b94b6d381531907b9a8039a111))
30-
31-
### [0.0.2](https://gitlab.sz.sensetime.com/its-engineering/toolkit/jsonpath-python/compare/v0.0.1...v0.0.2) (2021-01-04)
32-
33-
34-
### Features
35-
36-
* support sorting dict ([4922c94](https://gitlab.sz.sensetime.com/its-engineering/toolkit/jsonpath-python/commit/4922c949bf5d74d878b131e2ed70b7d476b3cce0))
37-
38-
### 0.0.1 (2021-01-04)
39-
40-
41-
### Features
42-
43-
* add jsonpath ([c3fc7b0](https://gitlab.sz.sensetime.com/its-engineering/toolkit/jsonpath-python/commit/c3fc7b0c4620327d33a2f0bcfe7b2befcbdbd9ff))

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@ test:
1414
pytest test -vv -s
1515

1616
clean:
17-
rm -rf $(PYCACHE_DIR) ${PYTEST_DIR}
17+
rm -rf $(PYCACHE_DIR) ${PYTEST_DIR} dist jsonpath.egg-info
18+
19+
package: clean
20+
python3 setup.py sdist bdist_wheel
21+
22+
upload: package
23+
twine upload dist/*

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# jsonpath-python
1414

15-
A more powerful JSONPath implementations in modern python.
15+
A more powerful JSONPath implementation in modern python.
1616

1717
## Features
1818

jsonpath/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
Author : zhangxianbing
33
Date : 2020-12-27 09:22:14
44
LastEditors : zhangxianbing
5-
LastEditTime : 2021-01-04 15:36:19
5+
LastEditTime : 2021-01-04 16:30:17
66
Description : JSONPath
77
"""
8-
__version__ = "1.0.0"
8+
__version__ = "1.0.1"
99
__author__ = "zhangxianbing"
1010

1111
import json
@@ -261,6 +261,8 @@ def _trace(self, obj, i: int, path):
261261
else:
262262
raise ExprSyntaxError("field-extractor must acting on list or dict")
263263

264+
return
265+
264266

265267
if __name__ == "__main__":
266268
with open("test/data/2.json", "rb") as f:

setup.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
"""
2-
Author : zhangxianbing1
3-
Date : 2020-12-27 11:32:20
4-
LastEditors : zhangxianbing1
5-
LastEditTime : 2020-12-27 12:42:18
6-
Description :
7-
"""
81
from setuptools import setup, find_packages
92
from jsonpath import __version__, __author__
103

4+
with open("README.md", "r", encoding="utf-8") as fh:
5+
long_description = fh.read()
6+
117
setup(
12-
name="jsonpath",
8+
name="jsonpath-python",
139
version=__version__,
1410
author=__author__,
11+
description="A more powerful JSONPath implementation in modern python",
12+
long_description=long_description,
13+
long_description_content_type="text/markdown",
14+
url="https://github.com/zhangxianbing/jsonpath-python",
1515
packages=find_packages(),
16+
classifiers=[
17+
"Programming Language :: Python :: 3.6",
18+
"License :: OSI Approved :: MIT License",
19+
"Operating System :: OS Independent",
20+
],
1621
python_requires=">=3.6",
17-
zip_safe=False,
1822
)

0 commit comments

Comments
 (0)