From 6d50cabd75d7009b6a5f235094436f0f200fd5c8 Mon Sep 17 00:00:00 2001 From: Paul Pfeister Date: Sat, 11 May 2024 00:38:44 -0400 Subject: [PATCH] Switch to Poetry --- pyproject.toml | 49 ++++++++++++++++++++++++------------------------- setup.cfg | 4 ---- 2 files changed, 24 insertions(+), 29 deletions(-) delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index 2bfb1cd47..86eee2207 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,30 +1,28 @@ [build-system] -requires = ["setuptools >= 61.0"] -build-backend = "setuptools.build_meta" +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" -[project.scripts] -sherlock = "sherlock:main" +[tool.poetry.dependencies] +python = "^3.12" -[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] +[tool.poetry] name = "Sherlock" -authors = [ - { name = "Sherlock Project" } -] +description = "Hunt down social media accounts by username across social networks" +version = "0.0.1" +homepage = "http://sherlock-project.github.io/" +repository = "https://github.com/sherlock-project/sherlock.git" +authors = [ "Sherlock Project" ] maintainers = [ - { name = "Siddharth Dushantha" }, - { name = "Matheus Felipe" }, - { name = "Sondreal" }, - { name = "Paul Pfeister" } + "Siddharth Dushantha", + "Matheus Felipe", + "Sondreal", + "Paul Pfeister" ] -description = "Hunt down social media accounts by username across social networks" readme = "README.md" -license = {file = "LICENSE"} -dynamic = ["dependencies", "version"] +packages = [ + { include = "sherlock" } +] +license = "MIT" keywords = [ "osint", "reconnaissance", "information gathering" ] classifiers = [ "Development Status :: 5 - Production/Stable", @@ -38,9 +36,10 @@ classifiers = [ "Topic :: Security" ] -[tool.setuptools.dynamic] -dependencies = { file = [ "requirements.txt" ] } -version = { attr = "sherlock.__version__" } +[tool.poetry.urls] +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-dir = {"" = "sherlock"} +[tool.poetry.scripts] +sherlock = "sherlock:main" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 8929bbae7..000000000 --- a/setup.cfg +++ /dev/null @@ -1,4 +0,0 @@ -[metadata] -name = Sherlock -author = Sherlock Project -url = http://sherlock-project.github.io/