Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to create distribution archives #2

Open
carme-hp opened this issue Oct 5, 2022 · 0 comments
Open

Failed to create distribution archives #2

carme-hp opened this issue Oct 5, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@carme-hp
Copy link

carme-hp commented Oct 5, 2022

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.

@IshaanDesai IshaanDesai added the bug Something isn't working label Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants