Skip to content

redis-py version attribute should be decoupled from the redis module #1784

Closed
@ashwani99

Description

@ashwani99

Following the conversation from #1625 (comment) looks like importing redis module prior to installation in setup.py for version attribute is not ideal.

Currently there are two places where module version is required.

  • setup.py for module installation
  • redis/__init__.py for module level __version__ attribute

One way to fix this is to maintain a version.py file in top level directory and using that as source of truth in both the above places.

@chayim @hartwork What do you think? I can create a PR for this :)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions