Can't Import After Publishing Package

Viewed 32

I know there's a similar question like this out here but after trying their solution, it still hasn't worked for me.

Project Structure:

README.md
LICENSE
setup.py
rolimons/
└── __init__.py
└── users.py
└── items.py
└── client.py

My setup file contains the following:

from setuptools import find_packages, setup

with open("README.md", encoding="utf-8") as f:
    readme = f.read()

setup(
    name="rolimons",
    version="1.2.5",
    author="walker",
    description="Rolimons API Wrapper",
    long_description=readme,
    long_description_content_type="text/markdown",
    packages=['rolimons'],
    url="https://github.com/wa1ker38552/Rolimons-PY",
    install_requires=["requests", "bs4", "requests_html"],
    python_requires=">=3.7",
)

I have published the package after following these steps:
Change version in setup.py
python setup.py sdist
twine upload --skip-existing dist/*

After this, I go to a different project and run pip install rolimons --upgrade and after running, it gives an import error stating that it can't find the module.

What am I doing wrong?

0 Answers
Related