Coder Social home page Coder Social logo

Force python 3 detection about buildh HOT 5 CLOSED

patrickfuchs avatar patrickfuchs commented on June 27, 2024
Force python 3 detection

from buildh.

Comments (5)

pierrepo avatar pierrepo commented on June 27, 2024 1

It looks like the detection of the Python version is not present in the code anymore.

In addition, by using a Python package, setup.cfg enforces Python >= 3.6

We could close this issue.

from buildh.

patrickfuchs avatar patrickfuchs commented on June 27, 2024

Done in 6bc8c68! Question to @HubLot and @pierrepo, in this line I use the Exception UserWarning. Do you think it is the most appropriate?

from buildh.

pierrepo avatar pierrepo commented on June 27, 2024

UserWarning seems OK to me.
But i'll advise to check strickly for Python >= 3.6 since f-string are a really nice feature.

from buildh.

HubLot avatar HubLot commented on June 27, 2024

Seems good to me too.
But do you have a reason to restrict to Python >= 3.7 (or even 3.6) ? 3.5 is still maintained for a year for example (https://devguide.python.org/#branchstatus)

By the way, @patrickfuchs you removed the '#' in the first line of the script so it doesn't work anymore :D :

!/usr/bin/env python3

from buildh.

patrickfuchs avatar patrickfuchs commented on June 27, 2024

Thanks guys for your answer 😄 ! For the version, it looks like 3.6 could be a good compromise, this could allow us to use f-strings indeed. Thanks also @HubLot for reporting the mistake on line 1, I was too tired yeasterday evening 😉.

from buildh.

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.