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 buku.egg-info
dist dist
build build
buku.py

View File

@ -12,7 +12,7 @@ install:
install -m755 -d $(MANDIR) install -m755 -d $(MANDIR)
install -m755 -d $(DOCDIR) install -m755 -d $(DOCDIR)
gzip -c buku.1 > buku.1.gz 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 buku.1.gz $(MANDIR)
install -m644 README.md $(DOCDIR) install -m644 README.md $(DOCDIR)
rm -f buku.1.gz rm -f buku.1.gz

View File

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

View File

View File

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

View File

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