summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-03-26 16:47:53 +0000
committerJohn Estabrook <jestabro@vyos.io>2021-03-26 16:47:53 +0000
commita6de79413b04b4043a4cf7c44a778f1f23fdf43f (patch)
tree766e856571d49de8c970e020ec533615aac8b6c4
downloadvyos-http-api-tools-a6de79413b04b4043a4cf7c44a778f1f23fdf43f.tar.gz
vyos-http-api-tools-a6de79413b04b4043a4cf7c44a778f1f23fdf43f.zip
initial commit
-rw-r--r--README.md11
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control23
-rw-r--r--debian/copyright0
-rwxr-xr-xdebian/rules17
-rw-r--r--requirements.in4
-rw-r--r--requirements.txt16
-rw-r--r--setup.py20
-rw-r--r--vyos-http-api-tools/__init__.py0
10 files changed, 97 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..c324a7b
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# vyos-http-api-tools
+Debian files for wrapping FastAPI and supporting tools as a deb package, using dh_virtualenv
+
+To build:
+
+ dpkg-buildpackage -uc -us -tc -b
+
+To update dependency versions from un-versioned packages names:
+(Install pip-compile from 'pip-tools')
+
+ pip-compile requirements.in > requirements.txt
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..13e063c
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+vyos-http-api-tools (0.1.0-1) unstable; urgency=medium
+
+ * Initial release.
+
+ -- VyOS maintainers and contributors <maintainers@vyos.io> Fri, 26 Mar 2021 16:19:34 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..d6e1da8
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,23 @@
+Source: vyos-http-api-tools
+Section: contrib/net
+Priority: extra
+Maintainer: VyOS Package Maintainers <maintainers@vyos.net>
+Build-Depends: debhelper (>= 10),
+ python3.7,
+ python3-setuptools,
+ dh-virtualenv (>= 1.0),
+ python3-pip,
+ python3-dev,
+ python3-venv
+Standards-Version: 3.9.6
+
+Package: vyos-http-api-tools
+Architecture: any
+Pre-Depends: dpkg (>= 1.16.1),
+ python3.7,
+ ${misc:Pre-Depends}
+Depends: ${misc:Depends}
+Description: api tools for VyOS
+ api tools for VyOS
+
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/debian/copyright
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f88d083
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+
+export DH_VIRTUALENV_INSTALL_ROOT=/usr/share
+
+%:
+ dh $@ --with python-virtualenv
+
+override_dh_virtualenv:
+ dh_virtualenv \
+ --python /usr/bin/python3.7 \
+ --use-system-packages \
+ --builtin-venv \
+ --setuptools \
+ --upgrade-pip \
+ --extra-pip-arg "--ignore-installed" \
+ --extra-pip-arg "--no-cache-dir"
+
diff --git a/requirements.in b/requirements.in
new file mode 100644
index 0000000..1a52ade
--- /dev/null
+++ b/requirements.in
@@ -0,0 +1,4 @@
+fastapi
+python-multipart
+uvicorn
+wsproto
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..72d28b1
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,16 @@
+#
+# This file is autogenerated by pip-compile
+# To update, run:
+#
+# pip-compile requirements.in
+#
+click==7.1.2 # via uvicorn
+fastapi==0.63.0 # via -r requirements.in
+h11==0.12.0 # via uvicorn, wsproto
+pydantic==1.8.1 # via fastapi
+python-multipart==0.0.5 # via -r requirements.in
+six==1.15.0 # via python-multipart
+starlette==0.13.6 # via fastapi
+typing-extensions==3.7.4.3 # via pydantic, uvicorn
+uvicorn==0.13.4 # via -r requirements.in
+wsproto==1.0.0 # via -r requirements.in
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..bd28d7d
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,20 @@
+from setuptools import setup
+
+setup(
+ name="vyos-http-api-tools",
+ version="0.1.0",
+ author="VyOS maintainers and contributors",
+ author_email="maintainers@vyos.net",
+ python_requires=">=3.7",
+ license="BSD",
+ url="http://www.vyos.io",
+ packages=["vyos-http-api-tools"],
+ description=("A debian wrapper of packages to support the VyOS http api."),
+ classifiers=[
+ "Development Status :: 3 - Alpha",
+ "Environment :: Web Environment",
+ "Intended Audience :: Developers",
+ "License :: OSI Approved :: BSD License",
+ "Topic :: Internet :: WWW/HTTP",
+ ],
+)
diff --git a/vyos-http-api-tools/__init__.py b/vyos-http-api-tools/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/vyos-http-api-tools/__init__.py