diff --git a/installers/bench-0.92-1.noarch.rpm b/installers/bench-0.92-1.noarch.rpm new file mode 100644 index 00000000..7250b3bd Binary files /dev/null and b/installers/bench-0.92-1.noarch.rpm differ diff --git a/installers/bench_0.92_amd64.deb b/installers/bench_0.92_amd64.deb new file mode 100644 index 00000000..a0d6a3c0 Binary files /dev/null and b/installers/bench_0.92_amd64.deb differ diff --git a/installers/brew_formula/bench.rb b/installers/brew_formula/bench.rb new file mode 100644 index 00000000..7ab897a2 --- /dev/null +++ b/installers/brew_formula/bench.rb @@ -0,0 +1,76 @@ +# Documentation: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md +# http://www.rubydoc.info/github/Homebrew/homebrew/master/Formula +# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! + +class Bench < Formula + desc "Metadata driven, full-stack web framework" + homepage "https://github.com/frappe/bench/blob/master/README.md" + url "https://github.com/nginn/bench/raw/master/installers/rpm_package_build/bench-0.92.tar.gz" + sha256 "" + + resource "click" do + url "https://pypi.python.org/packages/source/c/click/click-6.2.tar.gz" + sha256 "fba0ff70f5ebb4cebbf64c40a8fbc222fb7cf825237241e548354dabe3da6a82" + end + + resource "jinja2" do + url "https://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.8.tar.gz" + sha256 "bc1ff2ff88dbfacefde4ddde471d1417d3b304e8df103a7a9437d47269201bf4" + end + + resource "virtualenv" do + url "https://pypi.python.org/packages/source/v/virtualenv/virtualenv-13.1.2.tar.gz" + sha256 "aabc8ef18cddbd8a2a9c7f92bc43e2fea54b1147330d65db920ef3ce9812e3dc" + end + + resource "requests" do + url "https://pypi.python.org/packages/source/r/requests/requests-2.9.1.tar.gz" + sha256 "c577815dd00f1394203fc44eb979724b098f88264a9ef898ee45b8e5e9cf587f" + end + + resource "honcho" do + url "https://pypi.python.org/packages/2.7/h/honcho/honcho-0.6.6-py2.py3-none-any.whl" + sha256 "40dd530712ce14162ce1bf51f6a5cbb1ab2861da62e5db5816539976a9a5408c" + end + + resource "semantic_version" do + url "https://pypi.python.org/packages/source/s/semantic_version/semantic_version-2.4.2.tar.gz" + sha256 "7e8b7fa74a3bc9b6e90b15b83b9bc2377c78eaeae3447516425f475d5d6932d2" + end + + resource "gitpython" do + url "https://pypi.python.org/packages/source/G/GitPython/GitPython-0.3.2.RC1.tar.gz" + sha256 "fd6786684a0d0dd7ebb961da754e3312fafe0c8e88f55ceb09858aa0af6094e0" + end + + + # depends_on "cmake" => :build + #depends_on :x11s + depends_on :python if MacOS.version <= :snow_leopard +# depends_on "honcho" + + def install + ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages" + %w[click jinja2 virtualenv requests semantic_version gitpython].each do |r| + resource(r).stage do + system "python", *Language::Python.setup_install_args(libexec/"vendor") + end + end + + bin.install Dir[libexec/"bin/*"] + bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"]) + end + + test do + # `test do` will create, run in and delete a temporary directory. + # + # This test will fail and we won't accept that! It's enough to just replace + # "false" with the main program this formula installs, but it'd be nice if you + # were more thorough. Run the test with `brew test bench`. Options passed + # to `brew install` such as `--HEAD` also need to be provided to `brew test`. + # + # The installed folder is not in the path, so use the entire path to any + # executables being tested: `system "#{bin}/program", "do", "something"`. + system "false" + end +end diff --git a/installers/deb_package_build/debian/changelog b/installers/deb_package_build/debian/changelog new file mode 100644 index 00000000..8244e86a --- /dev/null +++ b/installers/deb_package_build/debian/changelog @@ -0,0 +1,5 @@ +bench (0.92) UNRELEASED; urgency=medium + + * Initial release. (Closes: #XXXXXX) + + -- ng Mon, 21 Dec 2015 16:05:03 +0300 diff --git a/installers/deb_package_build/debian/compat b/installers/deb_package_build/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/installers/deb_package_build/debian/compat @@ -0,0 +1 @@ +9 diff --git a/installers/deb_package_build/debian/control b/installers/deb_package_build/debian/control new file mode 100644 index 00000000..916a604d --- /dev/null +++ b/installers/deb_package_build/debian/control @@ -0,0 +1,12 @@ +Source: bench +Maintainer: Web Notes Technologies Pvt. Ltd. +Section: misc +Priority: optional +Standards-Version: 0.92 +Build-Depends: python (>= 2.7) + +Package: bench +# change to "all" if one package can be used for all achitectures +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: diff --git a/installers/deb_package_build/debian/copyright b/installers/deb_package_build/debian/copyright new file mode 100644 index 00000000..e69de29b diff --git a/installers/deb_package_build/debian/rules b/installers/deb_package_build/debian/rules new file mode 100755 index 00000000..4b780e69 --- /dev/null +++ b/installers/deb_package_build/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f +%: + dh $@ --with python-virtualenv diff --git a/installers/deb_package_build/debian/source/format b/installers/deb_package_build/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/installers/deb_package_build/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/bench-0.92.tar.gz b/installers/rpm_package_build/bench-0.92.tar.gz similarity index 100% rename from bench-0.92.tar.gz rename to installers/rpm_package_build/bench-0.92.tar.gz diff --git a/installers/rpm_package_build/bench.spec b/installers/rpm_package_build/bench.spec new file mode 100644 index 00000000..1f90ab0c --- /dev/null +++ b/installers/rpm_package_build/bench.spec @@ -0,0 +1,68 @@ +%define name bench +%define version 0.92 +%define unmangled_version 0.92 +%define unmangled_version 0.92 +%define release 1 +%define _buildshell /bin/bash + +Summary: Metadata driven, full-stack web framework +Name: %{name} +Version: %{version} +Release: %{release} +Source0: %{name}-%{unmangled_version}.tar.gz +License: GPL +Group: Development/Libraries +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot +Prefix: %{_prefix} +BuildArch: noarch +Vendor: Frappe Technologies +Url: https://github.com/frappe/bench + +# for building/installing the package +BuildRequires: python, python-wheel + +# centos 6 dependencies +%if 0%{rhel} == 6 +Requires: git, MariaDB-server, MariaDB-client, MariaDB-compat, python-setuptools, nginx +Requires: zlib-devel, bzip2-devel, openssl-devel, postfix, python27-devel, python27 +Requires: libxml2, libxml2-devel, libxslt, libxslt-devel, redis, MariaDB-devel, libXrender, libXext +Requires: python27-setuptools, cronie, sudo, which, xorg-x11-fonts-Type1, xorg-x11-fonts-75dpi, nodejs, npm +Requires: libtiff-devel, libjpeg-devel, libzip-devel, freetype-devel, lcms2-devel, libwebp-devel, tcl-devel, tk-devel +%endif + +# centos 7 dependencies +%if 0%{rhel} == 7 +Requires: git, mariadb-server, mariadb-devel, python-setuptools, nginx +Requires: zlib-devel, bzip2-devel, openssl-devel, postfix, python-devel +Requires: libxml2, libxml2-devel, libxslt, libxslt-devel, redis, libXrender, libXext +Requires: supervisor, cronie, sudo, which, xorg-x11-fonts-75dpi, xorg-x11-fonts-Type1, nodejs, npm +Requires: libtiff-devel, libjpeg-devel, libzip-devel, freetype-devel, lcms2-devel, libwebp-devel, tcl-devel, tk-devel +%endif + +%description +UNKNOWN + +%prep +%setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version} +python setup.py bdist_wheel + +%install +# directory for bench installation +mkdir -p build +# the following is to install bench locally +export ppath=`pwd`/build +export PYTHONPATH=$ppath +export whl_file=`find . -type f -name *.whl` +pip install --root=$ppath $whl_file +# pip installed bench, now moving it to appropriate location in %{buildroot} +mkdir -p %{buildroot}/usr/bin +cp build/usr/bin/bench %{buildroot}/usr/bin/ + + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc MANIFEST.in LICENSE.md README.md +/usr/bin/bench