public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/sherlock-project] f45: Update to 0.16.2
Date: Sat, 12 Sep 2026 18:42:50 GMT	[thread overview]
Message-ID: <178923857086.1.9598765858940126838.rpms-sherlock-project-24f2cb8e9cf1@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/sherlock-project
            Branch : f45
            Commit : 24f2cb8e9cf1ca652a1cd047a17ca4743df9ec0b
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2026-09-12T15:31:41-03:00
            Stats  : +4/-134 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/sherlock-project/c/24f2cb8e9cf1ca652a1cd047a17ca4743df9ec0b?branch=f45

            Log:
            Update to 0.16.2

Resolves: rhbz#2530250

---
diff --git a/0001-Remove-tor.patch b/0001-Remove-tor.patch
deleted file mode 100644
index 96f8666..0000000
--- a/0001-Remove-tor.patch
+++ /dev/null
@@ -1,122 +0,0 @@
-diff --git a/sherlock_project/sherlock.py b/sherlock_project/sherlock.py
-index 250175a..09caca4 100644
---- a/sherlock_project/sherlock.py
-+++ b/sherlock_project/sherlock.py
-@@ -171,8 +171,6 @@ def sherlock(
-     username: str,
-     site_data: dict[str, dict[str, str]],
-     query_notify: QueryNotify,
--    tor: bool = False,
--    unique_tor: bool = False,
-     dump_response: bool = False,
-     proxy: Optional[str] = None,
-     timeout: int = 60,
-@@ -188,8 +186,6 @@ def sherlock(
-     query_notify           -- Object with base type of QueryNotify().
-                               This will be used to notify the caller about
-                               query results.
--    tor                    -- Boolean indicating whether to use a tor circuit for the requests.
--    unique_tor             -- Boolean indicating whether to use a new tor circuit for each request.
-     proxy                  -- String indicating the proxy URL
-     timeout                -- Time in seconds to wait before timing out request.
-                               Default is 60 seconds.
-@@ -211,31 +207,9 @@ def sherlock(
-     # Notify caller that we are starting the query.
-     query_notify.start(username)
-     # Create session based on request methodology
--    if tor or unique_tor:
--        try:
--            from torrequest import TorRequest  # noqa: E402
--        except ImportError:
--            print("Important!")
--            print("> --tor and --unique-tor are now DEPRECATED, and may be removed in a future release of Sherlock.")
--            print("> If you've installed Sherlock via pip, you can include the optional dependency via `pip install 'sherlock-project[tor]'`.")
--            print("> Other packages should refer to their documentation, or install it separately with `pip install torrequest`.\n")
--            sys.exit(query_notify.finish())
--
--        print("Important!")
--        print("> --tor and --unique-tor are now DEPRECATED, and may be removed in a future release of Sherlock.")
--
--        # Requests using Tor obfuscation
--        try:
--            underlying_request = TorRequest()
--        except OSError:
--            print("Tor not found in system path. Unable to continue.\n")
--            sys.exit(query_notify.finish())
- 
--        underlying_session = underlying_request.session
--    else:
--        # Normal requests
--        underlying_session = requests.session()
--        underlying_request = requests.Request()
-+    underlying_session = requests.session()
-+    underlying_request = requests.Request()
- 
-     # Limit number of workers to 20.
-     # This is probably vastly overkill.
-@@ -359,10 +333,6 @@ def sherlock(
-             # Store future in data for access later
-             net_info["request_future"] = future
- 
--            # Reset identify for tor (if needed)
--            if unique_tor:
--                underlying_request.reset_identity()
--
-         # Add this site's results into final dictionary with all the other results.
-         results_total[social_network] = results_site
- 
-@@ -596,22 +566,6 @@ def main():
-         dest="output",
-         help="If using single username, the output of the result will be saved to this file.",
-     )
--    parser.add_argument(
--        "--tor",
--        "-t",
--        action="store_true",
--        dest="tor",
--        default=False,
--        help="Make requests over Tor; increases runtime; requires Tor to be installed and in system path.",
--    )
--    parser.add_argument(
--        "--unique-tor",
--        "-u",
--        action="store_true",
--        dest="unique_tor",
--        default=False,
--        help="Make requests over Tor with new Tor circuit after each request; increases runtime; requires Tor to be installed and in system path.",
--    )
-     parser.add_argument(
-         "--csv",
-         action="store_true",
-@@ -755,22 +709,10 @@ def main():
-     except Exception as error:
-         print(f"A problem occurred while checking for an update: {error}")
- 
--    # Argument check
--    # TODO regex check on args.proxy
--    if args.tor and (args.proxy is not None):
--        raise Exception("Tor and Proxy cannot be set at the same time.")
--
-     # Make prompts
-     if args.proxy is not None:
-         print("Using the proxy: " + args.proxy)
- 
--    if args.tor or args.unique_tor:
--        print("Using Tor to make requests")
--
--        print(
--            "Warning: some websites might refuse connecting over Tor, so note that using this option might increase connection errors."
--        )
--
-     if args.no_color:
-         # Disable color output.
-         init(strip=True, convert=False)
-@@ -871,8 +813,6 @@ def main():
-             username,
-             site_data,
-             query_notify,
--            tor=args.tor,
--            unique_tor=args.unique_tor,
-             dump_response=args.dump_response,
-             proxy=args.proxy,
-             timeout=args.timeout,

diff --git a/sherlock-project.spec b/sherlock-project.spec
index bd82d11..268ea1e 100644
--- a/sherlock-project.spec
+++ b/sherlock-project.spec
@@ -1,5 +1,5 @@
 %global forgeurl https://github.com/sherlock-project/sherlock
-Version:        0.16.0
+Version:        0.16.2
 %forgemeta
 Name:           sherlock-project
 Release:        %autorelease
@@ -8,8 +8,6 @@ License:        MIT
 URL:            %{forgeurl}
 Source:         %{forgesource}
 
-Patch0:         0001-Remove-tor.patch
-
 BuildArch:      noarch
 BuildRequires:  help2man
 BuildRequires:  python3-devel
@@ -22,21 +20,15 @@ websites. New targets are tested and implemented regularly.}
 
 
 %prep
-%forgeautosetup -p1
-sed -i '/torrequest/d' 'pyproject.toml' # Pending upstream removal
+%forgeautosetup -v
 
 %generate_buildrequires
-# Relax requirements on pandas and requests, since Fedora Rawhide has newer versions
-# Also remove torrequest since we patch out tor.
+# Relax requirements on pandas, since Fedora Rawhide has newer versions
 sed -i 's/pandas = "\^2.2.1"/pandas = ">=2.2.1"/' pyproject.toml
 %pyproject_buildrequires -t
 
 
 %build
-# Project now uses Poetry and dynamic versioning, so pyproject version is 0
-# __init__ is currently the single source of truth for version info
-sherlock_version=$(sed -n 's/^__version__ *= *"\([0-9.]*\)"/\1/p' sherlock_project/__init__.py)
-sed -r -i "s/^version *= .*?$/version = \"$sherlock_version\"/" pyproject.toml
 %pyproject_wheel
 
 

diff --git a/sources b/sources
index c53db74..19c5f63 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (sherlock-0.16.0.tar.gz) = 0adba141dde2bde1603ff2a35ae01ddc427d08de777469bccb8b82f8f6635482d20581f2e8eed5bfa5df93bfefa23c4ff2faeed7d8e99b3f3a1a8c32180f96f6
+SHA512 (sherlock-0.16.2.tar.gz) = 21d27ce5ae63071f61b09719ee2a492d753deb903cb5e12c83df6d100eaa78cd96ee01f0db649d932e6ccb2f91ea7dbfe3a06537a7fead9b35f8a96d5d93265e

                 reply	other threads:[~2026-09-12 18:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178923857086.1.9598765858940126838.rpms-sherlock-project-24f2cb8e9cf1@fedoraproject.org \
    --to=rosset.filipe@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox