Skip to content

have dynamic version - #141

Merged
Stunkymonkey merged 4 commits into
masterfrom
dynamic-version
Mar 5, 2024
Merged

Stunkymonkey merged 4 commits into
masterfrom
dynamic-version

Conversation

@Stunkymonkey

Copy link
Copy Markdown
Owner

sadly we still have the static version in pyproject.toml

The deployment then fails: https://github.com/Stunkymonkey/nautilus-open-any-terminal/actions/runs/8072181362/job/22053861823

@Stunkymonkey
Stunkymonkey requested a review from lvxnull February 27, 2024 22:45
@Stunkymonkey
Stunkymonkey marked this pull request as ready for review February 27, 2024 22:54
@Stunkymonkey

Copy link
Copy Markdown
Owner Author

@lvxnull your opinion here?

@Stunkymonkey

Copy link
Copy Markdown
Owner Author

it is only a build-dependency not a normal one. So that is why I think it is not a big deal.

I did not test ist, but followed this little README: https://github.com/pypa/setuptools_scm?tab=readme-ov-file#pyprojecttoml-usage

@Stunkymonkey
Stunkymonkey marked this pull request as draft March 3, 2024 22:10
@Stunkymonkey

Copy link
Copy Markdown
Owner Author

using the current branch results into:

[nix-shell:~/code/python/nautilus-open-any-terminal]$ git checkout 0.5.0
Note: switching to '0.5.0'.
...
HEAD is now at 26ef5f1 Merge pull request #120 from Stunkymonkey/prepare-0.5.0

[nix-shell:~/code/python/nautilus-open-any-terminal]$ python setup.py --version
0.5.0

[nix-shell:~/code/python/nautilus-open-any-terminal]$ git switch dynamic-version 
Previous HEAD position was 26ef5f1 Merge pull request #120 from Stunkymonkey/prepare-0.5.0
Switched to branch 'dynamic-version'
Your branch is up to date with 'origin/dynamic-version'.

[nix-shell:~/code/python/nautilus-open-any-terminal]$ python setup.py --version
...
0.5.2.dev5+gfbf6520

same with python -m setuptools_scm

but when downloading the packages uploaded via the CI the version states 0.1.dev1+g470e5ba.

@Stunkymonkey

Copy link
Copy Markdown
Owner Author

should be now fixed by fetching the full history.

@Stunkymonkey
Stunkymonkey marked this pull request as ready for review March 5, 2024 21:13
@Stunkymonkey

Copy link
Copy Markdown
Owner Author

@lvxnull please review now

@Stunkymonkey
Stunkymonkey merged commit 3ed4f5e into master Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant