Skip to content

Commit 8013b2f

Browse files
authored
Version 3.1.0
* Maintenance is continued.
1 parent bbe8445 commit 8013b2f

File tree

6 files changed

+40
-34
lines changed

6 files changed

+40
-34
lines changed

LICENSE

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
MIT License
2-
3-
Copyright (c) 2021 Omozawa SUENO
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
1+
MIT License
2+
3+
Copyright (c) 2021 Nianze TAO
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# pyPDFeditor-GUI
22

3+
[![PyPI](https://img.shields.io/pypi/v/pypdfeditor-gui?color=green)](https://pypi.org/project/pypdfeditor-gui/)
34
![pylint](https://github.com/Augus1999/pyPDFeditor-GUI/actions/workflows/pylint.yml/badge.svg)
45
![black](https://img.shields.io/badge/code%20style-black-black)
56
[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://stand-with-ukraine.pp.ua)
67

7-
**IMPORTANT: Development and maintenance of this project have been stopped. The package `pyPDFeditor-GUI` has been deleted from PyPI.**
8+
**IMPORTANT: Development of this project has been stopped but maintenance will be continued.**
89

910
## Features
1011

@@ -40,11 +41,17 @@ Python>=3.10
4041

4142
```text
4243
PyQt6>=6.7.0
43-
PyMuPDF>=1.26.5
44+
PyMuPDF>=1.26.5,<1.28.0
4445
```
4546

4647
## Install & Run
4748

49+
### install from PyPI
50+
51+
```bash
52+
$ pip install pypdfeditor-gui
53+
```
54+
4855
### install from source
4956

5057
you will need git, `setuptools` and `wheel` installed

pypdfeditor_core/__init__.py

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

1616
__system__ = platform.system()
1717
__author__ = "Nianze A. TAO (Omozawa SUENO)"
18-
__version__ = "3.0.12"
18+
__version__ = "3.1.0"
1919
__all__ = ["main", "reset", "remove"]
2020

2121

pypdfeditor_core/application.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -766,10 +766,13 @@ def remove() -> None:
766766
cmd = f"{sys.executable} -m "
767767
else:
768768
cmd = ""
769-
sp.call(
770-
f"{cmd}pip uninstall pypdfeditor-gui --break-system-packages", shell=True
771-
)
772-
sp.call(f"{cmd}pip uninstall pypdfeditor-gui", shell=True)
769+
try:
770+
sp.run(f"{cmd}pip uninstall pypdfeditor-gui", shell=True, check=True)
771+
except sp.CalledProcessError:
772+
sp.call(
773+
f"{cmd}pip uninstall pypdfeditor-gui --break-system-packages",
774+
shell=True,
775+
)
773776
if os.path.exists(app_home):
774777
shutil.rmtree(app_home)
775778
print("process finished")

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
PyMuPDF>=1.26.5
1+
PyMuPDF>=1.26.5,<1.28.0
22
PyQt6>=6.7.0

setup.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
package_dir={"pypdfeditor_core": "pypdfeditor_core"},
4242
license="MIT",
4343
python_requires=">=3.10",
44-
install_requires=["PyMuPDF>=1.26.5", "PyQt6>=6.7.0"],
44+
install_requires=["PyMuPDF>=1.26.5,<1.28.0", "PyQt6>=6.7.0"],
4545
url="https://github.com/Augus1999/pyPDFeditor-GUI/",
4646
project_urls={"Source": "https://github.com/Augus1999/pyPDFeditor-GUI"},
4747
include_package_data=True,
@@ -56,10 +56,6 @@
5656
"Operating System :: Microsoft :: Windows",
5757
"Operating System :: POSIX :: Linux",
5858
"Programming Language :: Python :: 3",
59-
"Programming Language :: Python :: 3.10",
60-
"Programming Language :: Python :: 3.11",
61-
"Programming Language :: Python :: 3.12",
62-
"Programming Language :: Python :: 3.13",
6359
"Topic :: Office/Business",
6460
],
6561
entry_points={"console_scripts": ["pdfeditor=pypdfeditor_core:main"]},

0 commit comments

Comments
 (0)