diff --git a/Dockerfile b/Dockerfile index 53bca1a..3f24ce1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt COPY . . -RUN python setup.py install +RUN pip install . WORKDIR /output ENTRYPOINT ["nhentai"] diff --git a/nhentai/__init__.py b/nhentai/__init__.py index 8879a44..af9e064 100644 --- a/nhentai/__init__.py +++ b/nhentai/__init__.py @@ -1,3 +1,3 @@ -__version__ = '0.5.17.1' +__version__ = '0.5.17.2' __author__ = 'RicterZ' __email__ = 'ricterzheng@gmail.com' diff --git a/pyproject.toml b/pyproject.toml index 28b265a..62af3eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "nhentai" -version = "0.5.17" +version = "0.5.17.2" description = "nhentai doujinshi downloader" authors = ["Ricter Z "] license = "MIT" @@ -20,3 +20,6 @@ httpx = "0.27.2" [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" + +[tool.poetry.scripts] +nhentai = 'nhentai.command:main' \ No newline at end of file diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index e7bde96..0000000 --- a/setup.cfg +++ /dev/null @@ -1,3 +0,0 @@ -[metadata] -description_file = README.rst - diff --git a/setup.py b/setup.py deleted file mode 100644 index b7de670..0000000 --- a/setup.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 -import codecs -from setuptools import setup, find_packages -from nhentai import __version__, __author__, __email__ - - -with open('requirements.txt') as f: - requirements = [l for l in f.read().splitlines() if l] - - -def long_description(): - with codecs.open('README.rst', 'rb') as readme: - return readme.read().decode('utf-8') - - -setup( - name='nhentai', - version=__version__, - packages=find_packages(), - - author=__author__, - author_email=__email__, - keywords=['nhentai', 'doujinshi', 'downloader'], - description='nhentai.net doujinshis downloader', - long_description=long_description(), - url='https://github.com/RicterZ/nhentai', - download_url='https://github.com/RicterZ/nhentai/tarball/master', - include_package_data=True, - zip_safe=False, - - install_requires=requirements, - entry_points={ - 'console_scripts': [ - 'nhentai = nhentai.command:main', - ] - }, - license='MIT', -)