Skip to content

Detect version from import #5

@thatch

Description

@thatch

For a setup.py like

from setuptools import setup
import mypackage
setup(version=mypackage.__version__)

we can move to setup.py as

[metadata]
version=attr: mypackage.__version__

This only works if mypackage is importable, but that was true before.

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