Skip to content

Failed to create distribution archives #2

@carme-hp

Description

@carme-hp

If I run
python setup.py sdist
I get
error: Invalid distribution name or version syntax

My folder structure is the following:

diffusion2d/
├── setup.cfg
├── setup.py
├── README.md
├── carme-hp-diffusion2d/
│    ├── difussion2d.py
│    └── output.py

In setup.py I have:

from setuptools import setup

setup()

And in setup.cfg I have:

[metadata]
name="carme-hp-diffusion2d"
version="0.0.1"
author="Carme Homs-Pons"
url="https://github.com/carme-hp/diffusion2D?organization=carme-hp&organization=carme-hp"
description="A introduction to packaging using a diffusion2d example"

I can make it work by moving name="carme-hp-diffusion2d" to setup.py or just by removing the name tag, in which case the default name tag UNKNOWN is used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions