Git Product home page Git Product logo

Comments (4)

zyv avatar zyv commented on May 22, 2024

@paxcodes that’s correct, thank you for the heads up. We have historically committed runtime.txt into our repos, that’s why we are not having this problem.

However, now that we have written a buildpack, we could just export runtime.txt in the buildpack and agree internally, that we are going to specify minors in pyproject.toml.

@marns93 , @mm-matthias what do you think?

from python-poetry-buildpack.

mm-matthias avatar mm-matthias commented on May 22, 2024

@zyv There are several options:

  1. Always write runtime.txt in the buildpack, possibly overwriting an existing runtime.txt. Requires pyproject.toml to contain the minor version number.
  2. Always write runtime.txt in the buildpack. Raise an error if there is already an existing runtime.txt. Requires pyproject.toml to contain the minor version number.
  3. If there is an existing runtime.txt, do not overwrite it in the generator. Optionally check if the version number in pyproject.toml matches the version in runtime.txt.

For our own purposes I'd go with option 2) as this makes sure the heroku and pyproject.toml versions of python always match.

What are your preferences @paxcodes ?

from python-poetry-buildpack.

paxcodes avatar paxcodes commented on May 22, 2024

from python-poetry-buildpack.

zyv avatar zyv commented on May 22, 2024

Let's go for raising an exception, otherwise we might end up with discrepancies we'll find out about only too late @mm-matthias & @marns93.

from python-poetry-buildpack.

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.