Comments (5)
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.
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.
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.
@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.
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)
- Support NPM verison ">=" following by a whitespace HOT 9
- `SimpleSpec` with Caret and Prerelease Wrong Behavior HOT 5
- Incorrect compare version with `partial=True` in Python 2 HOT 2
- unstable sort in case where versions only differ in their build HOT 12
- Add topics (keywords) in the About section of the repository page HOT 2
- Comparison with suffixes is just alphabetical HOT 1
- Conda Package HOT 5
- Constraints not properly evaluated for prerelease versions HOT 2
- Check if two specs overlap/intersect HOT 4
- Is there a regex for validating strings containing SimpleSpec? HOT 2
- Truncate doesn't always return new object HOT 1
- Official support for 3.11 please HOT 3
- semantic_version.match emits a PendingDeprecationWarning HOT 1
- Support For Checking Intersection of SimpleSpec HOT 1
- RFE: is it possible to start making github releases?🤔 HOT 2
- add mypy support (annotations) HOT 1
- leading zeroes can fail to be coerced HOT 1
- Equivalent of coerce for SimpleSpec ?
- Django model fields do not raise the correct error
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 python-semanticversion.