Comments (7)
that use-case not supported by normal means and will never be directly supported
you can abuse the SETUPTOOLS_SCM_PRETEND_VERSION_FOR_mypkg
env var to get things working
from setuptools_scm.
you can abuse the
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_mypkg
env var to get things working
Thanks! The workaround works for me.
In the GitHub Action, I get the version and set SETUPTOOLS_SCM_PRETEND_VERSION_FOR_mypkg
before any file is changed.
- run: |
python -m pip install setuptools_scm
python -c "from setuptools_scm import get_version;print('SETUPTOOLS_SCM_PRETEND_VERSION_FOR_DEEPMD-KIT-CU11='+get_version())" >> $GITHUB_ENV
from setuptools_scm.
In the GitHub Action, I get the version and set
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_mypkg
before any file is changed.- run: | python -m pip install setuptools_scm python -c "from setuptools_scm import get_version;print('SETUPTOOLS_SCM_PRETEND_VERSION_FOR_DEEPMD-KIT-CU11='+get_version())" >> $GITHUB_ENV
@njzjz Would you please provide a link to the GH action you amended?
Also, I don't quite understand what "before any file is changed" means: why does it matter?
I am debating getting rid of setuptools_scm
: it will depends if I can fix the same problem I have!
Thank you.
from setuptools_scm.
In the GitHub Action, I get the version and set
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_mypkg
before any file is changed.- run: | python -m pip install setuptools_scm python -c "from setuptools_scm import get_version;print('SETUPTOOLS_SCM_PRETEND_VERSION_FOR_DEEPMD-KIT-CU11='+get_version())" >> $GITHUB_ENV
@njzjz Would you please provide a link to the GH action you amended? Also, I don't quite understand what "before any file is changed" means: why does it matter? I am debating getting rid of
setuptools_scm
: it will depends if I can fix the same problem I have! Thank you.
@CatChenal You can check deepmodeling/deepmd-kit#3172. The version will be bumped if any of the git-tracked files is changed.
from setuptools_scm.
Thanks Jinzhe! That's a great project!
Unless I'm mistaken, your pyproject.toml is telling me you are no longer using setuptools_scm
.
I think I'll try your dynamic versioning scheme.
All the best to you.
from setuptools_scm.
I use setuptools_scm through scikit-build-core.
from setuptools_scm.
from setuptools_scm.
Related Issues (20)
- what are the available version_scheme HOT 4
- Add a `just-the-tag` version scheme HOT 12
- Be a smidge more error tolerant? HOT 2
- documentation outdated? HOT 3
- Why is get_version at runtime deprecated? HOT 1
- setuptools_scm does not get the latest git tag HOT 5
- `AssertionError: assert main_version is not None` when `pyproject.toml` defines its own `version_schema` and provides its own callable. HOT 2
- LookupError: setuptools-scm was unable to detect version if [tool.setuptools_scm] is in pyproject.toml HOT 17
- setup(python_requires=">=3.9") seems not supported HOT 2
- 8.0.4 fails to install with Python 3.8/3.9 (but works fine with Python 3.10+) HOT 6
- 8.0.4 fails to build wheel on python 3.10 with gpep517 v15 HOT 3
- Docs request: `SETUPTOOLS_SCM_PRETEND_VERSION` recommendation HOT 4
- SETUPTOOLS_SCM_PRETEND_VERSION not working when .hg folder does not exist HOT 6
- Failing to point to project's root HOT 2
- change env var variable name to something more comprehensble than NORMALIZED_DIST_NAME
- Provide more guidance on how to use `.git_archival.txt`
- on windows, path comparison should be case-insensitive HOT 1
- listing git files failed on git repo HOT 5
- LookupError: setuptools-scm was unable to detect version for /app when project is used as a git submodule. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setuptools_scm.