Giter Site home page Giter Site logo

Comments (6)

hugorodgerbrown avatar hugorodgerbrown commented on August 16, 2024

Good question - the versions are parsed by semver, so it may be outside our
control. I'll check later when I'm back home.

On Wed, 27 Apr 2016, 04:39 HomemBravo, [email protected] wrote:

First of all, thank you very much for the previous fix 👍

We I tried with my own project packages there was another error that I
would like to share:

ValueError at /package_monitor/reload/
Invalid leading zero in minor: '0.04.17'

The version is related to Unicode==0.04.17

Is it something related to semantic? If so, warn me if I am on the right
repo.

Kind regards,

Andre Carpinteiro


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#10

from django-package-monitor.

hugorodgerbrown avatar hugorodgerbrown commented on August 16, 2024

@HomemBravo I've taken a look - and yes, it is semantic-version that is raising the error. However, I couldn't install or find the package Unicode to test with. Is this a real package?

from django-package-monitor.

HomemBravo avatar HomemBravo commented on August 16, 2024

@hugorodgerbrown
Terrible sorry for the confusion:

https://pypi.python.org/pypi/Unidecode

from django-package-monitor.

hugorodgerbrown avatar hugorodgerbrown commented on August 16, 2024

The line that blows up is in the semantic_version project, here -
https://github.com/rbarrois/python-semanticversion/blob/master/semantic_version/base.py#L205

if _has_leading_zero(minor):
    raise ValueError("Invalid leading zero in minor: %r" % version_string)

So it looks like this is explicitly forbidden - which means it's
unlikely to be amended.

The workaround within this project is to handle unparseable versions.

from django-package-monitor.

hugorodgerbrown avatar hugorodgerbrown commented on August 16, 2024

@HomemBravo I am closing this issue, and have opened a new issue (#11) around better handling of errors.

from django-package-monitor.

hugorodgerbrown avatar hugorodgerbrown commented on August 16, 2024

@HomemBravo this has been fixed (see #12 ) and uploaded to PyPI as v0.3.5

from django-package-monitor.

Related Issues (14)

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.