aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile7
-rw-r--r--Pipfile1
-rw-r--r--Pipfile.lock10
-rw-r--r--setup.py2
4 files changed, 18 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c6245fb..eaa1970 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,13 @@ fmt: ## Apply import sorting and yapf source formatting on all files
dist: ## Create source distribution and wheel
python setup.py sdist bdist_wheel
+# https://engineering.fb.com/2018/07/13/data-infrastructure/xars-a-more-efficient-open-source-system-for-self-contained-executables/
+#
+# Required a build from source https://github.com/vasi/squashfuse, to get the squashfuse_ll (low level) executable.
+.PHONY: xar
+xar: ## Create a XAR standalone package (https://github.com/facebookincubator/xar, https://github.com/vasi/squashfuse)
+ python setup.py bdist_xar
+
.PHONY: cov
cov: ## Run coverage report
pytest --cov=fuzzycat fuzzycat/*.py tests/ # --cov-report annotate:cov_annotate --cov-report html
diff --git a/Pipfile b/Pipfile
index d476be8..4cc4c45 100644
--- a/Pipfile
+++ b/Pipfile
@@ -12,6 +12,7 @@ pytest = "*"
pytest-cov = "*"
twine = "*"
yapf = "*"
+xar = "*"
[packages]
ftfy = "*"
diff --git a/Pipfile.lock b/Pipfile.lock
index fa27794..4ff1c53 100644
--- a/Pipfile.lock
+++ b/Pipfile.lock
@@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
- "sha256": "56fbe6c09a58e674df0be1cbfff07b524ae2d8322573af522416b10b57a97d0e"
+ "sha256": "7ec5c05a87af980633df5c5f2a36b29ec2e0aa031b278d9c241dcb675447f35f"
},
"pipfile-spec": 6,
"requires": {
@@ -881,6 +881,14 @@
],
"version": "==1.12.1"
},
+ "xar": {
+ "hashes": [
+ "sha256:15ebd62a2e885bf833f1ff60455e4f0de7d237359daf8617e459da5b09016757",
+ "sha256:175d063081f82d7828743f45537e15515d935128690351083bfbc277484f5944"
+ ],
+ "index": "pypi",
+ "version": "==20.12.2"
+ },
"yapf": {
"hashes": [
"sha256:3000abee4c28daebad55da6c85f3cd07b8062ce48e2e9943c8da1b9667d48427",
diff --git a/setup.py b/setup.py
index bcc6ea7..4e9c920 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ with open("README.md", "r") as fh:
python_requires=">=3.5",
zip_safe=False,
entry_points={"console_scripts": [
- "fuzzycat=fuzzycat.main:main"
+ "fuzzycat=fuzzycat"
]},
install_requires=[
"elasticsearch",