Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

dephell generates setup.py with README.rst instead od README.md #482

Open
bitphage opened this issue Dec 29, 2020 · 0 comments
Open

dephell generates setup.py with README.rst instead od README.md #482

bitphage opened this issue Dec 29, 2020 · 0 comments

Comments

@bitphage
Copy link

Short description

I'm converting pyproject to setup.py, and it seems that dephell tries to pick wrong README file.

Generated setup.py file references README.rst, while I'm having a README.md inside the pyproject.toml

# -*- coding: utf-8 -*-

# DO NOT EDIT THIS FILE!
# This file has been autogenerated by dephell <3
# https://github.com/dephell/dephell

try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

import os.path

readme = ''
here = os.path.abspath(os.path.dirname(__file__))
readme_path = os.path.join(here, 'README.rst')
if os.path.exists(readme_path):
    with open(readme_path, 'rb') as stream:
        readme = stream.read().decode('utf8')

Config

[tool.dephell.main]
from = {format = "poetry", path = "pyproject.toml"}
to = {format = "setuppy", path = "setup.py"}

[tool.poetry]
name = "xxx"
version = "0.1.0"
description = "xxx"
license = "MIT"
readme = "README.md"
repository = "https://github.com/xxx"

...

Versions

{
  "cache": "6.01Mb",
  "path": "/home/vvk/.local/share/dephell/venvs/dephell/lib/python3.7/site-packages/dephell",
  "python": "/home/vvk/.local/share/dephell/venvs/dephell/bin/python3",
  "version": "0.8.3",
  "versions": {
    "dephell-archive": "0.1.7",
    "dephell-argparse": "0.1.3",
    "dephell-changelogs": "0.0.1",
    "dephell-discover": "0.2.10",
    "dephell-licenses": "0.1.7",
    "dephell-links": "0.1.5",
    "dephell-markers": "1.0.3",
    "dephell-pythons": "0.1.15",
    "dephell-setuptools": "0.2.4",
    "dephell-shells": "0.1.5",
    "dephell-specifier": "0.2.2",
    "dephell-venvs": "0.1.18",
    "dephell-versioning": "0.1.2"
  }
}

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

No branches or pull requests

1 participant