examachine / pisi Goto Github PK
View Code? Open in Web Editor NEWPISI package manager of Pardus linux written in Python. The original development branch by the main author.
License: Other
PISI package manager of Pardus linux written in Python. The original development branch by the main author.
License: Other
another tool called pisi-devel or pisi-script tool for accumulating various developer scripts, could be handy
pisi li 'xml' > kurulu.xml
pisi it -r kurulu.xml veya pisi it < cat kurulu.xml
The tests hang at packagedb unit tests and do not move forward
$ tests/run.py
** Running all tests
Ran 7 tests in 3.857s
OK
Ran 4 tests in 8.532s
OK
Ran 4 tests in 0.011s
OK
Ran 2 tests in 9.284s
OK
Ran 4 tests in 0.002s
OK
Ran 3 tests in 3.382s
OK
Ran 2 tests in 0.000s
OK
Ran 4 tests in 0.001s
OK
Traceback (most recent call last):
File "/Volumes/Centauri/Users/malfunct/Code/projects/pisi/tests/fetchertests.py", line 44, in testResume
shutil.copy(resume_test_file, ctx.config.archives_dir())
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 119, in copy
copyfile(src, dst)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 82, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: 'tests/helloworld/hello-1.3.tar.gz.part'
Ran 2 tests in 1.298s
FAILED (errors=1)
Ran 1 test in 0.001s
OK
Traceback (most recent call last):
File "/Volumes/Centauri/Users/malfunct/Code/projects/pisi/tests/filetests.py", line 30, in testRemoteRead
f = File("http://uludag.org.tr/haberler/rootfs0.2.html", File.read)
File "./pisi/file.py", line 160, in init
localfile = File.download(uri, transfer_dir, sha1sum, compress, sign)
File "./pisi/file.py", line 119, in download
fetch_url(uri, transfer_dir, ctx.ui.Progress)
File "./pisi/fetcher.py", line 55, in fetch_url
fetch.fetch()
File "./pisi/fetcher.py", line 100, in fetch
self.fetchRemoteFile(partial_file)
File "./pisi/fetcher.py", line 198, in fetchRemoteFile
self.err(_('Cannot fetch %s; %s') % (uri, e[-1][-1]))
File "./pisi/fetcher.py", line 253, in err
raise FetchError(error)
FetchError: Cannot fetch http://uludag.org.tr/haberler/rootfs0.2.html; nodename nor servname provided, or not known
Ran 2 tests in 0.224s
FAILED (errors=1)
Ran 2 tests in 0.000s
OK
Ran 3 tests in 2.269s
OK
Ran 3 tests in 0.006s
OK
Ran 1 test in 0.000s
OK
İnternet hızları ve kotalar eskisine nazaran çok arttığına göre, bant genişliğini tam anlamıyla kullanmak için çoklu paket indirimi özelliği eklenebilir.
pisilinux/main#240 ile istediğimiz packagekit desteği pisilinux ta kullandığımız pisi ile packagekit uyumlu çalışmıyor. leveldb tek bağlantı kabul ettiği ve kapanmadığı işçin problem çıkartıyor.
plyvel ( leveldb python şeysi) de açılmış bir issue var. wbolster/plyvel#44
büyük boyutlu sourcelerde build işlemi bittikten sonra pisi dosyaların hash ını alırken hash alma işlemi çok uzuyor
pisi chroot icinde execute etmek icin generic bir option --chroot option'i da olsun
pisi python3 ile yeniden yazılması mümkün olabilir mi?
does search API work well with cats?
ps: check out bahadir's pisign tool in 2.x branch
'duh
the approx. searching algo would probably be a separate flag and work much slower.
$ tests/run.py xmlext
* Running tests in xmlexttests
testAdd (xmlexttests.XmlExtTestCase) ... ok
testGet (xmlexttests.XmlExtTestCase) ... FAIL
======================================================================
FAIL: testGet (xmlexttests.XmlExtTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Volumes/Centauri/Users/malfunct/Code/projects/pisi/tests/xmlexttests.py", line 34, in testGet
self.assertEqual(len(codeswith), 4)
AssertionError: 5 != 4
----------------------------------------------------------------------
Ran 2 tests in 0.002s
FAILED (failures=1)
Traceback (most recent call last):
File "/Volumes/Centauri/Users/malfunct/Code/projects/pisi/tests/archivetests.py", line 81, in testMakeZip
spec = SpecFile("tests/pccts/pspec.xml")
File "./pisi/pxml/autoxml.py", line 337, in initialize
self.read(uri, keepDoc, tmpDir)
File "./pisi/pxml/autoxml.py", line 426, in read
compress=compress, sign=sign, copylocal=copylocal)
TypeError: readxml() got an unexpected keyword argument 'sha1sum'
python 2.x is obsolete
see if can be backported from 2.x
try to merge its use with packagedb
'duh?
sort of match the refactoring of pisi-2.x series and improve it. split long source files into sub-packages.
Implement an install command in util module, this will make it portable
Need verification for index
Write a PISI tool like debootstrap
current workaround:
#db.DB_INIT_LOCK | # locking subsystem
could be caused because somehow ctx isn't a real singleton... have to investigate.
The initial inverted index implementation is too slow for incremental use.
Write a fast incremental update algorithm.
Pisi Linux'un kullandığı pisi de ihtiyaç duyulduğu için emerge.py yi kopyalayıp emergeup.py yaparak ve içerisinde oynayarak emerge ile kurulan paketlerin güncellenmesi özelliğini eklemiştim. Bu özelliği de eklemeniz hoş olurdu. "pisi emup" "pisiemergeup".
pisi fc komutuna da --deps gibi bir parametre ekleyip indirilen paketin bağımlılıklarını da indirmeyi sağlamıştık. Bunu da düşünebilirsiniz.
$ tests/build.sh
beta functionality test script
working directory: /Volumes/Centauri/Users/malfunct/Code/projects/pisi
cleaning destination dir: tmp
+ set -e
+ rm -rf tmp
+ pisi-cli -Dtmp build https://raw.githubusercontent.com/pars-linux/corporate2/master/system/base/zip/pspec.xml https://raw.githubusercontent.com/pars-linux/corporate2/master/system/base/unzip/pspec.xml
Destination directory tmp does not exist. Creating directory.
Writing current database version for dbversion
Writing current database version for filesdbversion
Outputting packages in the working directory.
pspec.xml (2.0 KB)100% 0.00 B/s [??:??:??] [complete]
actions.py (669.0 B)100% 0.00 B/s [??:??:??] [complete]
zip-3.0-build.patch (923.0 B)100% 0.00 B/s [??:??:??] [complete]
zip-3.0-noexecstack.patch (662.0 B)100% 0.00 B/s [??:??:??] [complete]
zip-3.0-pic.patch (499.0 B)100% 0.00 B/s [??:??:??] [complete]
zip-3.0-no-crypt.patch (1.0 KB)100% 0.00 B/s [??:??:??] [complete]
Building PISI source package: zip
Compiling action script
Safety switch: the component system.devel cannot be found
PartOf tag not defined, looking for component
component.xml (44.0 B)100% 0.00 B/s [??:??:??] [complete]
Program Terminated.
PISI.localName: At least one 'LocalName' tag should have local text
PISI.summary: At least one 'Summary' tag should have local text
PISI.description: At least one 'Description' tag should have local text
autoxml.read: File '/Volumes/Centauri/Users/malfunct/Code/projects/pisi/tmp/var/tmp/pisi/zip-3.0-4/work/component.xml' has errors
Please use 'pisi help' for general help.
Use --debug to see a traceback.
$ tests/light.sh
/Volumes/Centauri/Users/malfunct/Code/projects/pisi
+ rm -rf tmp
+ mkdir tmp
+ set -e
+ pisi-cli -Dtmp -E --ignore-build-no build tests/zip/pspec.xml tests/unzip/pspec.xml
Writing current database version for dbversion
Writing current database version for filesdbversion
Outputting packages in the working directory.
Building PISI source package: zip
Compiling action script
Safety switch: the component system.devel cannot be found
Unsatisfied Build Dependencies: patch
Ignoring build dependencies.
Fetching source from: ftp://ftp.linux.org.tr/pub/mirrors/gentoo/distfiles/zip23.tar.gz
Program Terminated.
Cannot fetch ftp://ftp.linux.org.tr/pub/mirrors/gentoo/distfiles/zip23.tar.gz; .
Please use 'pisi help' for general help.
Use --debug to see a traceback.
depends on #91
current dev branch to be run on OS X, and re-release it as 1.2
There was full 7z support in one of the previous SVN revisions..... gotta port it back to devel branch
MongoDB pisi için kullanılabilir mi?
$ tests/run.py util
Traceback (most recent call last):
File "/Volumes/Centauri/Users/malfunct/Code/projects/pisi/tests/utiltests.py", line 70, in testDirSize
self.assertEqual(dir_size('tests/utilfiles/linktonowhere'), 23)
AssertionError: 0 != 23
Traceback (most recent call last):
File "/Volumes/Centauri/Users/malfunct/Code/projects/pisi/tests/utiltests.py", line 79, in testGetFileHashes
self.assertEqual(len([x for x in get_file_hashes('tests/utilfiles/')]), 4)
AssertionError: 3 != 4
Ran 5 tests in 0.009s
FAILED (failures=2)
ile kaynak kod çekme olsa çok iyi olurdu uzun zamandır pisi de bu özelliğin olmasını hep istemişimdir.
we have a db, but does it work well?
do we do this correctly?
check if this is supported nicely
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.