File tree Expand file tree Collapse file tree 7 files changed +15
-46
lines changed
Expand file tree Collapse file tree 7 files changed +15
-46
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Python package
1+ name : Run Pytest
22
3- on : [push]
3+ on : [push, pull_request ]
44
55jobs :
66 build :
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11import argparse
22import os .path
33
4- from main import BOOK_DIR , AudioBook
4+ from audiobook . main import AudioBook , BOOK_DIR
55
66
77def main ():
Original file line number Diff line number Diff line change 2323 "Intended Audience :: Developers" ,
2424 ],
2525 python_requires = ">=3.4" ,
26+ entry_points = {
27+ "console_scripts" : ["audiobook = audiobook.__main__:main" ],
28+ },
2629)
Original file line number Diff line number Diff line change 11#! /bin/bash
2-
3- # Update package on pypi server
4-
5- # check for flake8 and twine and install if not present
62if ! [ -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
1612fi
1713
18- # check for setup.py
1914if ! [ -f " setup.py" ]; then
2015 echo ' Error: setup.py is not found.' >&2
2116 exit 1
2217fi
2318
24-
25- # run sdists and wheels
2619python3 setup.py sdist bdist_wheel
2720
28- # check for dist folder
2921if ! [ -d " dist" ]; then
3022 echo ' Error: dist folder is not found.' >&2
3123 exit 1
3224fi
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
4428rm -rf dist
45-
46- # remove build folder
4729rm -rf build
48-
49- # remove .egg-info folder
5030rm -rf * .egg-info
51-
52- # remove .pyc files
53- find . -name " *.pyc" -exec rm -rf {} \;
31+ find . -name " *.pyc" -exec rm -rf {}\;
You can’t perform that action at this time.
0 commit comments