keewis / blackdoc

run black on documentation code snippets
https://blackdoc.readthedocs.io
MIT License
47 stars 4 forks source link

setup.py packaging #14

Closed crusaderky closed 4 years ago

crusaderky commented 4 years ago

Pip doesn't seem to work:

$ pip install git+https://github.com/keewis/blackdoc.git
$ python -m blackdoc --help
python: No module named blackdoc

Also:

$ git clone https://github.com/keewis/blackdoc.git
$ cd blackdoc
$ python setup.py sdist
$ tar -tzf dist/*
blackdoc-0.0.0/
blackdoc-0.0.0/PKG-INFO
blackdoc-0.0.0/README.rst
blackdoc-0.0.0/blackdoc.egg-info/
blackdoc-0.0.0/blackdoc.egg-info/PKG-INFO
blackdoc-0.0.0/blackdoc.egg-info/SOURCES.txt
blackdoc-0.0.0/blackdoc.egg-info/dependency_links.txt
blackdoc-0.0.0/blackdoc.egg-info/requires.txt
blackdoc-0.0.0/blackdoc.egg-info/top_level.txt
blackdoc-0.0.0/pyproject.toml
blackdoc-0.0.0/setup.cfg
blackdoc-0.0.0/setup.py
crusaderky commented 4 years ago

An entry-point executable is also needed

keewis commented 4 years ago

thanks, I only ever used python -m pip install -e . which seemed to work fine. Turns out I didn't specify packages.

entrypoint: sure