Please follow the instructions in pypi_exercise.md.
The code used in this exercise is based on Chapter 7 of the book "Learning Scientific Programming with Python".
License: Creative Commons Attribution 4.0 International
Please follow the instructions in pypi_exercise.md.
The code used in this exercise is based on Chapter 7 of the book "Learning Scientific Programming with Python".
When the package name is not defined in setup.py
but in setup.cfg
or pyproject.toml
, wheel/build or other tools which create the distribution archives fail to pick up the name and instead use the name UNKNOWN
.
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.
It is observed in several cases that the package version specified in setup.cfg
in the form
[metadata]
version = "1.0.0"
is eventually interpreted by wheel/build as -1.0.0-
with additional -
signs on both sides of the version. The cause of this is unknown and needs to be further investigated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.