mirror of
https://github.com/vale981/melpazoid
synced 2025-03-05 09:21:39 -05:00
create installable python package
This commit is contained in:
parent
f5c42a2537
commit
61eacf1d98
6 changed files with 17 additions and 5 deletions
|
@ -23,9 +23,10 @@ env:
|
||||||
EXPECT_ERROR=2
|
EXPECT_ERROR=2
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install requests mypy
|
- pip install .
|
||||||
|
- pip install mypy
|
||||||
- pytest --doctest-modules
|
- pytest --doctest-modules
|
||||||
- mypy .
|
- mypy --ignore-missing-imports .
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- python melpazoid.py
|
- python melpazoid/melpazoid.py
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -3,7 +3,7 @@ PACKAGE_NAME ?= NONE
|
||||||
|
|
||||||
.PHONY: run
|
.PHONY: run
|
||||||
run:
|
run:
|
||||||
python melpazoid.py
|
python melpazoid/melpazoid.py
|
||||||
|
|
||||||
.PHONY: term
|
.PHONY: term
|
||||||
test: image
|
test: image
|
||||||
|
|
|
@ -57,7 +57,7 @@ RUN emacs --script ~/_requirements.el
|
||||||
|
|
||||||
COPY --chown=emacser:emacser docker/.emacs $WORKSPACE
|
COPY --chown=emacser:emacser docker/.emacs $WORKSPACE
|
||||||
COPY --chown=emacser:emacser _elisp $ELISP_PATH
|
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
|
ARG PACKAGE_NAME
|
||||||
ENV PACKAGE_NAME "${PACKAGE_NAME}"
|
ENV PACKAGE_NAME "${PACKAGE_NAME}"
|
||||||
|
|
11
setup.py
Normal file
11
setup.py
Normal 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'],
|
||||||
|
)
|
Loading…
Add table
Reference in a new issue