Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Semver and prerelease
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  18 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
rdunklau  
View profile  
 More options Oct 10 2012, 5:08 am
From: rdunklau <rdunk...@gmail.com>
Date: Wed, 10 Oct 2012 02:08:34 -0700 (PDT)
Local: Wed, Oct 10 2012 5:08 am
Subject: Semver and prerelease

Hello.

I'd like to upload a distribution named 1.0.0-beta for my extension
Multicorn. However, it is rejected for not being a valid semver version.

The exact error message:

The multicorn-1.0.0-beta/META.json file does not adhere to the PGXN Meta
Specification <http://pgxn.org/spec/>.
Errors:
• Field /version: "1.0.0-beta" is not a valid semantic version [Spec v1.0.0]
• Field /provides/multicorn/version: "1.0.0-beta" is not a valid semantic
version [Spec v1.0.0]

Looking at http://semver.org/spec/v1.0.0.html, it looks perfectly valid to
me. Did I miss something?

I noticed that you discussed the issue back in December 2011, and I
wondered what you finally settled for.

--
Ronan Dunklau


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniele Varrazzo  
View profile  
 More options Oct 10 2012, 6:31 am
From: Daniele Varrazzo <daniele.varra...@gmail.com>
Date: Wed, 10 Oct 2012 11:30:46 +0100
Local: Wed, Oct 10 2012 6:30 am
Subject: Re: Semver and prerelease

On Wed, Oct 10, 2012 at 10:08 AM, rdunklau <rdunk...@gmail.com> wrote:
> I'd like to upload a distribution named 1.0.0-beta for my extension
> Multicorn. However, it is rejected for not being a valid semver version.

> The exact error message:

> The multicorn-1.0.0-beta/META.json file does not adhere to the PGXN Meta
> Specification.
> Errors:
> • Field /version: "1.0.0-beta" is not a valid semantic version [Spec v1.0.0]
> • Field /provides/multicorn/version: "1.0.0-beta" is not a valid semantic
> version [Spec v1.0.0]

> Looking at http://semver.org/spec/v1.0.0.html, it looks perfectly valid to
> me. Did I miss something?

It looks valid to me, and my Python implementation for pgxn client
fails on it as well. I've implemented my version on David's semver
0.2.1. Seems we don't like the dash before the trailing part:
"1.0.0beta" is what expected.

> I noticed that you discussed the issue back in December 2011, and I wondered
> what you finally settled for.

I think it's an error on our side to advertise we adhere to semver: it
seems a "standard" too much tied to a single person's mood. I'd say we
should write down in the specs the pattern we expect without referring
to semver (if not in a "historical note", citing it was a preliminary
version).

-- Daniele


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Abbate  
View profile  
 More options Oct 10 2012, 8:15 am
From: Joe Abbate <j...@freedomcircle.com>
Date: Wed, 10 Oct 2012 08:15:03 -0400
Local: Wed, Oct 10 2012 8:15 am
Subject: Re: Semver and prerelease
On 10/10/12 06:30, Daniele Varrazzo wrote:

> On Wed, Oct 10, 2012 at 10:08 AM, rdunklau <rdunk...@gmail.com> wrote:
>> Looking at http://semver.org/spec/v1.0.0.html, it looks perfectly valid to
>> me. Did I miss something?

> It looks valid to me, and my Python implementation for pgxn client
> fails on it as well. I've implemented my version on David's semver
> 0.2.1. Seems we don't like the dash before the trailing part:
> "1.0.0beta" is what expected.

Python's PEP 386 [*] also doesn't expect the dash and considers
"1.0.0-beta" as invalid, so I wouldn't say that semver is "too much tied
to a single person's mood."

Joe

* http://www.python.org/dev/peps/pep-0386/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniele Varrazzo  
View profile  
 More options Oct 10 2012, 8:30 am
From: Daniele Varrazzo <daniele.varra...@gmail.com>
Date: Wed, 10 Oct 2012 13:30:10 +0100
Local: Wed, Oct 10 2012 8:30 am
Subject: Re: Semver and prerelease

On Wed, Oct 10, 2012 at 1:15 PM, Joe Abbate <j...@freedomcircle.com> wrote:
> On 10/10/12 06:30, Daniele Varrazzo wrote:
>> On Wed, Oct 10, 2012 at 10:08 AM, rdunklau <rdunk...@gmail.com> wrote:
>>> Looking at http://semver.org/spec/v1.0.0.html, it looks perfectly valid to
>>> me. Did I miss something?

>> It looks valid to me, and my Python implementation for pgxn client
>> fails on it as well. I've implemented my version on David's semver
>> 0.2.1. Seems we don't like the dash before the trailing part:
>> "1.0.0beta" is what expected.

> Python's PEP 386 [*] also doesn't expect the dash and considers
> "1.0.0-beta" as invalid, so I wouldn't say that semver is "too much tied
> to a single person's mood."

No, the point is not whether or not he fancies a dash, a plus, a tilde
or a heart. I couldn't care less (actually I do, and I do prefer the
dash). The point is that the supposed spec has changed in time,
without warning and, amusingly, without respecting its own version and
its own semantic expectations. PGXN semvers take no dash because by
that time that was the format.

https://github.com/mojombo/semver.org/issues/49

-- Daniele


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniele Varrazzo  
View profile  
 More options Oct 10 2012, 8:44 am
From: Daniele Varrazzo <daniele.varra...@gmail.com>
Date: Wed, 10 Oct 2012 13:44:14 +0100
Local: Wed, Oct 10 2012 8:44 am
Subject: Re: Semver and prerelease

We already have a few packages following our no-dash version scheme
(I've had pgmp 1.0.0b3 and similar). But I see none in the recent
history.

I would have said to stick to our scheme dropping the reference to the
semver, but I'd hear from David before. If the no-dash packages are
only a few and not important (mine were only testing ones that have
been superseded) we could purge pgxn from them and stick to e.g.
semver 1.0.0 as it is now known.

I would also tell you: don't bother with the issue and release
1.0.0beta. If we'll have a purge we can wait for you to release 1.0.0
before that.

-- Daniele


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Abbate  
View profile  
 More options Oct 10 2012, 8:46 am
From: Joe Abbate <j...@freedomcircle.com>
Date: Wed, 10 Oct 2012 08:46:58 -0400
Local: Wed, Oct 10 2012 8:46 am
Subject: Re: Semver and prerelease
On 10/10/12 08:30, Daniele Varrazzo wrote:

> No, the point is not whether or not he fancies a dash, a plus, a tilde
> or a heart. I couldn't care less (actually I do, and I do prefer the
> dash). The point is that the supposed spec has changed in time,
> without warning and, amusingly, without respecting its own version and
> its own semantic expectations. PGXN semvers take no dash because by
> that time that was the format.

OK Daniele, but my point was that, even if semver has changed, the
policy of not using a dash has been validated (if you'll excuse the pun)
by PEP 386.  If Ronan wants to submit multicorn 1.0.0-beta to PyPI, I
think it will be rejected (I am aware that submitting betas to PyPI is
currently frowned upon).

Joe


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniele Varrazzo  
View profile  
 More options Oct 10 2012, 9:00 am
From: Daniele Varrazzo <daniele.varra...@gmail.com>
Date: Wed, 10 Oct 2012 13:59:56 +0100
Local: Wed, Oct 10 2012 8:59 am
Subject: Re: Semver and prerelease

On Wed, Oct 10, 2012 at 1:46 PM, Joe Abbate <j...@freedomcircle.com> wrote:
> On 10/10/12 08:30, Daniele Varrazzo wrote:
>> No, the point is not whether or not he fancies a dash, a plus, a tilde
>> or a heart. I couldn't care less (actually I do, and I do prefer the
>> dash). The point is that the supposed spec has changed in time,
>> without warning and, amusingly, without respecting its own version and
>> its own semantic expectations. PGXN semvers take no dash because by
>> that time that was the format.

