Conflict errors installing own packages located on test.pypi.org, using pip (or pipenv)

Viewed 21

I've create my own package using setup.py, and uploaded, for testing, on test.pypi.og. I've 3 versions : 1.0.0, 1.0.1, 1.1.0. When I want to install it in a new folder/project, there's this error :

ERROR: Cannot install my_package==1.0.0, my_package==1.0.1 and my_package==1.1.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    my_package 1.1.0 depends on pysqlite3
    my_package 1.0.1 depends on flake8
    my_package 1.0.0 depends on flake8

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

But, if I run the command severals times, the name of the packages (depends on ...) change !!??

Part of my setup.py :

python_requires=">=3.8, <4",
    packages=find_packages(
        include=["sqlalchemy_module"]
    ),
    install_requires=[
        "requests",
        "pysqlite3",
        "SQLAlchemy",
        "logging",
        "argparse",
        "configparser", ],
    setup_requires=['setuptools'],
    # pip install -e flake8 ... ...
    extras_require={
        "dev": ['flake8', 'black', 'isort', 'tox', 'mccabe', 'pre-commit', 'bumpver']
    },
    tests_require=["pytest", "pytest-cov"],
    package_data={},
    package_dir={"": "."},

Thanks F.

0 Answers
Related