Skip to content
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

dpaste.com API correction #12712

Merged
merged 3 commits into from Mar 26, 2021
Merged

dpaste.com API correction #12712

merged 3 commits into from Mar 26, 2021

Conversation

pbx
Copy link
Contributor

@pbx pbx commented Nov 28, 2020

Hello good people of IPython!

I run dpaste.com, which IPython uses via the %pastebin magic. In July I updated my Pygments version, which caused the python3 syntax key that IPython uses to disappear. I special-cased this on my end so that users wouldn't hit an error, but this PR fixes it at the source.

(TLDR on the syntax name change on the Pygments end: python became python2, and python3 became python.)

I also added a UA header to the request, to comply with the "automated use" section of the dpaste.com TOS (though the %pastebin magic is more "semi-automated" than automated really).

This is my first IPython PR. I've read the contributor guidelines and believe I'm following expected workflow, but please let me know if more is needed (e.g. if I should create an Issue to track this). I don't have a local development instance of IPython, so apologies if the Travis build triggered by this PR finds some dumb error. I'll fix any such.

@pbx
Copy link
Contributor Author

pbx commented Nov 28, 2020

OK, one build failed, but I can't see that it's related to my changes.

SQLite is complaining about attempted writes to a read-only DB, which leads to: The command "pytest --maxfail=10 IPython" exited with 1.

I see one other recent PR build with what looks like the same problem.

Help?

@Carreau Carreau added this to the 7.19 milestone Jan 11, 2021
@Carreau
Copy link
Member

Carreau commented Jan 11, 2021

Thanks you very much, and congrats on your first PR, apologies the last few month have been busy and I need to catch up with all the recent issues and code suggestion. Yours looks good, when I have more time I'll test it locally and merge it; Thanks !

@Carreau Carreau modified the milestones: 7.19, 7.20, 7.21 Jan 30, 2021
@Carreau Carreau modified the milestones: 7.21, 7.22 Feb 26, 2021
@Carreau
Copy link
Member

Carreau commented Mar 26, 2021

Failures seem completely unrelated, thanks a lot for running dpast.com and any trouble we might have caused you.
Merging this and this should be released in the next few hours.

@Carreau Carreau merged commit b0383f7 into ipython:master Mar 26, 2021
meeseeksmachine pushed a commit to meeseeksmachine/ipython that referenced this pull request Mar 26, 2021
Carreau added a commit that referenced this pull request Mar 27, 2021
…712-on-7.x

Backport PR #12712 on branch 7.x (dpaste.com API correction)
@pbx pbx deleted the dpaste-api-correction branch March 29, 2021 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants