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

newer versions of python want a pyproject.toml #14

Open
yogo1212 opened this issue Aug 3, 2023 · 2 comments
Open

newer versions of python want a pyproject.toml #14

yogo1212 opened this issue Aug 3, 2023 · 2 comments

Comments

@yogo1212
Copy link

yogo1212 commented Aug 3, 2023

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 <leohdz.c0@gmail.com>",
]
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.

@bittner
Copy link

bittner commented Sep 19, 2023

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 = "leohdz.c0@gmail.com"},
]
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

@dadoomer
Copy link
Owner

dadoomer commented Apr 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants