desertpy / desertpy-pelican

DesertPy Webpage Source - Pelican
2 stars 8 forks source link

Drive DesertPy with CI #31

Open godber opened 5 years ago

godber commented 5 years ago

This is a rough description for how I think we could try to better automate the DesertPy Meetup.

godber commented 5 years ago

Ok, I was thinking about this again today. Rather than google calendar, the list of meetings could come from a yaml or json file in the repo. It would contain a list of meetings and information about when they "should" happen. We'd write a script that runs daily with circleci and see if something needs to be done based on the current date (e.g. 5 weeks before the 4th Wednesday meeting, the issue for the meeting gets stubbed out and assigned to the user.)

And example of computing things like "the fourth wednesday of the month" using the python-dateutil package:

from dateutil.rrule import rrule, MONTHLY, WE
from datetime import datetime
list(rrule(freq=MONTHLY, count=12, byweekday=WE(4), dtstart=datetime(2019, 1, 1)))

results in

[datetime.datetime(2019, 1, 23, 0, 0),
 datetime.datetime(2019, 2, 27, 0, 0),
 datetime.datetime(2019, 3, 27, 0, 0),
 datetime.datetime(2019, 4, 24, 0, 0),
 datetime.datetime(2019, 5, 22, 0, 0),
 datetime.datetime(2019, 6, 26, 0, 0),
 datetime.datetime(2019, 7, 24, 0, 0),
 datetime.datetime(2019, 8, 28, 0, 0),
 datetime.datetime(2019, 9, 25, 0, 0),
 datetime.datetime(2019, 10, 23, 0, 0),
 datetime.datetime(2019, 11, 27, 0, 0),
 datetime.datetime(2019, 12, 25, 0, 0)]
godber commented 4 years ago

Just wanted the dates real quick

https://gist.github.com/godber/428e1cc2500fb9fed68fe9919a34f45b