View Single Post
Old 03-06-2023, 12:33 PM   #8178
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,024
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by mx400 View Post
i just cloned the project from the github page but i'm struggling the get all the dependencies right. What would be the correct stepts to set it up for adding support to a new site?
I honestly haven't set up a new dev dir in years. Let's see...

There's a makeplugin.py file to make the plugin zip, so you need python CLI to run that, and I believe that script needs the package six installed (using pip).

Then to install the plugin, run calibre-customize -a FanFicFare.zip.

To run as CLI in your dev dir, I'd:
  1. Install the fanficfare package (with pip) to insure all the deps are installed.
  2. set env var PYTHONPATH=. (or to your dev dir)
  3. Run fanficfare\cli.py -d

Advanced option: the CLI has a developer option --save-cache, if you also have use_basic_cache:true for your new site, then the CLI will save the cached pages so you can run tests over and over without hitting the server again.
JimmXinu is offline   Reply With Quote