Rename buku.py to buku

This commit is contained in:
Arun Prakash Jana 2018-11-12 00:15:18 +05:30
parent b216ab3679
commit a49da5f549
6 changed files with 11 additions and 5 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@
buku.egg-info
dist
build
buku.py

View File

@ -12,7 +12,7 @@ install:
install -m755 -d $(MANDIR)
install -m755 -d $(DOCDIR)
gzip -c buku.1 > buku.1.gz
install -m755 buku.py $(BINDIR)/buku
install -m755 buku $(BINDIR)/buku
install -m644 buku.1.gz $(MANDIR)
install -m644 README.md $(DOCDIR)
rm -f buku.1.gz

View File

@ -141,8 +141,8 @@ To remove, run:
`buku` is a standalone utility. From the containing directory, run:
$ chmod +x buku.py
$ ./buku.py
$ chmod +x buku
$ ./buku
### Shell completion

View File

View File

@ -1,4 +1,5 @@
certifi
urllib3>=1.13.1
beautifulsoup4>=4.4.1
certifi
cryptography>=1.2.3
setuptools
urllib3>=1.13.1

View File

@ -1,6 +1,7 @@
#!/usr/bin/env python3
import re
import shutil
import sys
from setuptools import setup, find_packages
@ -9,6 +10,8 @@ if sys.version_info < (3, 4):
print('ERROR: Buku requires at least Python 3.4 to run.')
sys.exit(1)
shutil.copyfile('buku', 'buku.py')
with open('buku.py', encoding='utf-8') as f:
version = re.search('__version__ = \'([^\']+)\'', f.read()).group(1)
@ -77,6 +80,7 @@ setup(
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',