[Git][reproducible-builds/reproducible-website][master] 5 commits: Add missing calendar import.
Chris Lamb
gitlab at salsa.debian.org
Wed May 1 15:40:51 UTC 2019
Chris Lamb pushed to branch master at Reproducible Builds / reproducible-website
Commits:
3d02dfb2 by Chris Lamb at 2019-05-01T15:40:10Z
Add missing calendar import.
- - - - -
69b65744 by Chris Lamb at 2019-05-01T15:40:10Z
Use datetime objects so we get a .timestamp() method.
- - - - -
b56a2de8 by Chris Lamb at 2019-05-01T15:40:10Z
Replace tabs with spaces.
- - - - -
4b46bbb7 by Chris Lamb at 2019-05-01T15:40:10Z
Correct calculation of "last" month.
- - - - -
95a45b61 by Chris Lamb at 2019-05-01T15:40:10Z
2019-05 += https://salsa.debian.org/salsa-ci-team/pipeline/merge_requests/74
- - - - -
3 changed files:
- _reports/2019-04.md
- + _reports/2019-05.md
- bin/generate-draft
Changes:
=====================================
_reports/2019-04.md
=====================================
@@ -41,8 +41,8 @@ draft: true
* [python-irc](https://build.opensuse.org/request/show/699679) (drop file with varying pyc timestamp)
* Vagrant Cascadian:
- * [linux](https://salsa.debian.org/kernel-team/linux/merge_requests/140) [Sort list of modules before adding to .json file](https://salsa.debian.org/kernel-team/linux/commit/58ef63e9e2c71ffd8a21e9c620db71cb96d2d5a9)
- * debian-installer: [Fix reproducibility of u-boot images by using gzip -n](https://salsa.debian.org/installer-team/debian-installer/commit/deeee34bc0ee5ec879182111b809896752ad0df9)
+ * [linux](https://salsa.debian.org/kernel-team/linux/merge_requests/140) [Sort list of modules before adding to .json file](https://salsa.debian.org/kernel-team/linux/commit/58ef63e9e2c71ffd8a21e9c620db71cb96d2d5a9)
+ * debian-installer: [Fix reproducibility of u-boot images by using gzip -n](https://salsa.debian.org/installer-team/debian-installer/commit/deeee34bc0ee5ec879182111b809896752ad0df9)
* [FIXME](https://lwn.net/Articles/785386/)
=====================================
_reports/2019-05.md
=====================================
@@ -0,0 +1,10 @@
+---
+layout: new/report
+year: "2019"
+month: "05"
+month_name: "May"
+draft: true
+title: "Reproducible builds in May 2019"
+---
+
+* [FIXME](https://salsa.debian.org/salsa-ci-team/pipeline/merge_requests/74)
=====================================
bin/generate-draft
=====================================
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
+import calendar
import collections
import datetime
import jinja2
@@ -27,9 +28,10 @@ def main(*args):
for x in PROJECTS + ('reproducible-notes',):
ensure_dir(sibling_repo_gitdir(x))
- today = datetime.datetime.utcnow()
+ previous_month = datetime.date.today().replace(day=1) - \
+ datetime.timedelta(days=1)
- data = get_data(today.year, today.month)
+ data = get_data(previous_month.year, previous_month.month)
env = jinja2.Environment(
loader=jinja2.FileSystemLoader(os.path.dirname(__file__))
@@ -75,8 +77,12 @@ def get_data(year, month, max_age=3600):
log("Getting new data")
- month_start = datetime.date(year=year, month=month, day=1)
- month_end = month_start.replace(day=calendar.monthlen(year, month))
+ month_start = datetime.datetime(year=year, month=month, day=1)
+ month_end = month_start.replace(
+ day=calendar.monthlen(year, month),
+ hour=23,
+ minute=59
+ )
month_start_ts = int(month_start.timestamp())
month_end_ts = int(month_end.timestamp())
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/compare/5d68aa3571bc4e6aea325932330c9e87b12fad73...95a45b619c66f20f873c2f100423419e900f0c2d
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/compare/5d68aa3571bc4e6aea325932330c9e87b12fad73...95a45b619c66f20f873c2f100423419e900f0c2d
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20190501/9ea3b445/attachment.html>
More information about the rb-commits
mailing list