-
Notifications
You must be signed in to change notification settings - Fork 0
Description
##error in InspectorRSA setup command: 'install_requires' must be a string or list of strings containing valid ##project/version requirement specifiers; Parse error at "'-e git+h'": Expected W:(0-9A-Za-z)
##fixed by rewriting the setup.py file
##new file reads as follows:
import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
Read requirements.txt and filter out editable installs (lines starting with '-e')
try:
with open("requirements.txt", "r", encoding="utf-8") as req_file:
install_requires = [
line.strip() for line in req_file
if line.strip() and not line.startswith("-e")
]
except FileNotFoundError:
install_requires = []
setuptools.setup(
name="InspectorRSA",
version="0.0.1",
author="Rudramani Singha",
author_email="rgs2151@columbia.com",
description="A package for investigating Representational Similarity Analysis tools",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/NuttidaLab/RSA_Investigations",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.11.3",
install_requires=install_requires,
)