Skip to content

Commit 2f4671b

Browse files
authored
Merge pull request #15 from alexpdev/newbranch
Newbranch
2 parents 1868b30 + a04583e commit 2f4671b

File tree

21 files changed

+175
-155
lines changed

21 files changed

+175
-155
lines changed

Makefile

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,22 @@ help:
2929
clean: clean-build ## remove all build, test, coverage and Python artifacts
3030

3131
clean-build: ## remove build artifacts
32-
rm -fr build/
33-
rm -fr dist/
34-
rm -fr .eggs/
35-
rm -fr **/.pytest_cache
36-
rm -fr *.egg-info
37-
rm -fr *.egg
38-
rm -f **.pyc
39-
rm -f **.pyo
40-
rm -f **~
41-
rm -fr **/__pycache__
42-
rm -fr .tox/
43-
rm -f .coverage
44-
rm -fr htmlcov/
45-
rm -fr .pytest_cache
46-
rm -f corbertura.xml
47-
rm -f coverage.xml
48-
rm -fr .codacy-coverage
32+
rm -fvr build/
33+
rm -fvr dist/
34+
rm -fvr .eggs/
35+
rm -fvr **/.pytest_cache
36+
rm -fvr *.egg-info
37+
rm -fvr *.egg
38+
rm -fv **.pyc
39+
rm -fv **.pyo
40+
rm -fv **~
41+
rm -fvr **/__pycache__
42+
rm -fvr .tox/
43+
rm -fv .coverage
44+
rm -fvr htmlcov/
45+
rm -fvr .pytest_cache
46+
rm -fv corbertura.xml
47+
rm -fv coverage.xml
4948

5049
lint: ## check style with flake8
5150
black pyben
@@ -57,15 +56,16 @@ lint: ## check style with flake8
5756

5857
test: ## run tests quickly with the default Python
5958
pytest tests --cov=tests --cov=pyben --pylint
59+
coverage xml -o coverage.xml
60+
61+
coverage: ## run and get coverage report
62+
coverage xml -o coverage.xml
63+
coverage run --source pyben -m pytest tests
6064

61-
push: lint docs clean test
65+
push: clean lint docs test coverage
6266
git add .
6367
git commit -m "$m"
6468
git push
65-
coverage run --source pyben -m pytest tests
66-
coverage xml -o coverage.xml
67-
bash codacy.sh report -r coverage.xml
68-
rm coverage.xml
6969

7070
docs: ## generate Sphinx HTML documentation, including API docs
7171
rm -rf docs

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Pyben v0.3.0
1+
# Pyben v0.3.2
22

33
Small library for encoding/decoding bencode data.
44
Supports Unicode pathnames as of PyBen 3.0.
@@ -8,7 +8,7 @@ Pyben Enables fast and easy encoding and decoding of bencoded data.
88

99
---------
1010

11-
![GitHub repo size](https://img.shields.io/github/repo-size/alexpdev/pyben&style=flat-square)
11+
![GitHub repo size](https://img.shields.io/github/repo-size/alexpdev/pyben?style=flat-square)
1212
![GitHub contributors](https://img.shields.io/github/license/alexpdev/pyben)
1313
![PyPI - Downloads](https://img.shields.io/pypi/dm/pyben?color=%23CC3919&label=PyPi%20Downloads&logo=PyPi&logoColor=cyan&style=flat-square)
1414
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/af86338dcf0a4a899228df470d20e894)](https://www.codacy.com/gh/alexpdev/pyben/dashboard?utm_source=github.com&utm_medium=referral&utm_content=alexpdev/pyben&utm_campaign=Badge_Grade)
@@ -49,7 +49,7 @@ The API is intentionally designed to mimic Python's json and pickle modules.
4949
... True
5050

5151
One key difference is that the 'load' and 'dump' methods accept as arguments,
52-
string paths or path objects as well as open iobuffer.
52+
string paths or path-like objects as well as an open BytesIO object.
5353

5454
For Example this:
5555

@@ -76,4 +76,4 @@ See docs for more full API.
7676

7777
## License
7878

79-
This project uses the following license: GNU LGPL v3
79+
This project uses the following license: Apache 2.0

docs/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ <h3>Quick search</h3>
113113

114114
<!--
115115
MkDocs version : 1.2.3
116-
Docs Build Date UTC : 2022-04-24 00:10:52.551087+00:00
116+
Docs Build Date UTC : 2022-06-05 02:20:38.561236+00:00
117117
-->
118118
</body>
119119
</html>

docs/LICENSE/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ <h3>Quick search</h3>
314314

315315
<!--
316316
MkDocs version : 1.2.3
317-
Docs Build Date UTC : 2022-04-24 00:10:52.573093+00:00
317+
Docs Build Date UTC : 2022-06-05 02:20:38.580484+00:00
318318
-->
319319
</body>
320320
</html>

docs/api/index.html

Lines changed: 89 additions & 86 deletions
Large diffs are not rendered by default.

docs/examples/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ <h3>Quick search</h3>
215215

216216
<!--
217217
MkDocs version : 1.2.3
218-
Docs Build Date UTC : 2022-04-24 00:10:52.738852+00:00
218+
Docs Build Date UTC : 2022-06-05 02:20:38.674028+00:00
219219
-->
220220
</body>
221221
</html>
File renamed without changes.

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<h1 id="pyben">Pyben</h1>
4545
<p>Small library for encoding/decoding bencode data.
4646
Pyben Enables fast and easy encoding and decoding of bencoded data.</p>
47-
<p><img alt="PyBen" src="./assets/pyben.png" /></p>
47+
<p><img alt="PyBen" src="img/pyben.png" /></p>
4848
<hr />
4949
<p><img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/alexpdev/pyben&amp;style=flat-square" />
5050
<img alt="GitHub contributors" src="https://img.shields.io/github/license/alexpdev/pyben" />
@@ -98,7 +98,7 @@ <h2 id="using-pyben">Using PyBen</h2>
9898
<p>The full API includes many other functions and classes as well.
9999
See docs for more full API.</p>
100100
<h2 id="license">License</h2>
101-
<p>This project uses the following license: GNU LGPL v3</p>
101+
<p>This project uses the following license: Apache 2.0</p>
102102

103103
<h2>Navigation</h2>
104104

@@ -182,7 +182,7 @@ <h3>Quick search</h3>
182182

183183
<!--
184184
MkDocs version : 1.2.3
185-
Docs Build Date UTC : 2022-04-24 00:10:52.569695+00:00
185+
Docs Build Date UTC : 2022-06-05 02:20:38.577413+00:00
186186
-->
187187
</body>
188188
</html>

docs/search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/sitemap.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://alexpdev.github.io/pyben/</loc>
5-
<lastmod>2022-04-24</lastmod>
5+
<lastmod>2022-06-05</lastmod>
66
<changefreq>daily</changefreq>
77
</url>
88
<url>
99
<loc>https://alexpdev.github.io/pyben/LICENSE/</loc>
10-
<lastmod>2022-04-24</lastmod>
10+
<lastmod>2022-06-05</lastmod>
1111
<changefreq>daily</changefreq>
1212
</url>
1313
<url>
1414
<loc>https://alexpdev.github.io/pyben/api/</loc>
15-
<lastmod>2022-04-24</lastmod>
15+
<lastmod>2022-06-05</lastmod>
1616
<changefreq>daily</changefreq>
1717
</url>
1818
<url>
1919
<loc>https://alexpdev.github.io/pyben/examples/</loc>
20-
<lastmod>2022-04-24</lastmod>
20+
<lastmod>2022-06-05</lastmod>
2121
<changefreq>daily</changefreq>
2222
</url>
2323
</urlset>

0 commit comments

Comments
 (0)