> OK Daniele, but my point was that, even if semver has changed, the
> policy of not using a dash has been validated (if you'll excuse the pun)
> by PEP 386.  If Ronan wants to submit multicorn 1.0.0-beta to PyPI, I
> think it will be rejected (I am aware that submitting betas to PyPI is
> currently frowned upon).

AFAIK PEP 386 is not enforced by PyPI, and anyway it's not a semantic
versioning scheme: it only defines a syntax and an ordering. Releasing
beta on PyPI is frown upon exactly because being non-semantic you
can't ask a client "install the most recent stable": you get by
default the greatest version available.

PEP 386 and semver are different not only in syntax but in semantics
as well, I wouldn't use one to draw conclusions on the other. I'm fine
if we stay dashless: we only have the problem that our versioning
scheme refers to semver 1.0.0 and is instead this:
<https://github.com/mojombo/semver.org/blob/adb9c3af2508b3cc129baac217...>.

-- Daniele


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniele Varrazzo  
View profile  
 More options Oct 10 2012, 9:03 am
From: Daniele Varrazzo <daniele.varra...@gmail.com>
Date: Wed, 10 Oct 2012 14:03:16 +0100
Local: Wed, Oct 10 2012 9:03 am
Subject: Re: Semver and prerelease

Not a known one. I think posting your META.json would help David
debugging the issue.

-- Daniele


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ronan Dunklau  
View profile  
 More options Oct 10 2012, 9:15 am
From: Ronan Dunklau <rdunk...@gmail.com>
Date: Wed, 10 Oct 2012 15:15:39 +0200
Local: Wed, Oct 10 2012 9:15 am
Subject: Re: Semver and prerelease

Sorry, I messed with my various email addresses, please forgive me for the
"double post".

I've attached the META.json.

--
Ronan

Le mercredi 10 octobre 2012 14:03:16 Daniele Varrazzo a écrit :

  META.json
1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniele Varrazzo  
View profile  
 More options Oct 10 2012, 9:30 am
From: Daniele Varrazzo <daniele.varra...@gmail.com>
Date: Wed, 10 Oct 2012 14:30:00 +0100
Subject: Re: Semver and prerelease

On Wed, Oct 10, 2012 at 2:15 PM, Ronan Dunklau <rdunk...@gmail.com> wrote:
> Sorry, I messed with my various email addresses, please forgive me for the
> "double post".

> I've attached the META.json.

Waiting for David, have you tried installing your extension using pgxn
client from a local dir or zip? It may highlight you some problem with
the structure of the META file.

-- Daniele


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ronan Dunklau  
View profile  
 More options Oct 10 2012, 9:35 am
From: Ronan Dunklau <rdunk...@gmail.com>
Date: Wed, 10 Oct 2012 15:35:41 +0200
Local: Wed, Oct 10 2012 9:35 am
Subject: Re: Semver and prerelease
I've just tested it with:

    sudo pgxn-client install ./multicorn-1.0.0beta.zip

and it works as expected.

Le mercredi 10 octobre 2012 14:30:00 Daniele Varrazzo a écrit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniele Varrazzo  
View profile  
 More options Oct 10 2012, 9:41 am
From: Daniele Varrazzo <daniele.varra...@gmail.com>
Date: Wed, 10 Oct 2012 14:41:28 +0100
Local: Wed, Oct 10 2012 9:41 am
Subject: Re: Semver and prerelease

On Wed, Oct 10, 2012 at 2:35 PM, Ronan Dunklau <rdunk...@gmail.com> wrote:
> I've just tested it with:

>     sudo pgxn-client install ./multicorn-1.0.0beta.zip

> and it works as expected.

Ok, the ball is in David's field then :)

-- Daniele


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David E. Wheeler  
View profile  
 More options Oct 12 2012, 12:40 pm
From: "David E. Wheeler" <da...@justatheory.com>
Date: Fri, 12 Oct 2012 09:40:44 -0700
Local: Fri, Oct 12 2012 12:40 pm
Subject: Re: Semver and prerelease
On Oct 10, 2012, at 5:44 AM, Daniele Varrazzo <daniele.varra...@gmail.com> wrote:

> I would have said to stick to our scheme dropping the reference to the
> semver, but I'd hear from David before. If the no-dash packages are
> only a few and not important (mine were only testing ones that have
> been superseded) we could purge pgxn from them and stick to e.g.
> semver 1.0.0 as it is now known.

At some point, I would like to update our semver parsers (Perl, Python, and PostgreSQL C extension) as follows:

* For v1-compatible semvers, the hyphen would be optional
* For v2-only semvers, the hyphen would be required

Alas, I do not have the time to work on this at the moment. If anyone else does, the code for the Perl and Pg semvers are here:

  https://github.com/theory/semver
  https://github.com/theory/pg-semver

Best,

David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David E. Wheeler  
View profile  
 More options Oct 12 2012, 12:42 pm
From: "David E. Wheeler" <da...@justatheory.com>
Date: Fri, 12 Oct 2012 09:42:19 -0700
Local: Fri, Oct 12 2012 12:42 pm
Subject: Re: Semver and prerelease
On Oct 10, 2012, at 6:41 AM, Daniele Varrazzo <daniele.varra...@gmail.com> wrote:

>>    sudo pgxn-client install ./multicorn-1.0.0beta.zip

>> and it works as expected.

> Ok, the ball is in David's field then :)

Yes, I will try to figure out what the problem is this weekend. It’s finding a bogus character *somewhere*, and then additionally dying on a localization lookup failure. :-(

David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ronan Dunklau  
View profile  
 More options Oct 10 2012, 9:08 am
From: Ronan Dunklau <rdunk...@gmail.com>
Date: Wed, 10 Oct 2012 15:08:28 +0200
Local: Wed, Oct 10 2012 9:08 am
Subject: Re: Semver and prerelease

> I would also tell you: don't bother with the issue and release
> 1.0.0beta. If we'll have a purge we can wait for you to release 1.0.0
> before that.

That's all I wanted to read ! Thank you.

However, I don't know if my file is malformed or anything else, but I get
errors in the pgxn manager.

The first time, the error was informing me that PGXN is not
capable of parsing my JSON file due to an "illegal character".

I've tested the JSON file directly from the zip file I want to upload, and it is
parsable with the python json module.

Now, it greets me with a perl traceback:

    DBD::Pg::st execute failed: ERROR:  server conn crashed?
    ERROR:  server conn crashed? at /var/virtuals/pgxn/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Plack/Mi ddleware/StackTrace.pm line 2
It seems like I broke it, sorry :(

--
Ronan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ronan Dunklau  
View profile  
 More options Oct 10 2012, 9:09 am
From: Ronan Dunklau <rdunk...@gmail.com>
Date: Wed, 10 Oct 2012 15:09:20 +0200
Local: Wed, Oct 10 2012 9:09 am
Subject: Re: Semver and prerelease

> OK Daniele, but my point was that, even if semver has changed, the
> policy of not using a dash has been validated (if you'll excuse the pun)
> by PEP 386.  If Ronan wants to submit multicorn 1.0.0-beta to PyPI, I
> think it will be rejected (I am aware that submitting betas to PyPI is
> currently frowned upon).

I've never really considered it, do you think there  would be any interest in
doing so ?

And when/if I submit it to PyPi, should I package only the python code or
include the postgresql-specific C-code as well ?

--
Ronan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ronan Dunklau  
View profile  
 More options Oct 10 2012, 8:39 am
From: Ronan Dunklau <rdunk...@gmail.com>
Date: Wed, 10 Oct 2012 14:39:06 +0200
Local: Wed, Oct 10 2012 8:39 am
Subject: Re: Semver and prerelease
Le mercredi 10 octobre 2012 13:30:10 Daniele Varrazzo a écrit :

I understand the problem, and would just like to know: is PGXN likely to
change its "prerelease" versioning scheme ? Or can I confidently release a
1.0.0beta and finally get over it ?

I actually don't care at all, I just want to release a beta, and this proves
to be more difficult than expected.

--
Ronan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David E. Wheeler  
View profile  
 More options Oct 13 2012, 2:36 am
From: "David E. Wheeler" <da...@justatheory.com>
Date: Fri, 12 Oct 2012 23:36:02 -0700
Local: Sat, Oct 13 2012 2:36 am
Subject: Re: Semver and prerelease
On Oct 10, 2012, at 5:39 AM, Ronan Dunklau <rdunk...@gmail.com> wrote:

> I understand the problem, and would just like to know: is PGXN likely to
> change its "prerelease" versioning scheme ? Or can I confidently release a
> 1.0.0beta and finally get over it ?

If we change the scheme, it will be backwards compatible. So yes, you can release that confidently. :-)

> I actually don't care at all, I just want to release a beta, and this proves
> to be more difficult than expected.

Only because the semver format changed under us. Irritating.

David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »