Subversion Repositories pub

Compare Revisions

No changes between revisions

Ignore whitespace Rev 191 → Rev 192

/relevation/branches/1.1/Makefile
18,6 → 18,7
 
distclean: clean
-$(RM) $(PKGVER).tar.gz $(PKGVER).zip
-$(RM) -r dist build
 
install:
install -D -m755 $(PKG).py $(DESTDIR)$(prefix)/bin/$(PKG)
56,3 → 57,5
zip -9 -r $(PKGVER).zip $(PKGVER)
-$(RM) -r $(PKGVER)
 
exe:
python setup_py2exe.py py2exe
/relevation/branches/1.1/win/zipdist.py
0,0 → 1,40
from zipfile import ZipFile
import os
import sys
import glob
import shutil
import platform
 
sys.path.append(os.path.abspath('.'))
 
import relevation
 
if sys.platform != 'win32':
print "This script is meant to be run in Windows only"
sys.exit(3)
 
if not os.path.isdir('dist'):
print "dist\\ must exist"
sys.exit(2)
 
plat = platform.architecture()
if plat[0] == '64bit':
plat = '64'
else:
plat = '32'
 
pkgver = 'relevation-%s_win%s' % ( relevation.__version__, plat )
zipname = pkgver + '.zip'
 
if os.path.isdir(pkgver):
shutil.rmtree(pkgver)
shutil.copytree("dist", pkgver)
 
print '>',zipname
with ZipFile(zipname, 'w') as zipf:
for f in glob.glob("%s\\*" % pkgver):
zipf.write(f)
print f
 
if os.path.isdir(pkgver):
shutil.rmtree(pkgver)
/relevation/branches/1.1/win/make_exe.bat
0,0 → 1,7
@echo off
cd ..
echo Creating EXE(s)...
python win\setup_py2exe.py py2exe
echo Creating ZIP...
python win\zipdist.py
pause
/relevation/branches/1.1/win/setup_py2exe.py
0,0 → 1,6
from distutils.core import setup
import py2exe
 
setup(console=['relevation.py'],
windows=['gui.py'],
ignores=['Crypto'])
/relevation/branches/1.1/win
Property changes:
Added: bugtraq:number
+true
\ No newline at end of property
/relevation/branches/1.1/relevation.py
46,6 → 46,10
import stat
import sys
import zlib
# Help py2exe in packaging lxml
# <http://www.py2exe.org/index.cgi/WorkingWithVariousPackagesAndModules>
import lxml._elementpath as _dummy
import gzip # py2exe again
 
USE_PYCRYPTO = True
 
240,7 → 244,7
fl = os.path.expanduser(parser.get('relevation', 'file'))
if 'password' in ops:
if wr: # TODO: how to check in windows?
sys.stderr.write('Your password can be read by anyone!!!\n')
printe('Your password can be read by anyone!!!')
pw = parser.get('relevation', 'password')
else: # exists but not readable
printe('Configuration file (~/.relevation.conf) is not readable!')
/relevation/branches/1.1/CHANGELOG
1,11 → 1,15
$Date$
 
1.1 (2011-07-05):
1.1 (2011-07-08):
- Support cryptopy if PyCrypto is not available. Enhances
cross-platform support.
- Print an error message if the decryption produced wrong data
(normally caused by a bad password)
- Add PyCrypto/cryptopy to version info (--version)
- Windows support enhancements:
- Minimalistic GUI
- Py2exe support
- Packaging scripts
 
1.0 (2011-06-30):
- First public release
/relevation/branches/1.1/gui.py
104,6 → 104,12
top.columnconfigure(0, weight=1, pad=5)
frame.rowconfigure(0, weight=1, pad=5)
frame.columnconfigure(0, weight=1)
 
# Avoid printing to stderr
def ignoreme(s):
pass
relevation.printe = ignoreme
relevation.printen = ignoreme
FILL = tk.N+tk.S+tk.E+tk.W
BTNROW = 2