Skip to content

Surviving pip updates which are enforcing pyproject.toml #93

Description

@jpic

Apparently, custom entrypoints are not working anymore with pip install -e, only console_scripts was maintained. Also, pip install -e seems to actually pull releases of dependencies which I already had installed with pip install -e which is ridiculous.

Anyway, they seem to have decided to break BC with setup.py and are generally causing havoc in our setupmeta packages, requiring pyproject.toml, don't remember the details.

Have you followed what's happening there?

Is this the new way for using setupmeta?

[build-system]
requires = ["setuptools>=64", "setupmeta"]
build-backend = "setuptools.build_meta"

[project]
name = "artinator"
dynamic = ["version"]
authors = [{name = "James Pic", email = "jamespic@gmail.com"}]
description = "CLI tool"
readme = "README.md"
license = {text = "MIT"}
keywords = ["cli"]
requires-python = ">=3.6"
dependencies = [
    "cli2>=v6.0.0-rc13",
    "litellm",
]
urls = {Homepage = "https://github.com/yourlabs/artinator"}

[project.entry-points.artinator]
fileread = "artinator.tool:FileRead"

[project.scripts]
artinator = "artinator.cli:cli.entry_point"

[tool.setuptools.packages.find]
where = ["."]
include = ["artinator*"]

[tool.setupmeta]
root = "."
tag = "v{version}"
versioning = "dev"

If setup.py goes away, are we going to call python -m setupmeta instead to output generated information?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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