Giter VIP home page Giter VIP logo

Comments (7)

RonnyPfannschmidt avatar RonnyPfannschmidt commented on June 12, 2024

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.

njzjz avatar njzjz commented on June 12, 2024

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.

CatChenal avatar CatChenal commented on June 12, 2024

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.

njzjz avatar njzjz commented on June 12, 2024

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.

CatChenal avatar CatChenal commented on June 12, 2024

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.

njzjz avatar njzjz commented on June 12, 2024

I use setuptools_scm through scikit-build-core.

from setuptools_scm.

CatChenal avatar CatChenal commented on June 12, 2024

from setuptools_scm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.