From b65d878981a9a46cca32ebd8601905ee27700bc6 Mon Sep 17 00:00:00 2001 From: eneller Date: Wed, 19 Mar 2025 22:22:45 +0100 Subject: [PATCH] build: add watchman --- README.md | 6 +++++- pyproject.toml | 2 +- src/.watchmanconfig | 4 ++++ uv.lock | 11 +++++++++++ 4 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 src/.watchmanconfig diff --git a/README.md b/README.md index 4931f1c..40ba472 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # epub2go-web -A simple Website to provide a `NNI (Non-Nerd Interface)` to [epub2go.py](https://github.com/eneller/epub2go.py), a web to epub converter. \ No newline at end of file +A simple Website to provide a `NNI (Non-Nerd Interface)` to [epub2go.py](https://github.com/eneller/epub2go.py), a web to epub converter. + +## Development +This project uses [watchman](https://facebook.github.io/watchman/) for file watching and reloading. +Follow the [official instructions](https://facebook.github.io/watchman/docs/install.html) for your system to install, django will default to its standard watcher otherwise. \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 8e8669e..4a9a1fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,11 +4,11 @@ version = "0.1.0" description = "Web Interface to epub2go.py" readme = "README.md" requires-python = ">=3.12" -# TODO enable auto-reload using https://github.com/adamchainz/django-browser-reload dependencies = [ "celery>=5.4.0", "django>=5.1.6", "epub2go", + "pywatchman>=2.0.0", ] [tool.uv.sources] diff --git a/src/.watchmanconfig b/src/.watchmanconfig new file mode 100644 index 0000000..ec2accb --- /dev/null +++ b/src/.watchmanconfig @@ -0,0 +1,4 @@ +{ + "ignore_dirs": ["node_modules"] +} + diff --git a/uv.lock b/uv.lock index 5bbe6da..ad5e867 100644 --- a/uv.lock +++ b/uv.lock @@ -201,6 +201,7 @@ dependencies = [ { name = "celery" }, { name = "django" }, { name = "epub2go" }, + { name = "pywatchman" }, ] [package.metadata] @@ -208,6 +209,7 @@ requires-dist = [ { name = "celery", specifier = ">=5.4.0" }, { name = "django", specifier = ">=5.1.6" }, { name = "epub2go", git = "https://github.com/eneller/epub2go.py" }, + { name = "pywatchman", specifier = ">=2.0.0" }, ] [[package]] @@ -266,6 +268,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427", size = 229892 }, ] +[[package]] +name = "pywatchman" +version = "2.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/cf/39/fc10dd952ac72a3a293936cd66a4551fdeb9012d2db99234a376100641ce/pywatchman-2.0.0.tar.gz", hash = "sha256:25354d9e3647f94411a4c13e510c83a1ceecc17977b0525ba41b16e7019c7b0c", size = 40570 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/51/7f/5d68d803489770cffa5d2b44be99b978c866f8a4d8e835f9da850415ed8a/pywatchman-2.0.0-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:51c2b4c72bea6b9fd90caf20759f5bc47febf0fd27bf2f247b87c66e2f6bab02", size = 52557 }, +] + [[package]] name = "requests" version = "2.32.3"