Added .bat files to test and build under Windows systems; adjusted ignore, setup and Makefiles for this platform.
This commit is contained in:
parent
f93e24a280
commit
a4dcaf0f4c
|
@ -1,3 +1,4 @@
|
||||||
*.pyc
|
*.pyc
|
||||||
*.pyo
|
*.pyo
|
||||||
/build
|
/build
|
||||||
|
/dist
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -43,7 +43,7 @@ count:
|
||||||
clean:
|
clean:
|
||||||
find . -name \*.pyc -delete
|
find . -name \*.pyc -delete
|
||||||
find . -name \*.pyo -delete
|
find . -name \*.pyo -delete
|
||||||
rm -rf build
|
rm -rf build dist
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
:: Create patool Windows distribution file
|
||||||
|
:: Copyright (C) 2010 Bastian Kleineidam
|
||||||
|
:: This program is free software: you can redistribute it and/or modify
|
||||||
|
:: it under the terms of the GNU General Public License as published by
|
||||||
|
:: the Free Software Foundation, either version 3 of the License, or
|
||||||
|
:: (at your option) any later version.
|
||||||
|
::
|
||||||
|
:: 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 General Public License
|
||||||
|
:: along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
@echo off
|
||||||
|
set PYDIR=c:\python26
|
||||||
|
rd build /s /q
|
||||||
|
rd dist /s /q
|
||||||
|
%PYDIR%\python.exe setup.py bdist_wininst
|
||||||
|
pause
|
12
setup.py
12
setup.py
|
@ -22,7 +22,7 @@ import sys
|
||||||
if not (hasattr(sys, 'version_info') or
|
if not (hasattr(sys, 'version_info') or
|
||||||
sys.version_info < (2, 5, 0, 'final', 0)):
|
sys.version_info < (2, 5, 0, 'final', 0)):
|
||||||
raise SystemExit("This program requires Python 2.5 or later.")
|
raise SystemExit("This program requires Python 2.5 or later.")
|
||||||
|
import os
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
|
|
||||||
AppName = "patool"
|
AppName = "patool"
|
||||||
|
@ -30,6 +30,12 @@ AppVersion = "0.3"
|
||||||
MyName = "Bastian Kleineidam"
|
MyName = "Bastian Kleineidam"
|
||||||
MyEmail = "calvin@users.sourceforge.net"
|
MyEmail = "calvin@users.sourceforge.net"
|
||||||
|
|
||||||
|
data_files = []
|
||||||
|
if os.name == 'nt':
|
||||||
|
data_files.append(('share', ['doc/patool.txt']))
|
||||||
|
else:
|
||||||
|
data_files.append(('share/man/man1', ['doc/patool.1']))
|
||||||
|
|
||||||
setup (
|
setup (
|
||||||
name = AppName,
|
name = AppName,
|
||||||
version = AppVersion,
|
version = AppVersion,
|
||||||
|
@ -40,8 +46,6 @@ setup (
|
||||||
maintainer_email = MyEmail,
|
maintainer_email = MyEmail,
|
||||||
license = "GPL",
|
license = "GPL",
|
||||||
packages = ['patoolib', 'patoolib.programs'],
|
packages = ['patoolib', 'patoolib.programs'],
|
||||||
data_files = [
|
data_files = data_files,
|
||||||
('share/man/man1', ['doc/patool.1']),
|
|
||||||
],
|
|
||||||
scripts = ['patool'],
|
scripts = ['patool'],
|
||||||
)
|
)
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
:: Run patool test suite
|
||||||
|
:: Copyright (C) 2010 Bastian Kleineidam
|
||||||
|
:: This program is free software: you can redistribute it and/or modify
|
||||||
|
:: it under the terms of the GNU General Public License as published by
|
||||||
|
:: the Free Software Foundation, either version 3 of the License, or
|
||||||
|
:: (at your option) any later version.
|
||||||
|
::
|
||||||
|
:: 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 General Public License
|
||||||
|
:: along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
@echo off
|
||||||
|
set PYDIR=C:\Python26
|
||||||
|
%PYDIR%\python.exe %PYDIR%\scripts\nosetests -v -m "^test_.*" tests/
|
||||||
|
@pause
|
Loading…
Reference in New Issue