forked from harelba/q
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multiple queries on CLI + Reuse of loaded data + Full code refactorin…
…g (full python API) + RPM compiles q to binary Included changes: pick 8b4342d Refactored q to expose objects, and added a python package wrapper pick b0d28b1 Internalized exception handling into the q main object pick faf3904 Added reuse of loaded data + stdin injection to module API + tests pick 08cf2bb Allow different input params for each loaded file + loading file manually + fixed modeling of query encoding + tests pick 3a7fffd Separation of populate phases pick 92d0bb6 Provide table structure as part of responses + merge _populate method versions pick d04a24c Multiple queries on CLI + load data from string API + finer details in table structure response + tests pick d90c392 modified non existent file error msg + fixed response bug in table_structure when there are errors pick 5908a75 Fixed bug in str of the response pick a9dcc74 New RPM creation which matches commit hash to version, and compiles q pick 90fd18a Fixed permissions for new RPM.
- Loading branch information
Showing
8 changed files
with
1,304 additions
and
452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
build | ||
q.spec | ||
q.1 | ||
*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env python | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
q |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
sudo apt-get install gem | ||
sudo gem install ruby-ronn | ||
pyinstaller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
%global _enable_debug_package 0 | ||
%global debug_package %{nil} | ||
%global __os_install_post %{nil} | ||
|
||
Name: q-text-as-data | ||
Version: VERSION_PLACEHOLDER | ||
Release: 1%{?dist} | ||
|
@@ -6,31 +10,44 @@ Summary: q - Text as Data | |
Group: Applications/Text | ||
License: GPLv3 | ||
URL: https://github.com/harelba/q | ||
Source0: %{name}-%{version}.tar.gz | ||
BuildArch: noarch | ||
Source: q-COMMIT_HASH_PLACEHOLDER.tar.gz | ||
BuildArch: x86_64 | ||
|
||
%description | ||
q allows to perform SQL-like statements on tabular text data. | ||
|
||
|
||
%prep | ||
%setup | ||
%setup -qn harelba-q-SHORT_HASH_PLACEHOLDER | ||
|
||
%build | ||
ls -ltr | ||
pyinstaller -D --distpath=compiled-dist bin/q | ||
ronn doc/USAGE.markdown | ||
|
||
%install | ||
rm -rf ${RPM_BUILD_ROOT} | ||
rm -vrf ${RPM_BUILD_ROOT}/ | ||
export DONT_STRIP=1 | ||
install -d -m 0755 ${RPM_BUILD_ROOT}%{_bindir} | ||
install -Dm 755 bin/q ${RPM_BUILD_ROOT}%{_bindir}/ | ||
install -Dm 755 bin/q ${RPM_BUILD_ROOT}%{_bindir}/ | ||
install -d -m 0755 ${RPM_BUILD_ROOT}%{_libdir}/q-text-as-data | ||
install -Dm 0644 compiled-dist/q/* ${RPM_BUILD_ROOT}%{_libdir}/q-text-as-data/ | ||
ln -s %{_libdir}/q-text-as-data/q ${RPM_BUILD_ROOT}%{_bindir}/q | ||
install -d -m 0755 ${RPM_BUILD_ROOT}%{_mandir}/man1/ | ||
install -m 0644 doc/USAGE ${RPM_BUILD_ROOT}%{_mandir}/man1/q.1 | ||
gzip ${RPM_BUILD_ROOT}%{_mandir}/man1/q.1 | ||
|
||
%files | ||
%defattr(-,root,root,-) | ||
%doc README.markdown doc/* | ||
%{_bindir}/q | ||
%doc README.markdown doc/AUTHORS doc/CHANGELOG.markdown doc/IMPLEMENTATION.markdown doc/INSTALL.markdown doc/LICENSE doc/RATIONALE.markdown doc/THANKS doc/USAGE.markdown | ||
%attr(755,root,root) %{_bindir}/q | ||
%attr(755,root,root) %{_libdir}/q-text-as-data/q | ||
%{_libdir}/q-text-as-data | ||
%doc %_mandir/man1/q.1.gz | ||
|
||
%changelog | ||
*Sat Nov 29 2014 Harel Ben-Attia <[email protected]> 1.5.0-1 | ||
- Changed to use compiled version of q | ||
- Moved stuff from create-rpm script into the rpm spec itself | ||
*Sat Jun 14 2014 Harel Ben-Attia <[email protected]> 1.4.0-1 | ||
- Changed RPM package name to q-text-as-data | ||
- Fixed RPM creation logic after folder restructuring | ||
|
Oops, something went wrong.