create installable python package

This commit is contained in:
riscy 2020-03-01 16:59:01 -08:00
parent f5c42a2537
commit 61eacf1d98
6 changed files with 17 additions and 5 deletions

View file

@ -23,9 +23,10 @@ env:
EXPECT_ERROR=2
install:
- pip install requests mypy
- pip install .
- pip install mypy
- pytest --doctest-modules
- mypy .
- mypy --ignore-missing-imports .
script:
- python melpazoid.py
- python melpazoid/melpazoid.py

View file

@ -3,7 +3,7 @@ PACKAGE_NAME ?= NONE
.PHONY: run
run:
python melpazoid.py
python melpazoid/melpazoid.py
.PHONY: term
test: image

View file

@ -57,7 +57,7 @@ RUN emacs --script ~/_requirements.el
COPY --chown=emacser:emacser docker/.emacs $WORKSPACE
COPY --chown=emacser:emacser _elisp $ELISP_PATH
COPY --chown=emacser:emacser melpazoid.el $ELISP_PATH
COPY --chown=emacser:emacser melpazoid/melpazoid.el $ELISP_PATH
ARG PACKAGE_NAME
ENV PACKAGE_NAME "${PACKAGE_NAME}"

11
setup.py Normal file
View file

@ -0,0 +1,11 @@
from setuptools import setup
setup(
name='melpazoid',
version='0.0',
description='For testing Emacs packages.',
author='D. Chris Rayner',
author_email='dchrisrayner@gmail.com',
packages=['melpazoid'],
install_requires=['requests'],
)