markdown-slides icon indicating copy to clipboard operation
markdown-slides copied to clipboard

newer versions of python want a pyproject.toml

Open yogo1212 opened this issue 2 years ago • 2 comments

I assume it would be something like this:

[tool.poetry]
name = "mdslides"
version = "1.6.0"
description = "Write modern slides with markdown."
license = "MIT"
authors = [
    "Leo <[email protected]>",
]
repository = "https://github.com/dadoomer/markdown-slides"
packages = [
    { include = "mdslides" },
]

[tool.poetry.scripts]
mdslides = 'mdslides=mdslides.__main__:main'

Not sure. tools.poetry - python is strange at times.

yogo1212 avatar Aug 03 '23 06:08 yogo1212

No explicit need for Poetry, though. The file (that would replace setup.py, btw) could look like this:

[build-system]
requires = ["setuptools>=63"]
build-backend = "setuptools.build_meta"

[project]
name = "mdslides"
version = "1.6.0"
description = "Write modern slides with markdown."
readme = "README.md"
license = {file = "LICENSE"}
authors = [
  {name = "Leo", email = "[email protected]"},
]
requires-python = ">=3.8"

[project.scripts]
mdslides = "mdslides.__main__:main"

[project.urls]
homepage = "https://gitlab.com/da_doomer/markdown-slides"

[tool.setuptools.packages.find]
namespaces = false
# some more magic here for including `mdslidesdata`
# see https://github.com/dadoomer/markdown-slides/blob/master/setup.py#L7-L12

bittner avatar Sep 19 '23 13:09 bittner

This is a great idea. I'll approve any pull request that adds the pyproject.toml or add it later this week.

dadoomer avatar Apr 08 '24 15:04 dadoomer