I've been trying to distribute this package for awhile now but most of the time, when trying to upgrade it, it gives a error when I try to import it.
setup.py:
from setuptools import setup
with open("README.md", encoding="utf-8") as f:
readme = f.read()
setup(
name="rolimons",
version="1.4.8",
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",
py_modules=["rolimons"]
)
Error:
Looking in indexes: https://package-proxy.replit.com/pypi/simple/
Collecting rolimons
Using cached https://package-proxy.replit.com/pypi/packages/bf/ee/f8ebf23e2c474ee56da5b881de27e83b40ee80455063ca50fa694c194a64/rolimons-1.4.7.tar.gz (7.4 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /home/runner/rolimonspy-test/venv/bin/python3 /home/runner/rolimonspy-test/venv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpl7dpwaxk
cwd: /tmp/pip-install-prttellv/rolimons_c29b3ac187be4dbc8603d2143c21d5be
Complete output (16 lines):
Traceback (most recent call last):
File "/home/runner/rolimonspy-test/venv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 280, in <module>
main()
File "/home/runner/rolimonspy-test/venv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/runner/rolimonspy-test/venv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 133, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/tmp/pip-build-env-pg54v2ky/overlay/lib/python3.8/site-packages/poetry/core/masonry/api.py", line 41, in prepare_metadata_for_build_wheel
builder = WheelBuilder(poetry)
File "/tmp/pip-build-env-pg54v2ky/overlay/lib/python3.8/site-packages/poetry/core/masonry/builders/wheel.py", line 56, in __init__
super().__init__(poetry, executable=executable)
File "/tmp/pip-build-env-pg54v2ky/overlay/lib/python3.8/site-packages/poetry/core/masonry/builders/builder.py", line 83, in __init__
self._module = Module(
File "/tmp/pip-build-env-pg54v2ky/overlay/lib/python3.8/site-packages/poetry/core/masonry/utils/module.py", line 69, in __init__
raise ModuleOrPackageNotFound(
poetry.core.masonry.utils.module.ModuleOrPackageNotFound: No file/folder found for package python-template
----------------------------------------
WARNING: Discarding https://package-proxy.replit.com/pypi/packages/bf/ee/f8ebf23e2c474ee56da5b881de27e83b40ee80455063ca50fa694c194a64/rolimons-1.4.7.tar.gz#sha256=f9aeb095f4f89a799e232216e277b00dc6699aa57b5aa3bfa484bdac316bdbea (from https://package-proxy.replit.com/pypi/simple/rolimons/) (requires-python:>=3.7). Command errored out with exit status 1: /home/runner/rolimonspy-test/venv/bin/python3 /home/runner/rolimonspy-test/venv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpl7dpwaxk Check the logs for full command output.
To replicate the error, you can use pip install rolimons. The installer won't be able to install the versions until 1.3.5 which is the last working version
Additionally, here are the steps I use to distribute:
python setup.py sdisttwine upload dist/*
