Switch to Poetry

This commit is contained in:
Paul Pfeister 2024-05-15 23:34:37 -04:00
parent 0ecb496ae9
commit fba6432f40
7 changed files with 56 additions and 53 deletions

View file

@ -27,11 +27,11 @@
[![PyPI - Version](https://img.shields.io/pypi/v/sherlock-project?logo=PyPi&label=PyPI&color=darkgreen)][ext_pypi] [![Docker Image Version](https://img.shields.io/docker/v/sherlock/sherlock?sort=semver&logo=docker&label=Docker&color=darkgreen)][docs_docker] [![homebrew version](https://img.shields.io/homebrew/v/sherlock?logo=Homebrew&color=darkgreen)][ext_brew] [![PyPI - Version](https://img.shields.io/pypi/v/sherlock-project?logo=PyPi&label=PyPI&color=darkgreen)][ext_pypi] [![Docker Image Version](https://img.shields.io/docker/v/sherlock/sherlock?sort=semver&logo=docker&label=Docker&color=darkgreen)][docs_docker] [![homebrew version](https://img.shields.io/homebrew/v/sherlock?logo=Homebrew&color=darkgreen)][ext_brew]
| Method | Command | Notes | | | Command | Notes |
| - | - | - | | - | - | - |
| pypi | `pipx install sherlock-project` | `pip` may be used in place of `pipx` | | PyPI | `pipx install sherlock-project` | `pip` may be used in place of `pipx` |
| brew | `brew install sherlock` | Community supported | | Homebrew | `brew install sherlock` | Community supported |
| docker | `docker pull sherlock/sherlock` | | | Docker | `docker pull sherlock/sherlock` | |
### Alternative guides and methods ### Alternative guides and methods

View file

@ -2,17 +2,12 @@
<p align=center> <p align=center>
<br> <br>
<a href="https://sherlock-project.github.io/" target="_blank"><img src="https://user-images.githubusercontent.com/27065646/53551960-ae4dff80-3b3a-11e9-9075-cef786c69364.png"/></a> <a href="https://sherlock-project.github.io/" target="_blank"><img src="https://www.kali.org/tools/sherlock/images/sherlock-logo.svg" width="25%"/></a>
<br> <br>
<span>Hunt down social media accounts by username across <a href="https://github.com/sherlock-project/sherlock/blob/master/sites.md">social networks</a></span> <strong><span>Hunt down social media accounts by username across <a href="https://github.com/sherlock-project/sherlock/blob/master/sites.md">400+ social networks</a></span></strong>
<br><br>
<span>Additional documentation can be found at our <a href="https://github.com/sherlock-project/sherlock/">GitHub repository</a></span>
<br> <br>
<span>Additional documentation can be found on our <a href="https://github.com/sherlock-project/sherlock/">GitHub repository</a></span>
<br>
</p>
<p align="center">
<img width="70%" height="70%" src="https://user-images.githubusercontent.com/27065646/219638267-a5e11090-aa6e-4e77-87f7-0e95f6ad5978.png"/>
</a>
</p> </p>
## Usage ## Usage
@ -36,11 +31,12 @@ To search for more than one user:
```bash ```bash
$ sherlock user1 user2 user3 $ sherlock user1 user2 user3
``` ```
<br>
## Star History ___
<picture> <br>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=sherlock-project/sherlock&type=Date&theme=dark" /> <p align="center">
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=sherlock-project/sherlock&type=Date" /> <img width="70%" height="70%" src="https://user-images.githubusercontent.com/27065646/219638267-a5e11090-aa6e-4e77-87f7-0e95f6ad5978.png"/>
<img alt="Sherlock Project Star History Chart" src="https://api.star-history.com/svg?repos=sherlock-project/sherlock&type=Date" /> </a>
</picture> </p>

View file

@ -1,30 +1,26 @@
[build-system] [build-system]
requires = ["setuptools >= 61.0"] requires = [ "poetry-core>=1.8.0", "poetry-dynamic-versioning>1.0.0,<2.0.0" ]
build-backend = "setuptools.build_meta" build-backend = "poetry_dynamic_versioning.backend"
[project.scripts] [tool.poetry-dynamic-versioning]
sherlock = "sherlock:main" enable = true
vcs = "git"
[project.urls] [tool.poetry]
Homepage = "http://sherlock-project.github.io/"
Repository = "https://github.com/sherlock-project/sherlock.git"
Issues = "https://github.com/sherlock-project/sherlock/issues"
[project]
name = "sherlock-project" name = "sherlock-project"
version = "0.0.0"
description = "Hunt down social media accounts by username across social networks"
license = "MIT"
authors = [ authors = [
{ name = "Siddharth Dushantha" } "Siddharth Dushantha"
] ]
maintainers = [ maintainers = [
{ name = "Matheus Felipe" }, "Paul Pfeister",
{ name = "Sondre Karlsen Dyrnes" }, "Matheus Felipe",
{ name = "Paul Pfeister" } "Sondre Karlsen Dyrnes"
] ]
description = "Hunt down social media accounts by username across social networks"
readme = "docs/pyproj/README.md" readme = "docs/pyproj/README.md"
# Do not set license to file. Causes issues with rpm packaging for some reason. packages = [ { include = "sherlock" } ]
license = {text = "MIT"}
dynamic = ["dependencies", "version"]
keywords = [ "osint", "reconnaissance", "information gathering" ] keywords = [ "osint", "reconnaissance", "information gathering" ]
classifiers = [ classifiers = [
"Development Status :: 5 - Production/Stable", "Development Status :: 5 - Production/Stable",
@ -37,12 +33,24 @@ classifiers = [
"Topic :: Security" "Topic :: Security"
] ]
[tool.setuptools.dynamic]
dependencies = { file = [ "requirements.txt" ] }
version = { attr = "sherlock.__version__" }
[tool.setuptools] [tool.poetry.urls]
package-dir = {"" = "sherlock"} Homepage = "http://sherlock-project.github.io/"
Repository = "https://github.com/sherlock-project/sherlock.git"
Issues = "https://github.com/sherlock-project/sherlock/issues"
[tool.setuptools.package-data] [tool.poetry.dependencies]
"*" = ["*.json"] python = "^3.8"
certifi = "^2019.6.16"
colorama = "^0.4.1"
PySocks = "^1.7.0"
requests = "^2.22.0"
requests-futures = "^1.0.0"
stem = "^1.8.0"
torrequest = "^0.1.0"
pandas = ">1.0.0"
openpyxl = "^3.0.10"
exrex = "^0.11.0"
[tool.poetry.scripts]
sherlock = 'sherlock.sherlock:main'

View file

@ -3,7 +3,7 @@
This module defines the objects for notifying the caller about the This module defines the objects for notifying the caller about the
results of queries. results of queries.
""" """
from result import QueryStatus from sherlock.result import QueryStatus
from colorama import Fore, Style from colorama import Fore, Style
import webbrowser import webbrowser

View file

@ -21,10 +21,10 @@ import requests
from requests_futures.sessions import FuturesSession from requests_futures.sessions import FuturesSession
from torrequest import TorRequest from torrequest import TorRequest
from result import QueryStatus from sherlock.result import QueryStatus
from result import QueryResult from sherlock.result import QueryResult
from notify import QueryNotifyPrint from sherlock.notify import QueryNotifyPrint
from sites import SitesInformation from sherlock.sites import SitesInformation
from colorama import init from colorama import init
from argparse import ArgumentTypeError from argparse import ArgumentTypeError

View file

@ -6,9 +6,9 @@ import os
import os.path import os.path
import unittest import unittest
import sherlock import sherlock
from result import QueryStatus from sherlock.result import QueryStatus
from notify import QueryNotify from sherlock.notify import QueryNotify
from sites import SitesInformation from sherlock.sites import SitesInformation
import warnings import warnings

View file

@ -1,4 +1,3 @@
import importlib
import unittest import unittest
import sys import sys
sys.path.append('../') sys.path.append('../')