Skip to content

Commit

Permalink
Use version manually in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Hook25 committed May 22, 2024
1 parent 1fbb8c4 commit 16eaf7d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion checkbox-ng/setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# This helps older pip version properly install editable version of checkbox
# inside the venv with `pip install -e .`

import os
from setuptools import setup

setup()
# this version adoption is a no-op in non-debian build as setuptools-scm does
# the same. Some pybuild versions are not triggering this behaviour correctly
# so this makes it uniform. Note that if this variable is missing the fallback
# to setuptools-scm is unchanged also in debian packages (so the package will
# get the default version calculated from setuptools-scm)
setup(version=os.getenv("SETUPTOOLS_SCM_PRETEND_VERSION"))
8 changes: 7 additions & 1 deletion checkbox-support/setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# This helps older pip version properly install editable version of checkbox
# inside the venv with `pip install -e .`

import os
from setuptools import setup

setup()
# this version adoption is a no-op in non-debian build as setuptools-scm does
# the same. Some pybuild versions are not triggering this behaviour correctly
# so this makes it uniform. Note that if this variable is missing the fallback
# to setuptools-scm is unchanged also in debian packages (so the package will
# get the default version calculated from setuptools-scm)
setup(version=os.getenv("SETUPTOOLS_SCM_PRETEND_VERSION"))

0 comments on commit 16eaf7d

Please sign in to comment.