-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add setuptools_scm for pyproject.toml, setup.cfg and setup.py #185
base: main
Are you sure you want to change the base?
Commits on Sep 21, 2024
-
Add setuptools_scm for pyproject.toml, setup.cfg and setup.py
Caspar van Leeuwen committedSep 21, 2024 Configuration menu - View commit details
-
Copy full SHA for 87ace82 - Browse repository at this point
Copy the full SHA 87ace82View commit details -
Also add an init which sets the version based on the setuptools_scm c…
…reated version file, or otherwise gets it dynamically at runtime (if setuptools_scm is available)
Caspar van Leeuwen committedSep 21, 2024 Configuration menu - View commit details
-
Copy full SHA for 8737cfd - Browse repository at this point
Copy the full SHA 8737cfdView commit details
Commits on Sep 23, 2024
-
See if we can implement a single-source-version approach as in https:…
…//packaging.python.org/en/latest/guides/single-sourcing-package-version/#single-sourcing-the-version. We then rely on setuptools_scm _only_ for non-release versions if people are running from a git checkout.
Caspar van Leeuwen committedSep 23, 2024 Configuration menu - View commit details
-
Copy full SHA for 950931b - Browse repository at this point
Copy the full SHA 950931bView commit details -
Try the fallback_version config item from setuptools_scm. It seems to…
… provide a hardcoded fallback if no scm is available, i.e. no .git folder. That's what we'd need. I'd still want a single place to have that fallback version, ideally in eessi.testsuite.__init__.py. That way, the same fallback version will be used to name the installation directory, but also at runtime if you print from eessi.testsuite import __version__; print(__version__)
Caspar van Leeuwen committedSep 23, 2024 Configuration menu - View commit details
-
Copy full SHA for d3917a1 - Browse repository at this point
Copy the full SHA d3917a1View commit details -
Caspar van Leeuwen committed
Sep 23, 2024 Configuration menu - View commit details
-
Copy full SHA for 60d4145 - Browse repository at this point
Copy the full SHA 60d4145View commit details -
First, try if we can single source from setup.py for new enough setup…
…tools_Scm
Caspar van Leeuwen committedSep 23, 2024 Configuration menu - View commit details
-
Copy full SHA for 8c9bcf3 - Browse repository at this point
Copy the full SHA 8c9bcf3View commit details -
Try with single version for fallback_version in pyproject.toml and pa…
…rse that in eessi.testsuite.__init__.py
Caspar van Leeuwen committedSep 23, 2024 Configuration menu - View commit details
-
Copy full SHA for 07943e3 - Browse repository at this point
Copy the full SHA 07943e3View commit details -
Strip filename of __init__.py file when trying to construct the pypro…
…ject.toml path
Caspar van Leeuwen committedSep 23, 2024 Configuration menu - View commit details
-
Copy full SHA for 580f664 - Browse repository at this point
Copy the full SHA 580f664View commit details -
Caspar van Leeuwen committed
Sep 23, 2024 Configuration menu - View commit details
-
Copy full SHA for 00ecf53 - Browse repository at this point
Copy the full SHA 00ecf53View commit details -
Caspar van Leeuwen committed
Sep 23, 2024 Configuration menu - View commit details
-
Copy full SHA for 8e29e77 - Browse repository at this point
Copy the full SHA 8e29e77View commit details -
leave the setuptools version up to setup.py, as it depends on the pyt…
…hon version
Caspar van Leeuwen committedSep 23, 2024 Configuration menu - View commit details
-
Copy full SHA for 101c40b - Browse repository at this point
Copy the full SHA 101c40bView commit details
Commits on Sep 24, 2024
-
Go back to the last version that passed CI, which specified setuptool…
…s>=42
Caspar van Leeuwen committedSep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for 593c633 - Browse repository at this point
Copy the full SHA 593c633View commit details -
See if this works. Potentially, we can just go for the lowest setupto…
…ols_scm version in this range...
Caspar van Leeuwen committedSep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for bf82ccc - Browse repository at this point
Copy the full SHA bf82cccView commit details -
Caspar van Leeuwen committed
Sep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for 503e070 - Browse repository at this point
Copy the full SHA 503e070View commit details -
Caspar van Leeuwen committed
Sep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for 43b370f - Browse repository at this point
Copy the full SHA 43b370fView commit details -
Remove specific version requirement so that this also passes with pyt…
…hon 3.6
Caspar van Leeuwen committedSep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for 26a5a62 - Browse repository at this point
Copy the full SHA 26a5a62View commit details -
Print filename correctly in error message
Caspar van Leeuwen committedSep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for 4797e6b - Browse repository at this point
Copy the full SHA 4797e6bView commit details -
Specify write_to_template specifically if the oldest version of setup…
…tools-scm is used
Caspar van Leeuwen committedSep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for 4b80f96 - Browse repository at this point
Copy the full SHA 4b80f96View commit details -
Caspar van Leeuwen committed
Sep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for c835884 - Browse repository at this point
Copy the full SHA c835884View commit details -
Make sure to import the fallback version _first_
Caspar van Leeuwen committedSep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for 8eb5e25 - Browse repository at this point
Copy the full SHA 8eb5e25View commit details -
Caspar van Leeuwen committed
Sep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for b375565 - Browse repository at this point
Copy the full SHA b375565View commit details -
Restructure and also catch other errors when opening the pyproject.to…
…ml file
Caspar van Leeuwen committedSep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for c7737db - Browse repository at this point
Copy the full SHA c7737dbView commit details -
Caspar van Leeuwen committed
Sep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for 3519d59 - Browse repository at this point
Copy the full SHA 3519d59View commit details -
Don't set fallback version in __init__.py anymore. We should have alw…
…ays gotten one with one of the three methods. If not, it's a bug
Caspar van Leeuwen committedSep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for cd318c9 - Browse repository at this point
Copy the full SHA cd318c9View commit details -
Don't print the __version__ in the exception messages, as there is no…
…ne set
Caspar van Leeuwen committedSep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for 5dc180d - Browse repository at this point
Copy the full SHA 5dc180dView commit details -
Merge branch 'setuptools_scm_versioning' of github.com:casparvl/test-…
…suite into setuptools_scm_versioning
Caspar van Leeuwen committedSep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for 4a75e41 - Browse repository at this point
Copy the full SHA 4a75e41View commit details -
Caspar van Leeuwen committed
Sep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for ed1d1bd - Browse repository at this point
Copy the full SHA ed1d1bdView commit details -
Fix flake8 issues. Print version of EESSI as part of the CI pipeline
Caspar van Leeuwen committedSep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for 7a9d16f - Browse repository at this point
Copy the full SHA 7a9d16fView commit details -
Caspar van Leeuwen committed
Sep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for b171330 - Browse repository at this point
Copy the full SHA b171330View commit details -
Make CI workflow more verbose for easier debugging
Caspar van Leeuwen committedSep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for fffe669 - Browse repository at this point
Copy the full SHA fffe669View commit details -
Enable setuptools_scm debugging output
Caspar van Leeuwen committedSep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for 3f1a984 - Browse repository at this point
Copy the full SHA 3f1a984View commit details -
Caspar van Leeuwen committed
Sep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for 610844c - Browse repository at this point
Copy the full SHA 610844cView commit details -
Make fetch-depth 0, so that setuptools_scm has the full history
Caspar van Leeuwen committedSep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for 433c0ca - Browse repository at this point
Copy the full SHA 433c0caView commit details -
Check for the presence of the version file
Caspar van Leeuwen committedSep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for f4a8065 - Browse repository at this point
Copy the full SHA f4a8065View commit details -
Check for the version file _before_ import the version from __init__
Caspar van Leeuwen committedSep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for bac5401 - Browse repository at this point
Copy the full SHA bac5401View commit details -
We don't seem to be able to convince setuptools_scm version 4 to use …
…the write_to_template correctly in CI, for some reason. That's fine, we'll just also check if 'version' is specified in _version.py
Caspar van Leeuwen committedSep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for 15706fc - Browse repository at this point
Copy the full SHA 15706fcView commit details -
Caspar van Leeuwen committed
Sep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for a6afd1a - Browse repository at this point
Copy the full SHA a6afd1aView commit details -
Caspar van Leeuwen committed
Sep 24, 2024 Configuration menu - View commit details
-
Copy full SHA for 0ad305b - Browse repository at this point
Copy the full SHA 0ad305bView commit details
Commits on Sep 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5bca5bb - Browse repository at this point
Copy the full SHA 5bca5bbView commit details
Commits on Oct 1, 2024
-
Merge branch 'setuptools_scm_versioning' of github.com:casparvl/test-…
…suite into setuptools_scm_versioning
Caspar van Leeuwen committedOct 1, 2024 Configuration menu - View commit details
-
Copy full SHA for ddae92c - Browse repository at this point
Copy the full SHA ddae92cView commit details
Commits on Oct 2, 2024
-
Added CI workflows to check versioning in various ways
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 9aca8a4 - Browse repository at this point
Copy the full SHA 9aca8a4View commit details -
Forgot to add the git+ to git+https
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 72a3698 - Browse repository at this point
Copy the full SHA 72a3698View commit details -
Try to debug why the version file doesn't exist...
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 3aec459 - Browse repository at this point
Copy the full SHA 3aec459View commit details -
Make the check independent from the current directory
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 3463a78 - Browse repository at this point
Copy the full SHA 3463a78View commit details -
Make check independent from current dir
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 5f32c15 - Browse repository at this point
Copy the full SHA 5f32c15View commit details -
For python 3.6, the version file contains 'version' instead of __vers…
…ion__'. So import that when importing directly
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 2bd40a5 - Browse repository at this point
Copy the full SHA 2bd40a5View commit details -
Now really: import version instead of __version__ from versionfile fo…
…r python3.6
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 5e98775 - Browse repository at this point
Copy the full SHA 5e98775View commit details -
Also for git+https installs, check if the version file matches the ve…
…rsion imported from eessi.testsuite
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 2921d6d - Browse repository at this point
Copy the full SHA 2921d6dView commit details -
fix sytnax for github workflow
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for f65374e - Browse repository at this point
Copy the full SHA f65374eView commit details -
Caspar van Leeuwen committed
Oct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for d994927 - Browse repository at this point
Copy the full SHA d994927View commit details -
Only do version check, nothing else
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 0199051 - Browse repository at this point
Copy the full SHA 0199051View commit details -
Do not-equal-to comparisons on strings. Versions arent numbers
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 2b98d1e - Browse repository at this point
Copy the full SHA 2b98d1eView commit details -
More clear reporting on version differences
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 603b010 - Browse repository at this point
Copy the full SHA 603b010View commit details -
Make sure to only print the version, nothing else
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 49b2710 - Browse repository at this point
Copy the full SHA 49b2710View commit details -
Check why these versions could be different
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for fc438ee - Browse repository at this point
Copy the full SHA fc438eeView commit details -
env vars do not carry over between steps. We'll need to get the versi…
…on again
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 2c1c3ae - Browse repository at this point
Copy the full SHA 2c1c3aeView commit details -
Caspar van Leeuwen committed
Oct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for d10afd3 - Browse repository at this point
Copy the full SHA d10afd3View commit details -
Don't checkout, we want to test what happens when we pull a tarball f…
…rom git
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 358041f - Browse repository at this point
Copy the full SHA 358041fView commit details -
Caspar van Leeuwen committed
Oct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 88451e6 - Browse repository at this point
Copy the full SHA 88451e6View commit details -
Print the pythonpath so we can check it
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 1452afa - Browse repository at this point
Copy the full SHA 1452afaView commit details -
We need to re-get the fallback_version because env vars don't carry o…
…ver between steps
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 18a6019 - Browse repository at this point
Copy the full SHA 18a6019View commit details -
Make sure we get the fallback version before changing directory
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for fe8094d - Browse repository at this point
Copy the full SHA fe8094dView commit details -
Don't need to store the old dir anymore
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 15e92d1 - Browse repository at this point
Copy the full SHA 15e92d1View commit details -
Add workflow to check the hardcoded fallback version in pyproject.tom…
…l against the version used in CI/run_reframe.sh and check against git tags listed
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 5bea644 - Browse repository at this point
Copy the full SHA 5bea644View commit details -
Change where the pyproject.toml is for the grep
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for d608383 - Browse repository at this point
Copy the full SHA d608383View commit details -
Caspar van Leeuwen committed
Oct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for dd05330 - Browse repository at this point
Copy the full SHA dd05330View commit details -
Fix the fallback version so that it is the latest tagged version
Caspar van Leeuwen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for cbefb7a - Browse repository at this point
Copy the full SHA cbefb7aView commit details