Skip to content

[BUG] version in metadata/sdist is 0.0.0 #138

@psobolewskiPhD

Description

@psobolewskiPhD

Because of the still here setup.py, the version is set to 0.0.0 in the metadata/sdist.
This results with packaging issues when the sdist is used, e.g. conda:
Here is bioconda package:

❯ pip show ezomero                 
Name: ezomero
Version: 0.0.0
Summary: A suite of convenience functions for working with OMERO. Written and maintained by the Research IT team at The Jackson Laboratory.
Home-page: 
Author: 
Author-email: 
License-Expression: GPL-2.0
Location: /Users/sobolp/micromamba/envs/test-ez/lib/python3.9/site-packages
Requires: numpy, omero-py
Required-by: 

Also if you pip install with --nobinary:

Collecting ezomero
  Downloading ezomero-3.2.1.tar.gz (53 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Discarding https://files.pythonhosted.org/packages/06/90/f5e7267a4652e1ef5fe58dcd8f4aad6a4dcfff0a4e23f8e13d894b8da1a5/ezomero-3.2.1.tar.gz (from https://pypi.org/simple/ezomero/) (requires-python:>=3.8): Requested ezomero from https://files.pythonhosted.org/packages/06/90/f5e7267a4652e1ef5fe58dcd8f4aad6a4dcfff0a4e23f8e13d894b8da1a5/ezomero-3.2.1.tar.gz has inconsistent version: expected '3.2.1', but metadata has '0.0.0'
...
...

This will continue until it installs version 1.0.0 using the legacy setup.py bdist_wheel mechanism.

The easiest fix is to use setuptools_scm in pyproject.toml
https://setuptools-scm.readthedocs.io/en/latest/usage/

Metadata

Metadata

Assignees

No one assigned

    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