mirror of https://github.com/tqdm/tqdm.git
parent
ca23ad4dd5
commit
a774e3ff8d
|
@ -132,7 +132,7 @@ jobs:
|
|||
run: |
|
||||
sudo apt-get install -yqq pandoc
|
||||
pip install .[dev]
|
||||
make build .dockerignore snapcraft.yaml
|
||||
make build .dockerignore Dockerfile snapcraft.yaml
|
||||
- id: dist
|
||||
uses: casperdcl/deploy-pypi@v2
|
||||
with:
|
||||
|
|
|
@ -12,6 +12,7 @@ __pycache__/
|
|||
/snapcraft.yaml
|
||||
/tqdm_*.snap
|
||||
/.dockerignore
|
||||
/Dockerfile
|
||||
|
||||
# Unit test / coverage reports
|
||||
/.tox/
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
FROM python:3.7-alpine
|
||||
COPY dist/*.whl .
|
||||
RUN pip install -U $(ls ./*.whl) && rm ./*.whl
|
||||
ENTRYPOINT ["tqdm"]
|
4
Makefile
4
Makefile
|
@ -107,6 +107,9 @@ snapcraft.yaml: .meta/mksnap.py
|
|||
.dockerignore:
|
||||
@+python -c "fd=open('.dockerignore', 'w'); fd.write('*\n!dist/*.whl\n')"
|
||||
|
||||
Dockerfile:
|
||||
@+python -c 'fd=open("Dockerfile", "w"); fd.write("FROM python:3.8-alpine\nCOPY dist/*.whl .\nRUN pip install -U $$(ls ./*.whl) && rm ./*.whl\nENTRYPOINT [\"tqdm\"]\n")'
|
||||
|
||||
distclean:
|
||||
@+make coverclean
|
||||
@+make prebuildclean
|
||||
|
@ -167,6 +170,7 @@ snap:
|
|||
docker:
|
||||
@make build
|
||||
@make .dockerignore
|
||||
@make Dockerfile
|
||||
docker build . -t tqdm/tqdm
|
||||
docker tag tqdm/tqdm:latest tqdm/tqdm:$(shell docker run -i --rm tqdm/tqdm -v)
|
||||
none:
|
||||
|
|
Loading…
Reference in New Issue