Quansight / ibis-vega-transform

@vega transforms with @ibis-project expressions
Apache License 2.0
30 stars 7 forks source link

PR: Use rever for release process #56

Closed goanpeca closed 4 years ago

goanpeca commented 4 years ago

Fixes #51

goanpeca commented 4 years ago

Yes ! Let me make that fix

saulshanabrook commented 4 years ago

Ah one other thing, would it be possible to just tell rever if you want major, minor, or patch and have it figure out the next version and bump to that?

goanpeca commented 4 years ago

You mean for the current or for the next version?

saulshanabrook commented 4 years ago

I meant for the next version. You run rever major and it releases a new major version. Now I am not sure what you would then set the version string to be after the release.

This is something I have always been confused about with automatically switching to the .dev prefix.

If you just release version 4.0.0, then do you set the version string to?

  1. 5.0.0.dev
  2. 4.1.0.dev
  3. 4.0.1.dev

It seems like it requires you to know, a-priori, what the next bump will be. 🤷‍♂

goanpeca commented 4 years ago

I see. It is algo weird to leave the versions as the latest one you released in the package while it is in master. I will meditate on this

saulshanabrook commented 4 years ago

Yeah I notice people don't like just keeping the old version.

goanpeca commented 4 years ago

We can simply agree that after a version is released we add the dev without bump. Then we can do what you suggest ;-). Problem solved :-p

saulshanabrook commented 4 years ago

Fine with me! :)

goanpeca commented 4 years ago

One thing I like to do is manually run some tests before actually uploading the versions, by opening JupyterLab and running some files. Is this possible with the rever setup? If so, could you document how to do that in the new RELEASE.md?

Fixed!

Ah one other thing, would it be possible to just tell rever if you want major, minor, or patch and have it figure out the next version and bump to that?

Fixed!

I tested the steps individually but did not do a full run. So this PR will be tested when we make an official release. There might be some nitpicks.

Also could you add me as collaborator or something here

https://www.npmjs.com/package/ibis-vega-transform https://www.npmjs.com/~goanpeca

Thanks!

saulshanabrook commented 4 years ago

Thank you!

Also could you add me as collaborator or something here

Done!

I tried running rever major but it seems like maybe the version string isn't being computed properly?

Enter your username: Uploading distributions to https://test.pypi.org/legacy/
saulshanabrook
Enter your password:
Uploading ibis_vega_transform-_4.0.0_-py3-none-any.whl
 23%|███████████████████████▉                                                                              | 8.00k/34.1k [00:00<00:02, 9.00kB/s]HTTPError: 400 Client Error: '-4.0.0-' is an invalid value for Version. Error: Start and end with a letter or numeral containing only ASCII numeric and '.', '_' and '-'. See https://packaging.python.org/specifications/core-metadata for url: https://test.pypi.org/legacy/
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████| 34.1k/34.1k [00:01<00:00, 27.6kB/s]
NOTE: Try --verbose to see response content.
goanpeca commented 4 years ago

Ok, I know the problem, some extra quotes :-p

Will fix!

goanpeca commented 4 years ago

@saulshanabrook could you try again? (I had a small bug in the setup.py)