From 549094765795aef6868e4be270e4d3c44345c09b Mon Sep 17 00:00:00 2001 From: erinhmclark Date: Tue, 31 Dec 2024 14:09:38 +0000 Subject: [PATCH] Add packaging to Poetry. --- poetry.lock | 30 +----------------------------- pyproject.toml | 37 +++++++++++++++++++++++++++++++++++-- 2 files changed, 36 insertions(+), 31 deletions(-) diff --git a/poetry.lock b/poetry.lock index eb57182..1f010ed 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2630,23 +2630,6 @@ typing_extensions = ">=4.9,<5.0" urllib3 = {version = ">=1.26,<3", extras = ["socks"]} websocket-client = ">=1.8,<2.0" -[[package]] -name = "setuptools-pipfile" -version = "0.7.0" -description = "Dependency management via Pipfile" -optional = false -python-versions = "*" -files = [ - {file = "setuptools-pipfile-0.7.0.tar.gz", hash = "sha256:54cb6bf6a662fe74951425d509772a5302d1cf723d9a3654d19c2468d3d80b6b"}, - {file = "setuptools_pipfile-0.7.0-py2.py3-none-any.whl", hash = "sha256:f6049892af8e8233a438cf00fb4477fe81de3ea0e8e90c1241d196cb40f703b5"}, -] - -[package.dependencies] -toml = "*" - -[package.extras] -docs = ["mkdocs-material"] - [[package]] name = "six" version = "1.17.0" @@ -2757,17 +2740,6 @@ requests = "*" rich = "*" tqdm = "*" -[[package]] -name = "toml" -version = "0.10.2" -description = "Python Library for Tom's Obvious, Minimal Language" -optional = false -python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" -files = [ - {file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"}, - {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"}, -] - [[package]] name = "tomli" version = "2.2.1" @@ -3302,4 +3274,4 @@ test = ["pytest (>=8.1,<9.0)"] [metadata] lock-version = "2.0" python-versions = "~3.10" -content-hash = "1e22d7a4eed6112132c5db33c5765a3981320f3624e1aef7504cca78908b424b" +content-hash = "775c2528c0d304beb137578a6c889979572e71190c1a337ea75329fcd3351f9e" diff --git a/pyproject.toml b/pyproject.toml index 57b90c2..bb942ee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,35 @@ [tool.poetry] name = "auto-archiver" -version = "0.13.0" +version = "0.13.0" # Ensure this matches your versioning strategy description = "Automatically archive links to videos, images, and social media content from Google Sheets (and more)." authors = ["Bellingcat "] license = "MIT" readme = "README.md" +keywords = ["archive", "oosi", "osint", "scraping"] +homepage = "https://github.com/bellingcat/auto-archiver" +repository = "https://github.com/bellingcat/auto-archiver" +documentation = "https://github.com/bellingcat/auto-archiver" +classifiers = [ + "Intended Audience :: Developers", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3" +] +packages = [ + { include = "auto_archiver", from = "src" } +] +# Mimicing setup.cfg +#packages = [ +# {include = "auto_archiver*", exclude = [ +# "examples*", +# ".eggs*", +# "build*", +# "secrets*", +# "tmp*", +# "docs*", +# "src.tests*" +# ]} +#] [tool.poetry.dependencies] python = "~3.10" @@ -49,7 +74,15 @@ certvalidator = "*" [tool.poetry.dev-dependencies] autopep8 = "*" -setuptools-pipfile = "*" + +[tool.poetry.scripts] +auto-archiver = "auto_archiver.__main__:main" + +#[tool.poetry.extras] +# Mimicing setup.cfg +# pdf = ["ReportLab>=1.2", "RXP"] +# rest = ["docutils>=0.3", "pack==1.1", "pack==1.3"] + [build-system] requires = ["poetry-core>=1.0.0"]