Removed unused pynpm package

This commit is contained in:
Joel Collins 2020-11-24 17:49:50 +00:00
parent f54684b460
commit 6819ded7ef
4 changed files with 15 additions and 29 deletions

View file

@ -14,11 +14,13 @@ This includes installing the server in a mode better suited for active developme
* `git clone https://gitlab.com/openflexure/openflexure-microscope-server.git` * `git clone https://gitlab.com/openflexure/openflexure-microscope-server.git`
* `poetry install` * `poetry install`
* `poetry run build_static`
* Building the static interface will require a valid Node.js installation * Building the static interface will require a valid Node.js installation
* To build on a Raspberry Pi: * To build on a Raspberry Pi:
* `curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -` * `curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -`
* `sudo apt install nodejs` * `sudo apt install nodejs`
* `cd openflexure_microscope/api/static`
* `npm install`
* `npm run build`
## Formatting and linting ## Formatting and linting

View file

@ -1,17 +0,0 @@
import os
from pynpm import NPMPackage
dir_path = os.path.dirname(os.path.realpath(__file__))
pkg_path = os.path.join(dir_path, "api", "static", "package.json")
pkg = NPMPackage(pkg_path)
def install():
pkg.install()
def build():
pkg.install()
pkg.run_script("build")

19
poetry.lock generated
View file

@ -283,7 +283,7 @@ i18n = ["Babel (>=0.8)"]
[[package]] [[package]]
name = "labthings" name = "labthings"
version = "1.1.3" version = "1.1.4"
description = "Python implementation of LabThings, based on the Flask microframework" description = "Python implementation of LabThings, based on the Flask microframework"
category = "main" category = "main"
optional = false optional = false
@ -429,7 +429,7 @@ toml = ">=0.7.1"
name = "pynpm" name = "pynpm"
version = "0.1.2" version = "0.1.2"
description = "Python interface to your NPM and package.json." description = "Python interface to your NPM and package.json."
category = "main" category = "dev"
optional = false optional = false
python-versions = "*" python-versions = "*"
@ -448,12 +448,15 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
[[package]] [[package]]
name = "pyserial" name = "pyserial"
version = "3.4" version = "3.5"
description = "Python Serial Port Extension" description = "Python Serial Port Extension"
category = "main" category = "main"
optional = false optional = false
python-versions = "*" python-versions = "*"
[package.extras]
cp2110 = ["hidapi"]
[[package]] [[package]]
name = "python-dateutil" name = "python-dateutil"
version = "2.8.1" version = "2.8.1"
@ -753,7 +756,7 @@ rpi = ["RPi.GPIO"]
[metadata] [metadata]
lock-version = "1.1" lock-version = "1.1"
python-versions = "^3.6.1" python-versions = "^3.6.1"
content-hash = "e0aad912d5cb388d3ff395dc8a517f701ba2cbe4c2169771080a889906e91b41" content-hash = "60f1064b6af35d65d45ec835b4e3032316732e4859a5c81a3fab8e06091f2892"
[metadata.files] [metadata.files]
alabaster = [ alabaster = [
@ -855,8 +858,8 @@ jinja2 = [
{file = "Jinja2-2.11.2.tar.gz", hash = "sha256:89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0"}, {file = "Jinja2-2.11.2.tar.gz", hash = "sha256:89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0"},
] ]
labthings = [ labthings = [
{file = "labthings-1.1.3-py3-none-any.whl", hash = "sha256:51f0bc897fcbacbcbb911658d3daafd41a35373bca4ef2156423cdb728fa3d78"}, {file = "labthings-1.1.4-py3-none-any.whl", hash = "sha256:18febba20cb552af9e5c0f8f47b06acd9649dce7de7205734b9e1fd3334e2d79"},
{file = "labthings-1.1.3.tar.gz", hash = "sha256:3d68c638866f1c525a8b5285570c2d4599005d227b928e78088c0a29e6544007"}, {file = "labthings-1.1.4.tar.gz", hash = "sha256:69ca83d28720597327296d3e145bf57e68af17d245c0051c274db928e0a13e76"},
] ]
lazy-object-proxy = [ lazy-object-proxy = [
{file = "lazy-object-proxy-1.4.3.tar.gz", hash = "sha256:f3900e8a5de27447acbf900b4750b0ddfd7ec1ea7fbaf11dfa911141bc522af0"}, {file = "lazy-object-proxy-1.4.3.tar.gz", hash = "sha256:f3900e8a5de27447acbf900b4750b0ddfd7ec1ea7fbaf11dfa911141bc522af0"},
@ -1033,8 +1036,8 @@ pyparsing = [
{file = "pyparsing-2.4.7.tar.gz", hash = "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1"}, {file = "pyparsing-2.4.7.tar.gz", hash = "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1"},
] ]
pyserial = [ pyserial = [
{file = "pyserial-3.4-py2.py3-none-any.whl", hash = "sha256:e0770fadba80c31013896c7e6ef703f72e7834965954a78e71a3049488d4d7d8"}, {file = "pyserial-3.5-py2.py3-none-any.whl", hash = "sha256:c4451db6ba391ca6ca299fb3ec7bae67a5c55dde170964c7a14ceefec02f2cf0"},
{file = "pyserial-3.4.tar.gz", hash = "sha256:6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627"}, {file = "pyserial-3.5.tar.gz", hash = "sha256:3c77e014170dfffbd816e6ffc205e9842efb10be9f58ec16d3e8675b4925cddb"},
] ]
python-dateutil = [ python-dateutil = [
{file = "python-dateutil-2.8.1.tar.gz", hash = "sha256:73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c"}, {file = "python-dateutil-2.8.1.tar.gz", hash = "sha256:73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c"},

View file

@ -38,19 +38,17 @@ scipy = "1.5.3" # Exact version so we can guarantee a wheel
python-dateutil = "^2.8" python-dateutil = "^2.8"
psutil = "^5.6.7" # Autostorage extension psutil = "^5.6.7" # Autostorage extension
opencv-python-headless = "4.4.0.44" opencv-python-headless = "4.4.0.44"
pynpm = "^0.1.2"
sangaboard = "^0.2" sangaboard = "^0.2"
expiringdict = "^1.2.1" expiringdict = "^1.2.1"
camera-stage-mapping = "0.1.4" camera-stage-mapping = "0.1.4"
picamerax = ">=20.9.1" picamerax = ">=20.9.1"
pyyaml = "^5.3.1" pyyaml = "^5.3.1"
labthings = "^1.1.3" labthings = "^1.1.4"
[tool.poetry.extras] [tool.poetry.extras]
rpi = ["RPi.GPIO"] rpi = ["RPi.GPIO"]
[tool.poetry.scripts] [tool.poetry.scripts]
build_static = 'openflexure_microscope.install:build'
rescue = 'openflexure_microscope.rescue.auto:main' rescue = 'openflexure_microscope.rescue.auto:main'
[tool.poetry.dev-dependencies] [tool.poetry.dev-dependencies]