python3 add new package and fix

This commit is contained in:
alihanozturk
2016-06-07 00:15:28 +03:00
parent 74e4a469fc
commit 7fafc28402
19 changed files with 500 additions and 0 deletions
@@ -0,0 +1,33 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
WorkDir = "nose-%s" % get.srcVERSION()
examples = "%s/%s/" % (get.docDIR(), get.srcNAME())
shelltools.export("PYTHONDONTWRITEBYTECODE", "1")
def setup():
shelltools.system("sed -i -e 's:man/man1:share/man/man1:g' setup.py")
def build():
pythonmodules.compile(pyVer="3")
def install():
pythonmodules.install(pyVer="3")
pisitools.rename("/usr/bin/nosetests", "nosetests3")
pisitools.removeDir("/usr/share/man")
pisitools.dohtml("doc/*")
shelltools.chmod("examples/*", 0644)
pisitools.insinto(examples, "examples/*")
@@ -0,0 +1,45 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM 'http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd'>
<PISI>
<Source>
<Name>python3-nose</Name>
<Homepage>http://somethingaboutorange.com/mrl/projects/nose/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>LGPLv2.1</License>
<IsA>library</IsA>
<IsA>app:console</IsA>
<Summary>A unittest extension offering automatic test suite discovery and easy test authoring</Summary>
<Description>python-nose provides an alternate test discovery and running process for unittest, one that is intended to mimic the behavior of py.test as much as is reasonably possible without resorting to too much magic.</Description>
<Archive sha1sum="97f2a04c9d43b29ddf4794a1a1d1ba803f1074c6" type="targz">https://pypi.python.org/packages/source/n/nose/nose-1.3.7.tar.gz</Archive>
<BuildDependencies>
<Dependency>python3-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>python3-nose</Name>
<RuntimeDependencies>
<Dependency>python3</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2015-08-04</Date>
<Version>1.3.7</Version>
<Comment>First release</Comment>
<Name>Ertuğrul Erata</Name>
<Email>ertugrulerata@gmail.com</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>python-nose</Name>
<Summary xml:lang="tr">Python için unittest genişlemesi</Summary>
<Description xml:lang="tr">python-nose alternatif test tanıtma ve keşif kitaplığı.</Description>
</Source>
</PISI>