Comments (9)
Thank you @nougad for the initiative and @ThomasWaldmann and @elnappo for the review <3 was looking forward to this but was too novice with django myself ...
from nsupdate.info.
Thanks for working on upgrading the stuff, that would be a really good contribution if you could make a PR from that.
I have looked through the changes, some comments:
- I don't like docker much, but if it helps with testing this locally, it might be worthwhile to add it to the workflow. I did not understand precisely why you needed to add it though.
- automated dependency upgrades by a bot: is that useful? usually that stuff will need review and testing (sometimes manual testing, like when updating fonts, css, ...) and sometimes changes to the src a bot can not provide, so what is the point?
- pipfile - i don't use that yet, what is the advantage? what i've seen from your changesets, you now need to edit requirements at one more place than before.
- python-build: didn't use that yet either, what is the point?
- getting rid of all python2 stuff: sure, of course.
- testing: should be (also) done on minimum requirement of the project, not (only) with py311
What's especially interesting for me is whether / how you tested the upgrade from the previous code / previous databases (sqlite3).
On https://nsupdate.info/
there are quite a lot of users, so upgrading from the current database / current code to the new one should not cause too big problems.
from nsupdate.info.
- I don't like docker either. But without it it's really hard to run the tests since the tests want to manage a dns server on 127.0.0.1:53 which needs to be configured correctly. Docker is still not great because I could not get all tests to run successfully, but at least it allows me to run some of the tests without relying on travis. I limited the docker usage to a single commit. If you don't like it exclude it when merging.
- I think updating all dependencies every week and automatically running all tests is huge gain. I don't want to run any project without it anymore. But my renovate setup is special and I will exclude it from the PR. Nevertheless I would suggest you to give github's dependabot a try.
requirements.txt
does not track transitive dependencies. Pipenv helps with this and also provides some nice wrapper so you don't need to fiddle with virtualenv. I include the pipenv in the setup but I don't want to force my tools on you so if you don't like it remove it afterwards. There is also a mode to keep both (Pipenv for development and requirements.txt for deployments) by generating requirements.txt out of the Pipfile (mentioned in the DEVELOPMENT.md file).pyproject-build
is packaging the wheel files for publish with twine to the python package registry. If you have other tooling that's fine but since nothing was documented I used what was available.- I did not touch the travis part. I assume it still works but I can't verify it. The python version should be only set in Pipfile for local tooling and Docker for local testing. Both should be independent of the CI/CD setup.
- Other than the local testing I only run with postgresql and had to add one database adjustment: https://scm.indeedgeek.de/flo/nsupdate.info/commit/5593eec2d8660b6be237db40c9af57216f5bc7f3
I created the PR at #505
from nsupdate.info.
- ok
- yes, we can add that in a future PR (if it does not want too much permissions, i don't like to give repo r/w to 3rd parties)
- ok
- we did not have wheels yet. why would we need wheels now? iirc there is nothing needing a compiler here, nothing "binary".
- travis CI is likely broken / inactive since they long. i got rid of it for most of my other projects and migrated to github actions.
- ok. looks fine. having it practically tested on postgresql and sqlite would be great before we try that on the production system.
Thanks for the PR!
from nsupdate.info.
@elnappo could you review this? -> #505
from nsupdate.info.
Half of that upgrade is already live via #516.
from nsupdate.info.
Other half is WIP, see #517.
from nsupdate.info.
Try 2: see #529
from nsupdate.info.
OK, Django 4.2.x is life at the production site, so guess we can close this.
from nsupdate.info.
Related Issues (20)
- CSRF verification failure HOT 3
- Google OAuth Login is failing HOT 3
- Login or Registration does not work. HOT 8
- google and other Oauth not allowing login HOT 1
- Canβt login with google-oauth2 anymore HOT 1
- Dns
- "bad IP received" with Speedport Smart 4 HOT 3
- Login doesn't work HOT 2
- resolver.query deprecated
- rev_lookup(1.1.1.1) fails HOT 3
- readme coverage badge points to coveralls HOT 1
- check proxy ip processing
- django admin layout defect HOT 3
- [Errno 0] Resolver Error 0 (no error) HOT 2
- crash due to nameserver_ip key missing in cleaned_data HOT 2
- .readthedocs.yaml is required soon HOT 1
- django: unique_together / index_together is deprecated
- migrate setup.* to pyproject.toml
- Buggy config for ddclient >=3.11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nsupdate.info.