fix(cli): add setuptools_scm section#778
fix(cli): add setuptools_scm section#778Ardelean-Calin wants to merge 2 commits intocanonical:mainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #778 +/- ##
=======================================
Coverage 64.00% 64.00%
=======================================
Files 94 94
Lines 7867 7867
Branches 757 757
=======================================
Hits 5035 5035
Misses 2686 2686
Partials 146 146
*This pull request uses carry forward flags. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Hi @Ardelean-Calin I reported this yesterday in this bug and dev replied that when the root directory (where One option is to add this instead: But since we are not using the tag/version for the CLI while publishing it to the Snap Store, I think I also prefer the simpler approach to just do the fallback version specified in this PR. The rev tag is also for the whole repo so I don't think it even make sense to version the CLI with this. What do you think @pedro-avalos? |
|
Hm, I'm not sure about the Apart from that, yeah I think we should have the root path in the configuration |
|
Seems that when setting the root, is does expect to found a tag from it But got: Setting only root also fails for the same reason |
|
FYI, SCM 9.1.1 was yanked: https://pypi.org/project/setuptools-scm/9.1.1/ Latest version now is 8.3.1 for which CLI build should be able to work again. |
|
I've updated The version is automatically deducted from the commit SHA as being The unit tests failed but it's not related to this PR, it's related to this repo's policy. |
|
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in a week. |
Description
A recent
setuptools_scmupdate made it so that we can no longer install thetestflinger-clitool usingWe would get the following error:
Basically it seems the
tool.setuptools_scmsection is no longer optional and neither is specifying a fallback revision (I chose 0.0.0 in this case).Resolved issues
N/A
Documentation
I looked at the Install in a virtual environment section of the documentation and although I think that should be updated to include
uv, that particular flow doesn't change. (It was broken before this commit, though)Web service API changes
N/A
Tests
N/A