Coder Social home page Coder Social logo

Comments (5)

plannigan avatar plannigan commented on July 17, 2024 1

I started playing around with this. The existence of partial make things more complicated, but likely still doable. Since it and a number of other things are already marked for removal, I think it would be best work towards that new major version, then include type hints. The decision to drop unsupported older python versions, as part of the new major version, would have an effect on how the hints we implemented.

from python-semanticversion.

rbarrois avatar rbarrois commented on July 17, 2024

Indeed, that's a good idea! Although the library currently provides support for old Python version — it's a semantic versioning library after all 😉

I don't have lots of time right now (either for coding or reviewing), but hope to be able to look at this over the next few weeks ;)

from python-semanticversion.

q-wertz avatar q-wertz commented on July 17, 2024

Nice to hear :)

You want to keep the python 2.7 support?

Maybe one could use PEP 484 or don't add the type hints in the code but generate a stub file.

from python-semanticversion.

rbarrois avatar rbarrois commented on July 17, 2024

@plannigan That's a great approach indeed, I totally support it. Let me know if you have some code to use as a basis, otherwise I'll follow your recommendation for version 3.0 :)

from python-semanticversion.

plannigan avatar plannigan commented on July 17, 2024

Actually, I do. Since I didn't get a response, I made an independent implementation in the tool I was using this library in. It isn't a full implementation because I hyper-bump-it doesn't need the reversion range specification, but I'm happy with how it ended up.

I can put it up as a PR, but I'm not sure how much work it would be to make the rest of the code base compatible with the API changes.

from python-semanticversion.

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.