Commit Graph

45 Commits

Author SHA1 Message Date
dependabot[bot] 3e069e8c61
Bump urllib3 from 2.2.3 to 2.5.0 in /tools/events/meetup-automation (#6753)
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.2.3 to 2.5.0.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.2.3...2.5.0)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-version: 2.5.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-23 19:30:38 -07:00
dependabot[bot] bc8b5a053a
Bump requests from 2.32.3 to 2.32.4 in /tools/events/meetup-automation
Bumps [requests](https://github.com/psf/requests) from 2.32.3 to 2.32.4.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.32.3...v2.32.4)

---
updated-dependencies:
- dependency-name: requests
  dependency-version: 2.32.4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-10 10:48:01 +00:00
bdillo a40b7f3fbc
remove meetup groups that no longer exist 2025-04-08 18:25:28 -07:00
Ben Dillon c867ff9b9b
Meetup json output, minor fixes (#6339)
* add some data normalization and formatting for event names and locations

* add support for outputting events as json
2025-04-05 18:24:50 -07:00
dependabot[bot] b6d6a381d2
Bump cryptography in /tools/events/meetup-automation
Bumps [cryptography](https://github.com/pyca/cryptography) from 43.0.3 to 44.0.1.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/43.0.3...44.0.1)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-11 19:25:10 +00:00
dependabot[bot] f5e255de41
Bump pyjwt from 2.10.0 to 2.10.1 in /tools/events/meetup-automation (#6322)
Bumps [pyjwt](https://github.com/jpadilla/pyjwt) from 2.10.0 to 2.10.1.
- [Release notes](https://github.com/jpadilla/pyjwt/releases)
- [Changelog](https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/jpadilla/pyjwt/compare/2.10.0...2.10.1)

---
updated-dependencies:
- dependency-name: pyjwt
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-24 12:28:13 -08:00
Han K Ngo 76ff19c653
TWIR automation work - Meetup API (#6317)
Add meetup event scripts

---------

Co-authored-by: bdillo <ben.g.dillon@pm.me>
Co-authored-by: Marianne Goldin <23177337+mariannegoldin@users.noreply.github.com>
Co-authored-by: Ben Dillon <146687321+bdillo@users.noreply.github.com>
2025-01-24 11:57:54 -08:00
bdillo 8cb1d16ba6
trim a few more events from maybe-rust-meetups.json 2024-12-21 12:41:16 -08:00
bdillo eec93863c0
rename meetups.json to rust-meetups.json to show it's for rust specific meetup groups 2024-12-21 12:33:54 -08:00
bdillo 10507a44fc
trim meetups.json to contain rust only groups, split non-rust-specific meetup groups into maybe-rust-meetups.json 2024-12-21 12:32:57 -08:00
Marianne Goldin 25bc2b0095 Update list of monitored Rust Meetup events 2024-12-18 20:17:33 -08:00
Marianne Goldin a53bdca11e Add script to gather up past meetups 2024-11-06 14:35:56 -08:00
needsure a518ca5a0f chore: fix typo in conment
Signed-off-by: needsure <qinzhipeng@outlook.com>
2024-04-09 16:57:41 +08:00
Eric Seppanen b341e89391 bump python Markdown package to version 3.3.7
The version used to build the site was bumped in #3338, but the version
used in CI was not.
2023-05-11 20:57:31 -07:00
Eric Seppanen 46a7f641f8 fix python urllib syntax
After upgrading to Ubuntu 22.04 with Python 3.10.6, the script crashes
with
    AttributeError: module 'urllib' has no attribute 'parse'

Apparently the import was wrong all along, but some quirk of the older
system allowed it to work previously.
2023-03-21 23:02:07 -07:00
Eric Seppanen 9951b5bbf7 tools: improve filename regex in inspect_links
When merging, I sometimes leave *.orig files behind, and inspect_links
starts yelling about a lot of duplicate links. A little tweak to the
regex fixes that.
2022-08-16 22:18:54 -07:00
Eric Seppanen 13062f9e4c move DRAFT_TEMPLATE file to draft/
Editors or contributors who want to make changes to the issue formatting
or some of the boilerplate text will probably look in the draft/
directory first-- this makes the template file very obvious, so
hopefully changes will be made there instead of (or in addition to) the
weekly draft.
2022-05-19 13:40:02 -07:00
Nell Shamrell-Harrington 3c3b47a967
Merge pull request #3265 from ericseppanen/detect_truncated_titles
inspect_links: detect truncated link titles
2022-05-18 20:56:34 -07:00
Eric Seppanen df28acebfd inspect_links: detect truncated link titles
Links collected from Discord will sometimes be truncated to exactly 70
characters including a "..." suffix. If the script sees a title like
this, raise a warnings as it's probably truncated and should be
corrected.

If we're unlucky enough to trigger this warning by mistake, here are
some workarounds:
- Make any change to the title so that it's not exactly 70 characters
  (e.g. add an extra space between words)
- Replace the "..." with unicode "…"
2022-05-17 12:27:08 -07:00
Brad Gibson 288cd1da95
Language tweak in new `Call for Testing` section
Tweaked the language of the last sentence to avoid implying that the feature development would block on user testing.
2022-05-17 06:46:22 -07:00
Scott Schafer 4842fc3378 Add Call for Testing to DRAFT_TEMPLATE and 2022-05-18-this-week-in-rust.md 2022-05-16 13:00:07 -05:00
Eric Seppanen 051b19f880
Merge pull request #3182 from rust-lang/update-rfc-and-fcp-template
Update template for RFC & FCP sections to new format
2022-05-04 17:46:03 -07:00
Eric Seppanen f2893a4e53 create_draft: copy events from previous issue
The create_draft script will now search for a previous issue (under
draft and content) and then search that file for a range of lines that
look like the events list, and copy those lines over to the new draft
file.

If it has trouble finding the previous issue file, or can't find the
events list, it will print a warning and then leave a placeholder
comment in the draft issue where the events list should go.
2022-04-27 16:11:08 -07:00
Brad Gibson 4c7708442f
Updated template for RFC & FCP sections to new format
It's easier (and less error-prone--ask me how!) to replace a single-line comment with the RFC & FCP content each week.  Thanks @ericseppanen for the template upgrade!
2022-04-26 06:15:01 -07:00
Eric Seppanen 0210c89ed4 fix create_draft default date
The behavior was supposed to be:
> If no input date is specified, we assume that this will be run ~7 days
> before the next issue is released. Just in case an issue comes out
> early or late, we'll pick the Wednesday that is between 4 and 10 days
> in the future.

The code didn't actually do that though. Add the missing 4-day delta so
it works the way it was intended.
2022-04-22 14:52:08 -07:00
Eric Seppanen fb684a9c80 draft template: remove leftover RFC link
The template was built from a previous issue, and I forgot to remove a
link in the Approved RFCs section.
2022-04-22 14:51:28 -07:00
Eric Seppanen ad7f149156 create_draft: auto-compute directory paths
Instead of requiring the user to run this script from a specific
directory, compute the draft path from the location of the running
script. This means if you run the script from the tools/ directory (or
anywhere else), it will do the right thing.

Adds a commandline option to override the default path.
2022-04-11 11:50:48 -07:00
Eric Seppanen 7e288cfd04 add a script to create the issue draft
This creates a draft issue from a template file, filling in basic things
like the issue number, date, etc.
2022-04-07 21:39:28 -07:00
Eric Seppanen 6137a364e8 improve duplicate link detection
When checking for duplicate links:
- Assume http and https links to be the same.
- Ignore consecutive slashes and trailing slashes.

Consecutive slashes in the URL will trigger a warning; trailing slashes
or http links will not.
2022-02-16 19:51:14 -08:00
andrewpkq 923576b91a PR Followups 2022-02-05 14:20:28 -08:00
andrewpkq 05b823ae66 Adding events links URL generator 2022-02-01 07:47:55 -08:00
Eric Seppanen e133bbfc6e add a check for empty <li> tags
The Markdown module will sometimes emit nothing when it's confused by
the input syntax; therefore <li></li> is a sign that perhaps something
went wrong.
2022-01-08 19:58:52 -08:00
Eric Seppanen 701b722e75 fix broken inspect_markdown.py --file 2022-01-08 17:05:29 -08:00
Eric Seppanen 8f51edab2d warn if markdown contains an odd number of backticks 2022-01-08 16:17:37 -08:00
Eric Seppanen f5fd32b80b rename inspect_tags -> inspect_markdown
There are more markdown sanity-checks that are possible that aren't
tag-related.
2022-01-08 16:07:20 -08:00
Eric Seppanen 75b0d888f3 add a tool for detecting unrecognized html tags
The markdown syntax allows un-escaped < > characters to be emitted in
the html output. This is probably undesirable, as something like Vec<T>
will be interpreted as a tag.

This file imports some code from inspect_links, which might be a bad
design; separating "CLI tool" from "library" code is left for a future
commit.
2022-01-08 15:37:30 -08:00
Eric Seppanen 1576c02f91 inspect_links: all logging to stdout
In CI, stdout and stderr are interleaved weirdly, making the output
hard to read. To fix this, don't log messages to both-- just use stdout
for everything.
2022-01-06 12:42:04 -08:00
Eric Seppanen c1af9ece87 upgrade markdown requirement to 3.3.6
Github py-actions/py-dependency-install says 3.3.5 is yanked.
2022-01-04 14:33:15 -08:00
Eric Seppanen 73d371ebc9 add requirements.txt for tools/inspect_links.py
This both documents the dependencies as well as provides a one-line
command to install those dependencies (`pip -r requirements.txt`).
2021-11-24 18:15:43 -08:00
Eric Seppanen cf4da3874b search through more recent issues
Since old warnings are now silenced by default, it's easy to look
farther back in time for recycled links. 25 is probably a reasonable
number (~6 months).
2021-11-24 18:14:00 -08:00
Eric Seppanen eb426ed9fd silence warnings from old issues
Add the ability to only report on the N most recent issues, with N
defaulting to 1. This is probably what most people want, most of the
time (including in CI).
2021-11-24 18:11:48 -08:00
Eric Seppanen 041628bef0 inspect_links: inspect files in drafts/ also
Allow a list of paths on the command-line, separated by colons. The
default set of paths is 'content:draft' which seems to work with the
current PR workflow.
2021-11-24 17:57:28 -08:00
Eric Seppanen 54d756e1c5 do strict checks on all "rust community" subsections
Make the "strict" check smarter by allowing an 'h2' section policy to
apply to all subsections inside.

Change the (hardcoded) policy so that everything inside the "Updates
from Rust Community" gets strict checks.
2021-11-24 17:57:28 -08:00
Eric Seppanen 717e7a2e33 add block-list of tracking parameters
Instead of allow-listing sites that need http parameters, filter out
known analytics tracking parameters.

There's also a nice side-effect to re-constituting the URL using
urllib.parse.unsplit(): oddities like an empty anchor (trailing '#') or
empty parameter-list (trailing '?') can be flagged.
2021-11-24 17:57:28 -08:00
Eric Seppanen 25cae27ec9 add a script to inspect links and report problems
This script checks for malformed and duplicated links. The goal would be
to run it in CI to save the editors from the job of noticing that a link
isn't formatted correctly, or was submitted multiple times.
2021-11-24 17:57:28 -08:00