Giter VIP home page Giter VIP logo

Comments (4)

mattupstate avatar mattupstate commented on August 20, 2024

@Diaoul I like to treat me projects as Python packages and install them with pip. This was you can take advantage of the features available with setuptools. I've even gone so far as to setup devpi to run my own private Python package index.

from overholt.

Diaoul avatar Diaoul commented on August 20, 2024

That changes the layout of the project then, doesn't it?

For example, the alembic folder must be moved under the overolt package and to leverage on setup.py test you also need to move the tests package too right?

Do you use the console_scripts entry point in setuptools to run the manage.py from the command line?

from overholt.

Diaoul avatar Diaoul commented on August 20, 2024

@mattupstate: sorry for being pushy but I'd like to know how you do it because I think I'm doing it wrong. Thanks 🍰

from overholt.

mattupstate avatar mattupstate commented on August 20, 2024

Generally, I don't make migrations part of the package because migrating a database isn't always necessary when deploying and sometimes requires maintenance specific downtime and DBA level access control. However, in some cases I have made migrations part of the package and an entry point into Alembic to upgrade the database. There is a certain level of Python zen I appreciate in making the migrations as part of the package. But it isn't always necessary to make the package that "complete". Sometimes its just a matter of taste. Other times a matter of user experience.

from overholt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.