Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to post multiple-releases-in-a-day #86

Closed
pradyunsg opened this issue Nov 17, 2021 · 5 comments · Fixed by #191 · May be fixed by #126
Closed

Make it possible to post multiple-releases-in-a-day #86

pradyunsg opened this issue Nov 17, 2021 · 5 comments · Fixed by #191 · May be fixed by #126
Labels
enhancement New feature or request

Comments

@pradyunsg
Copy link
Member

Are folks opposed to setting up releases with the version numbers 2021.11.15.1?

Right now, we're using calver:

setup_requires=["calver"],

It doesn't support multiple releases on the same day, which is an issue we've hit in #80.

@pradyunsg pradyunsg added the enhancement New feature or request label Jan 12, 2022
@Secrus
Copy link
Member

Secrus commented Jan 6, 2023

I know this issue is quite dated, but as a side note, I would suggest dropping calver. With setuptools moving to pyproject.toml and setup.py scripts being discouraged, using calver will be anchoring the project to old standards, since (according to setuptools docs) it won't be supported in pyproject.toml. If calver is dropped, this project could also be migrated to fully use pyproject.toml metadata declaration (either via setuptools or migrating to another tool that supports it, like flit)

@pradyunsg
Copy link
Member Author

setup.py scripts being discouraged

To quote https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html:

This does not mean that setuptools itself is deprecated, or that using setup.py to configure your package builds is going to be removed.

@Secrus
Copy link
Member

Secrus commented Jan 6, 2023

@pradyunsg I meant more that the community is going in the direction of having all possible packaging data in static config like setup.cfg/pyproject.toml. I am by no means saying that setuptools is deprecated.

@hugovk
Copy link
Contributor

hugovk commented Sep 14, 2024

I suggest keeping CalVer but switching from YYYY.MM.DD to YYYY.MM.micro, where micro is set to 0 for the first release of the month, then incremented for subsequent releases.

https://calver.org/#scheme

This is similar to Black and Twisted (although they use YY) and others.

https://calver.org/users.html

For example, the first release in October, let's say on the 3rd, would be 2024.10.0. The next release on the 12th would be 2024.10.1. If we have another on the 12th, it's 2024.10.2. The next on the 18th is 2024.10.3 and so on.

@miketheman
Copy link
Member

miketheman commented Oct 11, 2024

I suggest keeping CalVer but switching from YYYY.MM.DD to YYYY.MM.micro, where micro is set to 0 for the first release of the month, then incremented for subsequent releases.

Is this possible with the calver library used today? It seems like we might benefit from a simpler format, where we get YYYY.MM.DD.<24-format, zero padded hour> without doing much other than modification to the use_calver directive, so then we can least do one per hour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
4 participants