Merge branch 'master' of git://git.assembla.com/free_poker_tools.git
This commit is contained in:
commit
685acfb2dd
|
@ -1,3 +1,7 @@
|
||||||
|
This file is badly out of date, but I'm going to leave it here for now. :)
|
||||||
|
More up-to-date information is on the wiki: http://fpdb.wiki.sourceforge.net/
|
||||||
|
REB 30-Jan-2009
|
||||||
|
|
||||||
Everything is subject to change and the order does not indicate priority. Patches for any of these or other features are very welcome, see readme-overview.txt for contacts.
|
Everything is subject to change and the order does not indicate priority. Patches for any of these or other features are very welcome, see readme-overview.txt for contacts.
|
||||||
Please also see db-todo.txt
|
Please also see db-todo.txt
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
This file is badly out of date, but I'm going to leave it here for now. :)
|
||||||
|
More up-to-date information is on the wiki: http://fpdb.wiki.sourceforge.net/
|
||||||
|
REB 30-Jan-2009
|
||||||
|
|
||||||
Hi,
|
Hi,
|
||||||
This document is to serve as a little overview (later: full technical doc) for current and prospective developers with:
|
This document is to serve as a little overview (later: full technical doc) for current and prospective developers with:
|
||||||
a) introduction into the code structure
|
a) introduction into the code structure
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
This file is badly out of date, but I'm going to leave it here for now. :)
|
||||||
|
More up-to-date information is on the wiki: http://fpdb.wiki.sourceforge.net/
|
||||||
|
REB 30-Jan-2009
|
||||||
|
|
||||||
|
|
||||||
Summary
|
Summary
|
||||||
=======
|
=======
|
||||||
A database program to track your online poker games, the behaviour of the other players and your winnings/losses. Supports Holdem, Omaha, Stud and Razz for cash games as well as SnG and MTT tournaments with more possibly coming in the future. Some of this is not yet working though, please see status.txt and known-bugs-and-planned-features.txt
|
A database program to track your online poker games, the behaviour of the other players and your winnings/losses. Supports Holdem, Omaha, Stud and Razz for cash games as well as SnG and MTT tournaments with more possibly coming in the future. Some of this is not yet working though, please see status.txt and known-bugs-and-planned-features.txt
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
This file is badly out of date, but I'm going to leave it here for now. :)
|
||||||
|
More up-to-date information is on the wiki: http://fpdb.wiki.sourceforge.net/
|
||||||
|
REB 30-Jan-2009
|
||||||
|
|
||||||
Before you do this make sure you setup the dependencies, the database, user, tables and config file.
|
Before you do this make sure you setup the dependencies, the database, user, tables and config file.
|
||||||
|
|
||||||
Running it
|
Running it
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
This file is badly out of date, but I'm going to leave it here for now. :)
|
||||||
|
More up-to-date information is on the wiki: http://fpdb.wiki.sourceforge.net/
|
||||||
|
REB 30-Jan-2009
|
||||||
|
|
||||||
For all support please note that the tables WILL be changed, almost certainly without keeping backwards compatibility. Therefore you should keep your history files after import so you can re-import when necessary. Should you lose history files and need a "database updater" let me know.
|
For all support please note that the tables WILL be changed, almost certainly without keeping backwards compatibility. Therefore you should keep your history files after import so you can re-import when necessary. Should you lose history files and need a "database updater" let me know.
|
||||||
|
|
||||||
If support for another site/game would encourage you to help with this software please let me know at steffen@sycamoretest.info.
|
If support for another site/game would encourage you to help with this software please let me know at steffen@sycamoretest.info.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Copyright 1999-2008 Gentoo Foundation
|
# Copyright 1999-2008 Gentoo Foundation
|
||||||
# Gentoo had nothing to do with the production of this ebuild, but I'm pre-emptively transferring all copyrights (as far as legally possible under my local jurisdiction) to them.
|
# Gentoo had nothing to do with the production of this ebuild, but I'm pre-emptively transferring all copyrights (as far as legally possible under my local jurisdiction) to them.
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
# $Header: /var/cvsroot/gentoo-x86/games-util/fpdb/fpdb-1.0_alpha8_p137.ebuild,v 1.0 2008/10/17 steffen@sycamoretest.info Exp $
|
# $Header: /var/cvsroot/gentoo-x86/games-util/fpdb/fpdb-0.10.ebuild,v 1.0 2009/1/30 steffen@sycamoretest.info Exp $
|
||||||
|
|
||||||
NEED_PYTHON=2.3
|
NEED_PYTHON=2.3
|
||||||
|
|
|
@ -1,62 +0,0 @@
|
||||||
# Copyright 1999-2008 Gentoo Foundation
|
|
||||||
# Gentoo had nothing to do with the production of this ebuild, but I'm pre-emptively transferring all copyrights (as far as legally possible under my local jurisdiction) to them.
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/games-util/fpdb/fpdb-1.0_alpha8_p137.ebuild,v 1.0 2008/10/17 steffen@sycamoretest.info Exp $
|
|
||||||
|
|
||||||
NEED_PYTHON=2.3
|
|
||||||
|
|
||||||
#inherit distutils
|
|
||||||
|
|
||||||
MY_P="fpdb-${PV}"
|
|
||||||
DESCRIPTION="A database program to track your online poker games"
|
|
||||||
HOMEPAGE="https://sourceforge.net/projects/fpdb/"
|
|
||||||
SRC_URI="mirror://sourceforge/fpdb/${MY_P}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="AGPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
#note: this should work on other architectures too, please send me your experiences
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="virtual/mysql
|
|
||||||
dev-python/mysql-python
|
|
||||||
>=x11-libs/gtk+-2.10
|
|
||||||
dev-python/pygtk
|
|
||||||
dev-python/numpy
|
|
||||||
dev-python/matplotlib"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
DIRINST="${D}usr/share/games/fpdb/"
|
|
||||||
mkdir -p "${DIRINST}"
|
|
||||||
cp -R * "${DIRINST}" || die
|
|
||||||
|
|
||||||
DIRBIN="${D}usr/games/bin/"
|
|
||||||
mkdir -p "${DIRBIN}"
|
|
||||||
#echo "pathes"
|
|
||||||
#echo "${DIRINST}pyfpdb/fpdb.py"
|
|
||||||
#echo "${DIRBIN}fpdb.py"
|
|
||||||
#echo
|
|
||||||
echo "cd /usr/share/games/fpdb/pyfpdb/ && python fpdb.py" > "${DIRBIN}fpdb" || die
|
|
||||||
chmod 755 "${DIRBIN}fpdb" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
#src_test() {
|
|
||||||
#}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "Fpdb has been installed and can be called by executing /usr/games/bin/fpdb"
|
|
||||||
elog "You need to perform a couple more steps manually."
|
|
||||||
elog "Please also make sure you followed instructions from previous emerges, in particular make sure you configured mysql and set a root pw for it"
|
|
||||||
elog "Now run this command to connect to MySQL: mysql --user=root --password=yourPassword"
|
|
||||||
elog "In the mysql command line interface you need to type these two lines (make sure you get the ; at the end)"
|
|
||||||
elog "In the second line replace \"newPassword\" with a password of your choice"
|
|
||||||
elog "CREATE DATABASE fpdb;"
|
|
||||||
elog "GRANT ALL PRIVILEGES ON fpdb.* TO 'fpdb'@'localhost' IDENTIFIED BY 'newPassword' WITH GRANT OPTION;"
|
|
||||||
elog "Finally copy the default config file from ${DIRINST}docs/default.conf to ~/.fpdb/ for every user that is to use fpdb."
|
|
||||||
elog "You will need to edit the default.conf, in particular you need to replace the password with what you entered in the \"GRANT ALL...\""
|
|
||||||
elog "Finally run the GUI and click the menu database -> recreate tables"
|
|
||||||
elog "That's it! See our webpage at http://fpdb.sourceforge.net for more documentation"
|
|
||||||
elog " "
|
|
||||||
}
|
|
|
@ -1,22 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
#Copyright 2008 Steffen Jobbagy-Felso
|
|
||||||
#This program is free software: you can redistribute it and/or modify
|
|
||||||
#it under the terms of the GNU Affero General Public License as published by
|
|
||||||
#the Free Software Foundation, version 3 of the License.
|
|
||||||
#
|
|
||||||
#This program is distributed in the hope that it will be useful,
|
|
||||||
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
#GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
#You should have received a copy of the GNU Affero General Public License
|
|
||||||
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
#In the "official" distribution you can find the license in
|
|
||||||
#agpl-3.0.txt in the docs folder of the package.
|
|
||||||
|
|
||||||
rm regression-test/*.found.txt
|
|
||||||
rm regression-test/*.pyc
|
|
||||||
rm pyfpdb/*.pyc
|
|
||||||
|
|
||||||
git-add--interactive
|
|
|
@ -121,11 +121,6 @@ def read_stdin(): # This is the thread function
|
||||||
destroy()
|
destroy()
|
||||||
break # this thread is not always killed immediately with gtk.main_quit()
|
break # this thread is not always killed immediately with gtk.main_quit()
|
||||||
|
|
||||||
# delete hud_dict entries for any HUD destroyed since last iteration
|
|
||||||
# for h in hud_dict:
|
|
||||||
# HUD_removed(h)
|
|
||||||
# removing this function, we shouldn't need it anymore, since the hud should notify us anyway, right?
|
|
||||||
|
|
||||||
# get basic info about the new hand from the db
|
# get basic info about the new hand from the db
|
||||||
(table_name, max, poker_game) = db_connection.get_table_name(new_hand_id)
|
(table_name, max, poker_game) = db_connection.get_table_name(new_hand_id)
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,8 @@ import GuiGraphViewer
|
||||||
import FpdbSQLQueries
|
import FpdbSQLQueries
|
||||||
import Configuration
|
import Configuration
|
||||||
|
|
||||||
|
VERSION = "0.10"
|
||||||
|
|
||||||
class fpdb:
|
class fpdb:
|
||||||
def tab_clicked(self, widget, tab_name):
|
def tab_clicked(self, widget, tab_name):
|
||||||
"""called when a tab button is clicked to activate that tab"""
|
"""called when a tab button is clicked to activate that tab"""
|
||||||
|
@ -114,7 +116,8 @@ class fpdb:
|
||||||
#end def destroy
|
#end def destroy
|
||||||
|
|
||||||
def dia_about(self, widget, data):
|
def dia_about(self, widget, data):
|
||||||
print "todo: implement dia_about"
|
print "todo: implement dia_about",
|
||||||
|
print " version = %s, requires database version %s" % (VERSION, "118")
|
||||||
#end def dia_about
|
#end def dia_about
|
||||||
|
|
||||||
def dia_create_del_database(self, widget, data):
|
def dia_create_del_database(self, widget, data):
|
||||||
|
@ -376,7 +379,7 @@ This program is licensed under the AGPL3, see docs"""+os.sep+"agpl-3.0.txt")
|
||||||
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
|
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
|
||||||
self.window.connect("delete_event", self.delete_event)
|
self.window.connect("delete_event", self.delete_event)
|
||||||
self.window.connect("destroy", self.destroy)
|
self.window.connect("destroy", self.destroy)
|
||||||
self.window.set_title("Free Poker DB - version: alpha9+, p143 or higher")
|
self.window.set_title("Free Poker DB - v%s or higher" % (VERSION, ))
|
||||||
self.window.set_border_width(1)
|
self.window.set_border_width(1)
|
||||||
self.window.set_size_request(1020,400)
|
self.window.set_size_request(1020,400)
|
||||||
self.window.set_resizable(True)
|
self.window.set_resizable(True)
|
||||||
|
|
|
@ -15,23 +15,23 @@
|
||||||
#In the "official" distribution you can find the license in
|
#In the "official" distribution you can find the license in
|
||||||
#agpl-3.0.txt in the docs folder of the package.
|
#agpl-3.0.txt in the docs folder of the package.
|
||||||
|
|
||||||
|
#get rid of extraneous stuff
|
||||||
rm regression-test/*.found.txt
|
rm regression-test/*.found.txt
|
||||||
rm regression-test/*.pyc
|
rm regression-test/*.pyc
|
||||||
rm pyfpdb/*.pyc
|
rm pyfpdb/*.pyc
|
||||||
|
|
||||||
mkdir fpdb-$1
|
# make the fpdb_$1.zip file for windows
|
||||||
cp -R docs fpdb-$1/
|
echo "*** making zip file"
|
||||||
cp -R packaging fpdb-$1/
|
zip -r ../fpdb_$1.zip docs
|
||||||
cp -R pyfpdb fpdb-$1/
|
zip -r ../fpdb_$1.zip ignore-me_perl6
|
||||||
rm fpdb-$1/pyfpdb/HUD_config.*
|
zip -r ../fpdb_$1.zip packaging
|
||||||
cp pyfpdb/HUD_config.xml.example fpdb-$1/pyfpdb/HUD_config.xml
|
zip -r ../fpdb_$1.zip pyfpdb
|
||||||
cp -R regression-test fpdb-$1/
|
zip -r ../fpdb_$1.zip regression-test
|
||||||
cp -R utils fpdb-$1/
|
zip -r ../fpdb_$1.zip utils
|
||||||
|
zip -r ../fpdb_$1.zip website
|
||||||
|
|
||||||
|
# now make the fpdb_$1.tar.bz2 file for linux
|
||||||
|
echo "*** making tar.bz2 file"
|
||||||
|
tar --recursion -cjf ../fpdb_$1.tar.bz2 *
|
||||||
|
|
||||||
cd fpdb-$1
|
|
||||||
zip -r releases/fpdb-1.0_$1.zip *
|
|
||||||
tar -cf - * | bzip2 >> releases/fpdb-1.0_$1.tar.bz2
|
|
||||||
cd ..
|
|
||||||
rm -r fpdb-$1
|
|
||||||
|
|
||||||
echo "Please ensure the files are named fpdb-1.0_alpha*_p*.*"
|
|
Loading…
Reference in New Issue
Block a user