Package Details: fanficfare-git 4.32.3.r21.g56d1cf1-1

Git Clone URL: https://aur.archlinux.org/fanficfare-git.git (read-only, click to copy)
Package Base: fanficfare-git
Description: Tool to make eBooks from stories on fanfiction and other websites
Upstream URL: https://github.com/JimmXinu/FanFicFare
Licenses: Apache-2.0, GPL-3.0-only
Conflicts: fanficfare
Provides: fanficfare
Submitter: eschwartz
Maintainer: xiota
Last Packager: xiota
Votes: 3
Popularity: 0.000000
First Submitted: 2015-04-21 18:37 (UTC)
Last Updated: 2024-03-26 04:09 (UTC)

Latest Comments

1 2 3 Next › Last »

xiota commented on 2024-06-10 09:55 (UTC)

@cerberus2877 Please use pastebins when more than a few lines of text are needed.

Have you tried rebuilding python-cloudscraper?

cerberus2877 commented on 2024-06-10 08:36 (UTC) (edited on 2024-06-10 08:43 (UTC) by cerberus2877)

First time on here so please let me know if i'm not following how one is supposed to do this (:

Getting an error regarding the python cloudscraper module on launch of calibre. Let me known if I can provide anymore info of if I should direct this question else where. Thank you.


Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/ui.py", line 147, in __init__
    ac = self.init_iaction(action)
         ^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/calibre/calibre/gui2/ui.py", line 165, in init_iaction
    ac = action.load_actual_plugin(self)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.fanficfare_plugin.__init__", line 121, in load_actual_plugin
    return InterfaceActionBase.load_actual_plugin(self,gui)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/calibre/calibre/customize/__init__.py", line 659, in load_actual_plugin
    ac = getattr(importlib.import_module(mod), cls)(gui,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 205, in exec_module
    exec(compiled, module.__dict__)
  File "calibre_plugins.fanficfare_plugin.fff_plugin", line 77, in <module>
    from fanficfare import adapters, exceptions
  File "/usr/lib/python3.12/site-packages/fanficfare/adapters/__init__.py", line 29, in 
<module
    from .. import configurable as configurable
  File "/usr/lib/python3.12/site-packages/fanficfare/configurable.py", line 42, in 
<module>
    from . import fetchers
  File "/usr/lib/python3.12/site-packages/fanficfare/fetchers/__init__.py", line 19, in 
<module>
    from .fetcher_cloudscraper import CloudScraperFetcher
  File "/usr/lib/python3.12/site-packages/fanficfare/fetchers/fetcher_cloudscraper.py", line 22, in <module>
    import cloudscraper
ModuleNotFoundError: No module named 'cloudscraper'

gesh commented on 2024-03-26 17:42 (UTC)

Fair enough

xiota commented on 2024-03-26 17:10 (UTC)

The standard VCS version format is constructed to be comparable with stable releases. Use the git hash to communicate with upstream.

gesh commented on 2024-03-26 16:35 (UTC)

Very well -- though note that this might make some communications with upstream more difficult. Your package, your choice, though.

xiota commented on 2024-03-26 16:07 (UTC)

This is a switchable package. It can be used to make a git or stable package by changing a variable. I make some packages this way when I might need both.

The package intentionally uses and references tagged releases. It intentionally excludes prerelease and other non-relevant tags.

gesh commented on 2024-03-26 13:51 (UTC) (edited on 2024-03-26 13:57 (UTC) by gesh)

OK, fair enough. Congratulations on the adoption -- am I reading correctly that you're using this as a split package?

Upstream doesn't always tag numbered releases, so I've been force-tagging commits editing the version line in pyproject.toml to sync up the version numbers, perhaps this may be useful here?

diff --git a/PKGBUILD b/PKGBUILD
index 3d63992..769e976 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@ unset _pkgtype
 # basic info
 _pkgname="fanficfare"
 pkgname="$_pkgname${_pkgtype:-}"
-pkgver=4.32.3.r21.g56d1cf1
+pkgver=4.32.12.r0.g56d1cf1
 pkgrel=1
 pkgdesc="Tool to make eBooks from stories on fanfiction and other websites"
 url="https://github.com/JimmXinu/FanFicFare"
@@ -82,6 +82,9 @@ else

   pkgver() {
     cd "$_pkgsrc"
+    git tag -f \
+        v"$(grep 'version *=' pyproject.toml | sed 's/.*"\(.*\)".*/\1/')" \
+        "$(git blame -L '/version *=/,+1' pyproject.toml -p | head -n1 | cut -d' ' -f1)"
     local _pkgver=$(
       git describe --long --tags --abbrev=7 --exclude='*[a-zA-Z][a-zA-Z]*' \
         | sed -E 's/^[^0-9]*//;s/-([^-]*-g)/+r\1/;s/-/./g'

Also, note your exclusion expression in git describe also forbids rc and alpha-style versions -- presumably, this is not the intent?

Kido commented on 2024-03-25 18:52 (UTC)

Sorry, I don't use arch anymore and distrobox arch refuses to start, so I can't maintain this package. Disowned.

xiota commented on 2024-03-25 15:00 (UTC)

Note: python-setuptools is still needed (in addition to -wheel, -installer, -build) because it is referenced in the toml file.