Skip to content

Commit

Permalink
Pull in latest run-script-framework
Browse files Browse the repository at this point in the history
  • Loading branch information
pronovic committed Jan 21, 2025
1 parent e0c2a57 commit d55317f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .run/commands/poetrybuild.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
# vim: set ft=bash ts=3 sw=3 expandtab:
# Build release artifacts into the dist/ directory

# Poetry v2 attaches the epoch timestamp (1970-01-01 00:00) to all of the files
# in the sdist .tar.gz file, rather than the timestamp from the filesystem they
# were sourced from, as was the behavior in Poetry v1. To work around this, I'm
# setting the $SOURCE_DATE_EPOCH to the current UTC epoch seconds value.
#
# See also: https://github.com/python-poetry/poetry/issues/10083

command_poetrybuild() {
echo "Building release artifacts..."

rm -f dist/*

poetry version

poetry build
SOURCE_DATE_EPOCH=$(TZ=UTC date "+%s") poetry build
if [ $? != 0 ]; then
echo "*** Build failed"
exit 1
Expand Down
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Version 0.6.15 unreleased
* Upgrade to poetry-dynamic-versioning v1.5.2 for minor fixes.
* Add .python-version in preferred order to support pyenv.
* Use conftest.py to explicitly set the time zone for all unit tests.
* Pull in latest version of run-script-framework.

Version 0.6.14 08 Jan 2025

Expand Down

0 comments on commit d55317f

Please sign in to comment.