Skip to content

Commit

Permalink
fixed script entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Antonellis committed Feb 25, 2021
1 parent d0805dc commit ca43cb9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ RUN mkdir /io
COPY . /io
WORKDIR /io

RUN pip install --upgrade pip wheel setuptools

RUN pip install -r requirements.txt -r requirements-test.txt
RUN pip install -e .

# download nltk resources
RUN python -m nltk.downloader wordnet
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ exclude = "*.tests", "*.tests.*", "tests.*", "tests"

[options.entry_points]
console_scripts =
extra_model = extra_model._cli:entrypoint
extra-model = extra_model._cli:entrypoint
9 changes: 9 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env python

# We still need a setup.py shim so we can still pip install -e .
# https://snarky.ca/what-the-heck-is-pyproject-toml/#how-to-use-pyproject-toml-with-setuptools

import setuptools

if __name__ == "__main__":
setuptools.setup()

0 comments on commit ca43cb9

Please sign in to comment.