Skip to content

Commit

Permalink
Merge pull request #2116 from ppfeister/feature/pyproject
Browse files Browse the repository at this point in the history
Prepare PyProject for PyPi
  • Loading branch information
sdushantha committed May 11, 2024
2 parents f794e23 + 1698928 commit b83f5be
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ __pycache__/
# Pip
src/

# Pip / PyProject Devel & Installation
*.egg-info/

# Jupyter Notebook
.ipynb_checkpoints
*.ipynb
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ LABEL org.label-schema.vcs-ref=$VCS_REF \
COPY --from=build /wheels /wheels
COPY . /opt/sherlock/

RUN pip3 install --no-cache-dir -r requirements.txt -f /wheels \
RUN pip3 install --no-cache-dir . -f /wheels \
&& rm -rf /wheels

WORKDIR /opt/sherlock/sherlock

ENTRYPOINT ["python", "sherlock.py"]
ENTRYPOINT ["sherlock"]
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,13 @@
## Installation

```console
# clone the repo
$ git clone https://github.com/sherlock-project/sherlock.git

# change the working directory to sherlock
$ cd sherlock

# install the requirements
$ python3 -m pip install -r requirements.txt
pip install git+https://github.com/sherlock-project/sherlock.git
```

## Usage

```console
$ python3 sherlock --help
$ sherlock --help
usage: sherlock [-h] [--version] [--verbose] [--folderoutput FOLDEROUTPUT]
[--output OUTPUT] [--tor] [--unique-tor] [--csv] [--xlsx]
[--site SITE_NAME] [--proxy PROXY_URL] [--json JSON_FILE]
Expand Down
46 changes: 46 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"

[project.scripts]
sherlock = "sherlock:main"

[project.urls]
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"
authors = [
{ name = "Sherlock Project" }
]
maintainers = [
{ name = "Siddharth Dushantha" },
{ name = "Matheus Felipe" },
{ name = "Sondre Karlsen Dyrnes" },
{ name = "Paul Pfeister" }
]
description = "Hunt down social media accounts by username across social networks"
readme = "README.md"
license = {file = "LICENSE"}
dynamic = ["dependencies", "version"]
keywords = [ "osint", "reconnaissance", "information gathering" ]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Communications",
"Topic :: Security"
]

[tool.setuptools.dynamic]
dependencies = { file = [ "requirements.txt" ] }
version = { attr = "sherlock.__version__" }

[tool.setuptools]
package-dir = {"" = "sherlock"}
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[metadata]
name = Sherlock
author = Sherlock Project
url = http://sherlock-project.github.io/

0 comments on commit b83f5be

Please sign in to comment.