Skip to content

Commit

Permalink
1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MacHu-GWU committed Dec 20, 2023
1 parent 0a69a91 commit 9400763
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. image:: https://readthedocs.org/projects/pathlib_mate/badge/?version=latest
:target: https://pathlib_mate.readthedocs.io/?badge=latest
:target: https://pathlib-mate.readthedocs.io/?badge=latest
:alt: Documentation Status

.. image:: https://github.com/MacHu-GWU/pathlib_mate-project/workflows/CI/badge.svg
Expand Down Expand Up @@ -28,13 +28,13 @@


.. image:: https://img.shields.io/badge/Link-Document-blue.svg
:target: https://pathlib_mate.readthedocs.io/index.html
:target: https://pathlib-mate.readthedocs.io/index.html

.. image:: https://img.shields.io/badge/Link-API-blue.svg
:target: https://pathlib_mate.readthedocs.io/py-modindex.html
:target: https://pathlib-mate.readthedocs.io/py-modindex.html

.. image:: https://img.shields.io/badge/Link-Source_Code-blue.svg
:target: https://pathlib_mate.readthedocs.io/py-modindex.html
:target: https://pathlib-mate.readthedocs.io/py-modindex.html

.. image:: https://img.shields.io/badge/Link-Install-blue.svg
:target: `install`_
Expand Down
8 changes: 8 additions & 0 deletions pathlib_mate/mate_tool_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@ def execute_pyfile(self, py_exe=None): # pragma: no cover
将目录下的所有 Python 文件作为主脚本用当前解释器运行。
"""
warnings.warn(
"this feature will be deprecated soon! this is a historical feature",
DeprecationWarning,
)
import subprocess

self.assert_is_dir_and_exists()
Expand Down Expand Up @@ -384,6 +388,10 @@ def autopep8(self, **kwargs): # pragma: no cover
将目录下的所有 Python 文件用 pep8 风格格式化. 增加其可读性和规范性.
"""
warnings.warn(
"this feature will be deprecated soon! use subprocess + cli instead",
DeprecationWarning,
)
try:
import autopep8
except ImportError as e:
Expand Down
5 changes: 3 additions & 2 deletions release-history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ x.x.x (TODO)
**Miscellaneous**


1.3.1 (TODO)
1.3.1 (2023-12-19)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**🚨 Breaking Change**

Expand All @@ -25,7 +25,8 @@ x.x.x (TODO)

**Minor Improvements**

**Bugfixes**
- Add more tests.
- Now ``pathlib_mate`` has zero dependencies.

**Miscellaneous**

Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
]
"""
Expand Down Expand Up @@ -182,6 +183,7 @@ def read_requirements_file(path):
classifiers=CLASSIFIERS,
platforms=PLATFORMS,
license=LICENSE,
python_requires=">=3.7",
install_requires=REQUIRES,
extras_require=EXTRA_REQUIRE,
)
Expand Down Expand Up @@ -238,6 +240,7 @@ def read_requirements_file(path):
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
]
"""

0 comments on commit 9400763

Please sign in to comment.