File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python
2+
3+ # Copyright (c) 2026, the cclib development team
4+ #
5+ # This file is part of cclib (http://cclib.github.io) and is distributed under
6+ # the terms of the BSD 3-Clause License.
7+
8+ # prepare_ci_for_versioningit.py: The sed command that updates the Open Babel
9+ # dependency in CI dirties the working copy, which would mess with the version
10+ # string in the build artifacts and cause problems when attempting to upload
11+ # to a package index. Disable this check since this workaround is not for the
12+ # Python version that saves build artifacts and uploads to package indices.
13+
14+ import os
15+ import sys
16+
17+
18+ minor_version = sys .version_info .minor
19+ if minor_version >= 10 :
20+ with open (os .environ ["GITHUB_ENV" ], "a" ) as github_env_file :
21+ github_env_file .write ("VERSIONINGIT_FOR_PACKAGE_INDEX=1\n " )
Original file line number Diff line number Diff line change @@ -11,11 +11,6 @@ concurrency:
1111 group : test-${{github.ref}}-${{github.event.pull_request.number || github.run_number}}
1212 cancel-in-progress : true
1313
14- # For now always take the "reduced" form of the version, even for those
15- # actions runs that do not push to a package index.
16- env :
17- VERSIONINGIT_FOR_PACKAGE_INDEX : true
18-
1914jobs :
2015
2116 run-tests :
4641 - name : Prepare conda environment
4742 run : |
4843 echo "/opt/conda/envs/cclib/bin" >> "${GITHUB_PATH}"
44+ - name : Prepare CI for Versioningit
45+ run : |
46+ python .github/scripts/prepare_ci_for_versioningit.py
4947 - name : Patch Open Babel dependency requirement
5048 run : |
5149 # The official Open Babel package doesn't provide wheels for Python
5553 if : (matrix.container == 'shivupa/cclib-ci:py38-edge') || (matrix.container == 'shivupa/cclib-ci:py39-edge')
5654 - name : Install cclib
5755 run : |
58- python tools/versioningit_conditional_disable.py
5956 python -m pip install -r requirements-bridges.txt
6057 python -m pip install '.[test]'
6158 - name : Filter code
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments