Commit fb51930c authored by Joel Collins's avatar Joel Collins
Browse files

Updated tar distribution command

parent 58e456a3
Loading
Loading
Loading
Loading

.tarignore

0 → 100644
+79 −0
Original line number Diff line number Diff line
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
+2 −3
Original line number Diff line number Diff line
@@ -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.