OldhamMade / beanstalktop

A top-like UI for monitoring beanstalkd servers.
MIT License
3 stars 6 forks source link

Move beanstalktop.py into site-packages #9

Closed Siecje closed 7 years ago

Siecje commented 7 years ago

I noticed that beanstalktop.py was being put in the bin/ folder with beanstalktop and it is working because when beanstalktop imports beanstalktop.py it checks its parent directory.

This PR will move beanstalktop.py into site-packages/.

bin/beanstalktop used to be

#!/home/siecje/venv/bin/python3

# -*- coding: utf-8 -*-
import re
import sys

from beanstalktop import main

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(main())

and it will become

#!/home/siecje/venv/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'beanstalktop==0.0.4','console_scripts','beanstalktop'
__requires__ = 'beanstalktop==0.0.4'
import re
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(
        load_entry_point('beanstalktop==0.0.4', 'console_scripts', 'beanstalktop')()
    )
Siecje commented 6 years ago

Any chance of a new release on PyPI?

OldhamMade commented 6 years ago

Ah, I thought I'd done that already. I'll see if I can get a release done in the next few hours, otherwise it will be at the weekend. Hope that's ok!

Siecje commented 6 years ago

I just realized that the beanstalktop on PyPI[0] is not from you. It is from someone else[1].

0: https://pypi.org/project/beanstalktop/ 1: https://github.com/wewriteapps/beanstalktop

OldhamMade commented 6 years ago

Yep, it's from me – that's an old account/brand. I'm in the process of moving everything over. Sorry for the delay with this.

Siecje commented 6 years ago

Poke 😄

OldhamMade commented 6 years ago

@Siecje I've bumped the version to follow semver, tagged 0.0.4 and 0.1.0, and pushed 0.1.0 as a wheel to PyPI.

Siecje commented 6 years ago

Awesome! Can you also upload a Python3 wheel?

I know that beanstalkc is a dependency and it doesn't support Python3. But I am using the beanstalkc3 fork until this PR can be merged and I am installing beanstalktop with

python -m pip install beanstalktop --no-deps.

Right now it installs version 0.0.4, instead of 0.1.0.

OldhamMade commented 6 years ago

@Siecje Done. beanstalktop installs for me direct from PyPI for both 2.7.14 and 3.6.4