From f39af87630d3a12bcb6809f482ec3673670a669d Mon Sep 17 00:00:00 2001 From: king-millez Date: Sat, 27 Apr 2024 00:15:37 +1000 Subject: [PATCH] 16: Fix Poetry release system --- pyproject.toml | 6 +++++- requirements.txt | 1 - setup.py | 28 ---------------------------- 3 files changed, 5 insertions(+), 30 deletions(-) delete mode 100644 requirements.txt delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml index 06cd443..3cce0ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,11 @@ [tool.poetry] name = "snapmap-archiver" -version = "2.1.2" +version = "2.2.0" description = "Download all Snap Map content from a specific location." readme = "README.md" authors = ["Miles Greenwark "] license = "GPL-3.0-or-later" +packages = [{include = "snapmap_archiver"}] [tool.poetry.dependencies] python = "^3.10" @@ -12,6 +13,9 @@ requests = "^2.25.1" [tool.poetry.dev-dependencies] +[tool.poetry.scripts] +snapmap-archiver = "snapmap_archiver:main" + [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 6610326..0000000 --- a/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -requests==2.25.1 diff --git a/setup.py b/setup.py deleted file mode 100644 index 0903388..0000000 --- a/setup.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -"""setup.py: setuptools control.""" - -from setuptools import setup - -version = "2.1.2" -with open("README.md", "r") as f: - long_descr = f.read() - -setup( - name="snapmap-archiver", - packages=["snapmap_archiver"], - entry_points={"console_scripts": ["snapmap-archiver = snapmap_archiver:main"]}, - version=version, - description="Download all Snap Map content from a specific location.", - long_description=long_descr, - author="Miles Greenwark", - author_email="millez.dev@gmail.com", - url="https://github.com/king-millez/snapmap-archiver", - python_requires=">=3.10", - install_requires=[ - "certifi", - "chardet", - "idna", - "requests", - "urllib3", - ], -)