GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Modernize by alexfikl · Pull Request #2 · papis/python-doi

Conversation

@alexfikl

@alexfikl alexfikl commented Mar 16, 2024

Copy link
Copy Markdown

This updates python-doi to be a bit more in line with papis and generally work with newer linting and stuff.

The commits should be fairly self-contained. Let me know if you spot anything wrong!
I have some followup things to clean up the docs as well.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@alexfikl
makefile: simplify targets
f27f38d
@alexfikl

alexfikl commented Mar 16, 2024

Copy link
Copy Markdown
Author

Also, this repository doesn't seem to have issues enabled. It would be good to turn that on as well?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hseg

hseg commented Apr 17, 2025

Copy link
Copy Markdown

Any progress on getting this merged? I don't see anything that should cause issue.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexfikl

alexfikl commented Apr 17, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Author

I'm afraid I don't have access to this repo to merge it. @alejandrogallo Any chance you can find some time to give it a look and merge it? 😁

EDIT: As far as I can tell the tests still pass (locally), but it's probably a good idea to re-run the CI anyway before merging.

EDIT2: Enabled support for testing on Python 3.13 as well! 😁

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

alexfikl added 2 commits April 17, 2025 20:56
@alexfikl
setup: switch to pyproject and hatchling
3a03a4a
@alexfikl
ci: remove travis.yaml
758318b
@alexfikl
alexfikl force-pushed the modernize branch from 6e6e03a to cb2f656 Compare April 17, 2025 17:56
alexfikl added 3 commits April 17, 2025 20:57
@alexfikl
ci: add tests to ci
507acb0
@alexfikl
style: fix flake8 issues
a64941e
@alexfikl
tests: fix tests
844fdfd
@alexfikl
alexfikl force-pushed the modernize branch from cb2f656 to 844fdfd Compare April 17, 2025 17:57
@hseg hseg mentioned this pull request Jun 9, 2025
RFC: What to do with unmaintained dependencies? papis/papis#1030
Closed
4 tasks
@hseg

hseg commented Jun 23, 2025

Copy link
Copy Markdown

Trying to use this, I notice I needed to pass --ignore=docs to pytest, otherwise, it tries to collect from there as well and fails with

ImportError while importing test module '/home/gesh/aur/1+mine/python/python-doi/src/python-doi/docs/conf.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
docs/conf.py:130: in <module>
    from sphinx.ext.autodoc import (
E   ImportError: cannot import name 'InstanceAttributeDocumenter' from 'sphinx.ext.autodoc' (/usr/lib/python3.13/site-packages/sphinx/ext/autodoc/__init__.py)

Although the Makefile masks this by passing the relevant source directories to pytest directly, it'd be nice for python -m pytest to do the Right Thing™.

Anything left to get this merged @alejandrogallo ?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hseg

hseg commented Jun 23, 2025

Copy link
Copy Markdown

... Actually, it turns out that on my system, this PR suffices to get the tests to pass, with no other trickery needed. I don't know what happened in the last two months to make my bug no longer reproduce, but it seems #3 can be closed without merging it (or merged if we want that redundancy, though we'd probably want to drop the commit introducing rerunfailures if it's that unnecessary). I'll rebase it on top of this PR to make it easier to merge, presuming we're merging this one in in any case.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hseg

hseg commented Jun 23, 2025

Copy link
Copy Markdown

Ah, I see what happened -- 844fdfd fixed the urls the tests point to, making the tests no longer break

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hseg hseg mentioned this pull request Jun 24, 2025
Resolve redirects when testing URLs for equality #3
Open
@alexfikl

alexfikl commented Jun 24, 2025

Copy link
Copy Markdown
Author

Trying to use this, I notice I needed to pass --ignore=docs to pytest, otherwise, it tries to collect from there as well and fails with

Just looked at docs/conf.py and it looks like it really needs a cleanup. I'll get to that after this PR gets in.

Ah, I see what happened -- 844fdfd fixed the urls the tests point to, making the tests no longer break

I think it's ok to change these because they're just checking that the DOI parsing works as expected. However, we might want to add some more tests to check that we manage to follow redirects properly and whatnot. Maybe a follow-up to #3 could go in that direction?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hseg

hseg commented Jun 29, 2025

Copy link
Copy Markdown

They're just checking that the DOI parsing works as expected

Yeah, I see it's just checking the https://doi.org/api/handles/ endpoint works as expected. I am trying to investigate getting the redirect code to work for robustness' sake, but OTOH given the 403's the redirected URLs are giving, I'm suspecting some of these sites aren't very scraper-friendly, and so are likely to be difficult to support.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexfikl

alexfikl commented Jan 7, 2026

Copy link
Copy Markdown
Author

Closed in favor of #3.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexfikl alexfikl closed this Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@alexfikl @hseg
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.