Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
g-pypi marked for remove :(
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Faraclas
Tux's lil' helper
Tux's lil' helper


Joined: 08 Dec 2014
Posts: 117

PostPosted: Thu Mar 19, 2015 10:43 pm    Post subject: g-pypi marked for remove :( Reply with quote

I noticed that g-pypi (http://g-pypi.readthedocs.org/en/latest/ ) was marked for removal.

Code:
# eix g-pypi
* dev-python/g-pypi
     Available versions:  [M]0.3 {doc test}
     Homepage:            https://github.com/iElectric/g-pypi
     Description:         Manages ebuilds using information from Python Package Index



This is too bad as I thought it was really useful. I don't think I'm at the level yet to maintain this [maybe someday].

I'm hoping someone might read this and maintain it. Otherwise, is there any similar tool?
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Fri Mar 20, 2015 5:17 am    Post subject: Reply with quote

It is replaced by app-portage/g-sorcery, which is a much better, more flexible way to generate ebuilds from pypi or other sources.

And it has a layman module distributed with layman for complete overlays. Or it can be used separately on a per-pkg basis.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
Faraclas
Tux's lil' helper
Tux's lil' helper


Joined: 08 Dec 2014
Posts: 117

PostPosted: Fri Mar 20, 2015 6:00 pm    Post subject: Reply with quote

Great, this is good news! I guess the g-pypi has specifically been replaced by app-portage/gs-pypi. Do you know if there is any documentation on how to use it?
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Fri Mar 20, 2015 8:40 pm    Post subject: Reply with quote

I pinged it's creator with this forum thread. Only thing I know is https://github.com/jauhien/gs-pypi
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
jauhien
n00b
n00b


Joined: 27 Sep 2012
Posts: 11
Location: Cracow, Poland

PostPosted: Thu Apr 09, 2015 7:32 pm    Post subject: Reply with quote

@dol-sen: sorry for taking long time to answer: I'm quite busy now.

@Faraclas: docs by the link provided by dol-sen are ok. Just emerge gs-pypi, edit /etc/g-sorcery/g-sorcery.cfg (if you do not want loooots of ebuilds generated) and execute

Code:

layman -L
layman -a pypi


Ebiulds that you need will be generated.

There is one problem though: DB is a little bit outdated, as I was busy. I will try to update it, or finally make this update automatical ), or ask somebody to do so. Any way, even with outdated DB gs-pypi is usable.

In case of any bugs, please, open an issue on github.
Back to top
View user's profile Send private message
jauhien
n00b
n00b


Joined: 27 Sep 2012
Posts: 11
Location: Cracow, Poland

PostPosted: Fri Apr 10, 2015 9:48 pm    Post subject: Reply with quote

So I've fixed problem with python version and will try to test and update DB in the nearest time.
Back to top
View user's profile Send private message
jauhien
n00b
n00b


Joined: 27 Sep 2012
Posts: 11
Location: Cracow, Poland

PostPosted: Sat Apr 11, 2015 1:09 pm    Post subject: Reply with quote

DB updated, problem with python version should be fixed.
Back to top
View user's profile Send private message
Faraclas
Tux's lil' helper
Tux's lil' helper


Joined: 08 Dec 2014
Posts: 117

PostPosted: Wed Jul 01, 2015 4:22 pm    Post subject: Reply with quote

Ok, I am trying to use this method now and getting some errors. I have installed gs-pypi and edited

/etc/g-sorcery/g-sorcery.cfg
Code:

[main]
package_manager=portage

[gs-pypi]
pypi_packages=pyvisa


Then

Code:
eliasgentoo elias # layman -L | grep pypi
 * pypi                      [g-sorcery ] (gs-pypi pypi                        )


Then (the error)

Code:
eliasgentoo elias # layman -a pypi

 * Adding overlay...
 * Overlay "pypi" is not an official. Continue install? [y/n]: y
 * Running ... # ( cd /var/lib/layman/pypi  && /usr/bin/g-sorcery gs-pypi -o /var/lib/layman/pypi -r pypi sync )
--2015-07-01 10:12:40--  https://github.com/jauhien/gs-pypi-db/archive/bson.tar.gz
Resolving github.com... 192.30.252.130
Connecting to github.com|192.30.252.130|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/jauhien/gs-pypi-db/tar.gz/bson [following]
--2015-07-01 10:12:40--  https://codeload.github.com/jauhien/gs-pypi-db/tar.gz/bson
Resolving codeload.github.com... 192.30.252.147
Connecting to codeload.github.com|192.30.252.147|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/tmp/tmprdHXS1/bson.tar.gz’

/tmp/tmprdHXS1/bson     [    <=>               ]   6.04M  9.13MB/s   in 0.7s   

2015-07-01 10:12:42 (9.13 MB/s) - ‘/tmp/tmprdHXS1/bson.tar.gz’ saved [6331065]

 * unpacking /tmp/tmprdHXS1/bson.tar.gz
gs-pypi-db-bson/
gs-pypi-db-bson/categories.json
gs-pypi-db-bson/dev-python/
gs-pypi-db-bson/dev-python/packages.bson
gs-pypi-db-bson/manifest.json
gs-pypi-db-bson/metadata.json
 * copy files to an actual database
‘/tmp/tmpMEz4me/gs-pypi-db-bson/categories.json’ -> ‘/var/lib/layman/pypi/.g-sorcery/gs_pypi/pypi/db/categories.json’
‘/tmp/tmpMEz4me/gs-pypi-db-bson/dev-python’ -> ‘/var/lib/layman/pypi/.g-sorcery/gs_pypi/pypi/db/dev-python’
‘/tmp/tmpMEz4me/gs-pypi-db-bson/dev-python/packages.bson’ -> ‘/var/lib/layman/pypi/.g-sorcery/gs_pypi/pypi/db/dev-python/packages.bson’
‘/tmp/tmpMEz4me/gs-pypi-db-bson/manifest.json’ -> ‘/var/lib/layman/pypi/.g-sorcery/gs_pypi/pypi/db/manifest.json’
‘/tmp/tmpMEz4me/gs-pypi-db-bson/metadata.json’ -> ‘/var/lib/layman/pypi/.g-sorcery/gs_pypi/pypi/db/metadata.json’
 * Running g-sorcery... # ( cd /var/lib/layman/pypi  && /usr/bin/g-sorcery gs-pypi -o /var/lib/layman/pypi generate-tree )
 * tree generation
 * no package with name pyvisa found

Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/g-sorcery", line 18, in <module>
    sys.exit(g_sorcery.main())
  File "/usr/lib64/python2.7/site-packages/g_sorcery/g_sorcery.py", line 68, in main
    return backend.instance(sys.argv[2:], config, global_config)
  File "/usr/lib64/python2.7/site-packages/g_sorcery/backend.py", line 641, in __call__
    return args.func(args, config, global_config)
  File "/usr/lib64/python2.7/site-packages/g_sorcery/backend.py", line 526, in generate_tree
    dependencies |= self.get_dependencies(pkg_db, pkg)
  File "/usr/lib64/python2.7/site-packages/g_sorcery/backend.py", line 347, in get_dependencies
    raise DependencyError(error)
g_sorcery.exceptions.DependencyError: no package with name pyvisa found
 * Failure result returned from g-sorcery
 * Adding repository "pypi" failed! Possible remains of the operation have NOT been removed and may be left at "/var/lib/layman/pypi". Please remove them manually if required.

 * CLI: Errors occurred processing action add
 * Adding repository "pypi" failed! Possible remains of the operation have NOT been removed and may be left at "/var/lib/layman/pypi". Please remove them manually if required.


Also, I guess I only need to use this stuff in python 3.4. Can I edit something to only use 3.4?

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum