From fb51930cc4f2f00b60dab4f9838ec6b51f483cd5 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Sat, 16 May 2020 21:26:20 +0100 Subject: [PATCH] Updated tar distribution command --- .tarignore | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 5 ++-- 2 files changed, 81 insertions(+), 3 deletions(-) create mode 100644 .tarignore diff --git a/.tarignore b/.tarignore new file mode 100644 index 00000000..1c4227bf --- /dev/null +++ b/.tarignore @@ -0,0 +1,79 @@ +Distribution archive rules +node_modules +.gitlab-ci.yml +./dist +!openflexure_microscope/api/static/dist + +# Pyenv files +.python-version +.venv* +.env* + +# Byte-compiled / optimized / DLL files +__pycache__ +*.py[cod] + +# C extensions +*.so + +# Distribution / packaging +.Pytho +env/ +build +develop-eggs +downloads +eggs +lib +lib64 +parts +sdist +var +*.egg-info +.installed.cfg +*.egg +pip-wheel-metadata + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov +.tox +.coverage +.cache +nosetests.xml +coverage.xml + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build + +# PyBuilder +target + +#Big-o files +capture +record +*.data + +#IDE files +.vscode +.idea +activate + +# UML diagrams +classes.png +packages.png diff --git a/README.md b/README.md index e941296f..6982d860 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,8 @@ This includes installing the server in a mode better suited for active developme * `poetry run build_static` ### Distributing -* `poetry run build` -* `poetry export --without-hashes -f requirements.txt > dist/requirements.txt` -* Distribution files will then be in `/dist` +* `mkdir -p dist` +* `tar -c --exclude-vcs --exclude-from .tarignore -vzf dist/openflexure-microscope-server.tar.gz .` ## Build-system As of 1.0.0b0, we're using [Poetry](https://github.com/sdispater/poetry) to manage dependencies, build, and distribute the package. All package information and dependencies are found in `pyproject.toml`, in line with [PEP 518](https://www.python.org/dev/peps/pep-0518/). If you're developing this package, make use of `poetry.lock` to ensure you're using the latest locked dependency list.