@@ -44,36 +44,11 @@ jobs:
4444 - name : Install dependencies
4545 run : |
4646 python --version
47- uv pip install --system setuptools wheel build setuptools_scm
48- - name : Debug setuptools_scm for core
49- run : |
50- cd libs/core
51- python -c "
52- import setuptools_scm
53- try:
54- version = setuptools_scm.get_version()
55- print(f'setuptools_scm detected version: {version}')
56- except Exception as e:
57- print(f'setuptools_scm error: {e}')
58- import traceback
59- traceback.print_exc()
60- "
47+ uv pip install --system setuptools wheel build
6148 - name : Build core
6249 run : |
6350 cd libs/core
64- # Try auto-detection first, fall back to tag-based version if needed
65- if python -c "import setuptools_scm; setuptools_scm.get_version()" > /dev/null 2>&1; then
66- echo "Using setuptools_scm auto-detected version"
67- python -m build
68- elif [[ "${{ github.event_name }}" == "release" && "${{ github.event.release.tag_name }}" == core-v* ]]; then
69- TAG_NAME="${{ github.event.release.tag_name }}"
70- VERSION="${TAG_NAME#core-v}"
71- echo "Auto-detection failed, using explicit version from tag: $VERSION"
72- SETUPTOOLS_SCM_PRETEND_VERSION_FOR_SIM_SCI_TEST_MONOREPO_CORE="$VERSION" python -m build
73- else
74- echo "No version could be determined, trying build anyway"
75- python -m build
76- fi
51+ python -m build
7752 - name : Publish core to PyPI
7853 uses : pypa/gh-action-pypi-publish@release/v1
7954 with :
@@ -108,36 +83,11 @@ jobs:
10883 - name : Install dependencies
10984 run : |
11085 python --version
111- uv pip install --system setuptools wheel build setuptools_scm
112- - name : Debug setuptools_scm for public health
113- run : |
114- cd libs/public_health
115- python -c "
116- import setuptools_scm
117- try:
118- version = setuptools_scm.get_version()
119- print(f'setuptools_scm detected version: {version}')
120- except Exception as e:
121- print(f'setuptools_scm error: {e}')
122- import traceback
123- traceback.print_exc()
124- "
86+ uv pip install --system setuptools wheel build
12587 - name : Build public health
12688 run : |
12789 cd libs/public_health
128- # Try auto-detection first, fall back to tag-based version if needed
129- if python -c "import setuptools_scm; setuptools_scm.get_version()" > /dev/null 2>&1; then
130- echo "Using setuptools_scm auto-detected version"
131- python -m build
132- elif [[ "${{ github.event_name }}" == "release" && "${{ github.event.release.tag_name }}" == public-health-v* ]]; then
133- TAG_NAME="${{ github.event.release.tag_name }}"
134- VERSION="${TAG_NAME#public-health-v}"
135- echo "Auto-detection failed, using explicit version from tag: $VERSION"
136- SETUPTOOLS_SCM_PRETEND_VERSION_FOR_SIM_SCI_TEST_MONOREPO_PUBLIC_HEALTH="$VERSION" python -m build
137- else
138- echo "No version could be determined, trying build anyway"
139- python -m build
140- fi
90+ python -m build
14191 - name : Publish public health to PyPI
14292 uses : pypa/gh-action-pypi-publish@release/v1
14393 with :
0 commit comments