Migrates to a new packaging scheme

This is easier to release.
This commit is contained in:
2025-11-27 16:39:00 -07:00
parent afeeeedf15
commit 8f9aab27c2
13 changed files with 25 additions and 50 deletions

2
.gitignore vendored
View File

@@ -2,4 +2,6 @@
*.log
**/__pycache__
*~
src/*.egg-info
dist/
index.json

View File

@@ -1,20 +0,0 @@
# This CLI tool allows for the download and packaging of various internet comics into .cbz files.
# Copyright (C) 2025 Markil 3
# http://www.singlepilot.net
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from comic_download.__main__ import __main__
if __name__ == "__main__":
__main__()

View File

@@ -1,5 +1,26 @@
[build-system]
requires = [
"setuptools"
"setuptools >= 80.9.0"
]
build-backend = "setuptools.build_meta"
[project]
name = "comic_download"
version = "0.0.1"
authors = [
{name = "Markil 3", email = "markil3@singlepilot.net"}
]
description = "An application to download comics from various sources to the local hard drive."
readme = "README.md"
keywords = ["comic", "download", "cbz", "ebook"]
dependencies = [
"requests",
"beautifulsoup4",
"lxml",
"pillow",
"atproto",
"pycryptodome",
]
[project.scripts]
comic_download = "comic_download.__main__:__main__"

View File

@@ -3,3 +3,4 @@ beautifulsoup4
lxml
pillow
atproto
pycryptodome

View File

@@ -1,29 +0,0 @@
import os
from setuptools import find_packages, setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='comic_download',
packages=find_packages(include=['comic_download']),
version='0.0.1',
description='An application to download comics from various sources to the local hard drive.',
long_description=read('README.md'),
long_description_content_type='text/markdown',
author='Copyrate',
license='gpl-3.0',
url='https://git.singlepilot.net/copyrate/ComicDownload',
install_requires=[
'requests',
'beautifulsoup4',
'lxml',
'pillow',
'atproto'
],
entry_points={
'console_scripts': [
'comic-download = comic_download.__main__:__main__'
]
}
)