Ошибка зависимостей при упаковке проекта для pip - PullRequest
0 голосов
/ 04 августа 2020

У меня есть проект python, который я пытаюсь упаковать и загрузить в pip. Хотя все идет как ожидалось, когда я пытаюсь установить пакет, я получаю ту же ошибку для модуля tqdm:

Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://test.pypi.org/simple/
Collecting BookCut==1.2.6
Downloading https://test-files.pythonhosted.org/packages/68/7a/e2935beaafcdffe565a41dbc2115d336c3044be76222d2463dd3c9802963/BookCut-1.2.6-py3-none-any.whl (13 kB)

ERROR: Could not find a version that satisfies the requirement tqdm>=4.39 (from BookCut==1.2.6) (from versions: none)
ERROR: No matching distribution found for tqdm>=4.39 (from BookCut==1.2.6)

И это мой файл setup.py

import setuptools
import sys
import pathlib

if sys.version_info.major < 3:
    print("\nPython 2 is not supported! \nPlease upgrade to Python 3.\n")
    print("Installation of BookCut stopped, please try again with\n"
          'a newer version of Python!')
    sys.exit(1)

# The directory containing this file
HERE = pathlib.Path(__file__).parent

# The text of the README file
README = (HERE / "README.md").read_text()

setuptools.setup(
    name="BookCut",
    python_requires='>3.5.2',
    version="1.2.7",
    author="Costis94",
    author_email="gravitymusician@gmail.com",
    description="Command Line Interface app to download ebooks",
    long_description=README,
    long_description_content_type="text/markdown",
    url="https://github.com/costis94/bookcut",
    packages=setuptools.find_packages(),
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
    install_requires=[
        'pandas',
        'click>=7.1.2',
        'requests',
        'beautifulsoup4',
        'pyfiglet',
        'tqdm',
        'mechanize'],
    entry_points='''
        [console_scripts]
        bookcut=bookcut.bookcut:entry
        ''',


    )

То же повышение ошибки также, если я удалю библиотеку механизации, но не для других! Я не понимаю, что происходит. Я пытался также сменить другую версию, но не помогло.

...