From 5c229c2cd5531ef33c83d506a75c3c4f2c7eb1b5 Mon Sep 17 00:00:00 2001 From: Esben Jannik Bjerrum Date: Fri, 12 Apr 2024 14:47:31 +0200 Subject: [PATCH] Fixed pyside2 .13 problem, and now works with python3.11 --- DEVELOPER.md | 5 +++++ rdeditor/rdEditor.py | 2 +- setup.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/DEVELOPER.md b/DEVELOPER.md index 12532b2..847b474 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -97,6 +97,11 @@ Sometimes they can be safely fixed with `ruff check --fix` and even `ruff check --fix --unsafe-fixes` but otherwise they need to be inspected and mitigated. +## Deployment to PyPi + +The github actions has been set to automatically deploy to pypi every time a new release is published. +The release will need a new tag created (incremented), otherwise PyPi will not accept the new package. + ### Development Environment Setup 1. Follow the installation steps in the INSTALL section. diff --git a/rdeditor/rdEditor.py b/rdeditor/rdEditor.py index 3b6dfbe..8578081 100644 --- a/rdeditor/rdEditor.py +++ b/rdeditor/rdEditor.py @@ -358,7 +358,7 @@ def exitFile(self): # Function to show Diaglog box with provided Title and Message def msgApp(self, title, msg): - userInfo = QMessageBox.question(self, title, msg, QMessageBox.Yes | QMessageBox.No) + userInfo = QMessageBox.question(self, title, msg, QMessageBox.Yes or QMessageBox.No) if userInfo == QMessageBox.Yes: return "Y" if userInfo == QMessageBox.No: diff --git a/setup.py b/setup.py index 162ec7b..d83d47b 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ ] }, install_requires=["PySide2", "numpy", "rdkit", "pyqtdarktheme"], - python_requires=">=3.8, <3.11", + python_requires=">=3.8", entry_points={ "console_scripts": [ "rdEditor = rdeditor.rdEditor:launch",