-
Hello Ralph, Thank you very much for developing and maintaining fangfrisch, which I want to use to replace clamav-unofficial-sigs. 🙂 I must admit, I'm not really familiar with Python, but I'm currently trying to build an rpm for openSUSE. In the requirements.txt, you write "SQLAlchemy >= 1.4.0". Does this include SQLAlchemy 2.0, or should I stick with a version 1.4.x? I'm asking because, coming from the Java world, I know that with OR mappers, a major update often isn't straightforward, and you might have set the requirement at a time when v2 wasn't even released yet. Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hello Gregor. Short answer: SQLAlachemy 2 is fine. If you check the Actions section of this repository, you will find that the unit tests are run for each Python version from 3.7 to 3.12, and that the dependencies installed during the build's test phase include SQLAlchemy 2 (see here for example). Also, at the time of writing this, my own production servers use SQLAlchemy 2.0.28, and they have been using various versions 2.0.x over the years following Gentoo Linux's history of the dev-python/sqlalchemy package. I never had any problems. Speaking of, should you encounter Python-related problems creating the openSUSE package (which would be a welcome addition, thank you for considering it), please let me know. Perhaps I can help. |
Beta Was this translation helpful? Give feedback.
-
I am unfamiliar with openSUSE packing, so please take my comments with a grain of salt. At first glance, you seem to have added some complexity which is, or at least could be, unnecessary. For example, checking if the configuration file exists is something that Fangfrisch does anyway. Other aspects of your wrapper script could be handled by All this is meant as feedback, not criticism. I am grateful for your work. |
Beta Was this translation helpful? Give feedback.
-
Like I said, I don't know about openSUSE packaging specifics, while you on the other hand have obviously thought carefully about this package. However, my point about you not needing to worry about a potentially missing configuration file stands. 😉 Fangfrisch is quite vocal when unable to parse the config file. As for DB initialisation-on-demand: That would be nice, but also tricky, because it would require me interfering with SQLAlchemy. I don't want to meddle with the database abstraction layer, as you can surely understand. |
Beta Was this translation helpful? Give feedback.
Hello Gregor. Short answer: SQLAlachemy 2 is fine.
If you check the Actions section of this repository, you will find that the unit tests are run for each Python version from 3.7 to 3.12, and that the dependencies installed during the build's test phase include SQLAlchemy 2 (see here for example). Also, at the time of writing this, my own production servers use SQLAlchemy 2.0.28, and they have been using various versions 2.0.x over the years following Gentoo Linux's history of the dev-python/sqlalchemy package. I never had any problems.
Speaking of, should you encounter Python-related problems creating the openSUSE package (which would be a welcome addition, thank you for considering it),…