Skip to content

setup.py incompatibility #3

@tekcortom

Description

@tekcortom

##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,
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions