PlaidWeb / Publ

Flexible publishing system for the web
http://publ.beesbuzz.biz/
MIT License
40 stars 4 forks source link

Can't install without the `auth` extras #560

Closed fluffy-critter closed 7 months ago

fluffy-critter commented 7 months ago

Expected Behavior

Should be able to run without importing Authl et al

Current Behavior

On a fresh environment without auth loaded, ImportError from tokens.py:

  File "/Users/fluffy/Library/Caches/pypoetry/virtualenvs/sockpuppet-us-8iqWwwI--py3.11/lib/python3.11/site-packages/publ/entry.py", line 18, in <module>
    from . import (caching, cards, html_entry, links, markdown, model, path_alias,
  File "/Users/fluffy/Library/Caches/pypoetry/virtualenvs/sockpuppet-us-8iqWwwI--py3.11/lib/python3.11/site-packages/publ/path_alias.py", line 11, in <module>
    from . import model, user
  File "/Users/fluffy/Library/Caches/pypoetry/virtualenvs/sockpuppet-us-8iqWwwI--py3.11/lib/python3.11/site-packages/publ/user.py", line 19, in <module>
    from . import caching, model, tokens, utils
  File "/Users/fluffy/Library/Caches/pypoetry/virtualenvs/sockpuppet-us-8iqWwwI--py3.11/lib/python3.11/site-packages/publ/tokens.py", line 14, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'

Possible Solution

Since the tokens functionality doesn't rely on authl, requests should be added to Publ's dependencies.

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Context