Skip to content

Commit 3482a9d

Browse files
Merge pull request #66 from codePerfectPlus/patch-2
audibook command line bug fixed
2 parents 0da7c10 + f1bf5cf commit 3482a9d

File tree

7 files changed

+15
-46
lines changed

7 files changed

+15
-46
lines changed

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/add_labels.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/run-pytest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: Python package
1+
name: Run Pytest
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
66
build:

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@ All notable changes to this project will be documented in this file. The format
44

55
## [Unreleased]
66

7-
## added
7+
## [V2.0.4]
88

99
- [x] Extended pdf_parser to extract table of contents
10+
- [x] Command line Support added
1011
- [x] Updated test cases
11-
- [x] Added support for CI/CD
12+
- [x] Added support for CircleCi CI/CD
13+
14+
## [V2.0.3]
15+
16+
- [x] Removed from PyPi
1217

1318
## [V2.0.2] - 22-10-2022
1419

audiobook/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import argparse
22
import os.path
33

4-
from main import BOOK_DIR, AudioBook
4+
from audiobook.main import AudioBook, BOOK_DIR
55

66

77
def main():

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@
2323
"Intended Audience :: Developers",
2424
],
2525
python_requires=">=3.4",
26+
entry_points={
27+
"console_scripts": ["audiobook = audiobook.__main__:main"],
28+
},
2629
)

update_packge.sh

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
#!/bin/bash
2-
3-
# Update package on pypi server
4-
5-
# check for flake8 and twine and install if not present
62
if ! [ -x "$(command -v flake8)" ]; then
73
echo 'Error: flake8 is not installed.' >&2
84
echo 'Installing flake8...'
@@ -15,39 +11,21 @@ if ! [ -x "$(command -v twine)" ]; then
1511
pip install twine
1612
fi
1713

18-
# check for setup.py
1914
if ! [ -f "setup.py" ]; then
2015
echo 'Error: setup.py is not found.' >&2
2116
exit 1
2217
fi
2318

24-
25-
# run sdists and wheels
2619
python3 setup.py sdist bdist_wheel
2720

28-
# check for dist folder
2921
if ! [ -d "dist" ]; then
3022
echo 'Error: dist folder is not found.' >&2
3123
exit 1
3224
fi
3325

26+
python3 -m twine upload dist/*
3427

35-
read -p "Do you want to upload to pypi? (y/n) " -n 1 -r
36-
echo
37-
if [[ $REPLY =~ ^[Yy]$ ]]
38-
then
39-
python3 -m twine upload dist/*
40-
fi
41-
42-
43-
# remove dist folder
4428
rm -rf dist
45-
46-
# remove build folder
4729
rm -rf build
48-
49-
# remove .egg-info folder
5030
rm -rf *.egg-info
51-
52-
# remove .pyc files
53-
find . -name "*.pyc" -exec rm -rf {} \;
31+
find . -name "*.pyc" -exec rm -rf {}\;

0 commit comments

Comments
 (0)