Skip to content

Commit bf705fd

Browse files
author
Lennolium
committed
v0.1.6
1 parent dd8bdb1 commit bf705fd

File tree

6 files changed

+30
-22
lines changed

6 files changed

+30
-22
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
alt="commit activity" >
2424
<a></a>
2525
<a href="https://github.com/Lennolium/simple-useragent/releases" >
26-
<img src="https://img.shields.io/badge/Version-0.1.5-brightgreen"
26+
<img src="https://img.shields.io/badge/Version-0.1.6-brightgreen"
2727
alt="stable version" >
2828
<br>
2929
<a href="https://github.com/Lennolium/simple-useragent/issues" >

build.sh

+16-8
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ _logo "Execution time: $(date +'%y/%m/%d %H:%M:%S')"
8787
_logo "-------------------------------------------------------------------------- \n\n"
8888

8989

90+
# Confirm we are on the dev branch.
91+
current_branch=$(git rev-parse --abbrev-ref HEAD)
92+
_info "Confirming we are on the dev branch ..."
93+
if [ "$current_branch" != "dev" ]; then
94+
_failed
95+
fi
96+
97+
9098
# Check if Python 3 is installed and install it if not.
9199
_info "Checking and installing system dependencies (${min_py_version}) ..."
92100
if test ! "$(which "${min_py_version}")" && test $os = "Linux"; then
@@ -141,14 +149,14 @@ ${min_py_version} -m pip install -r requirements-dev.txt >> trace.log 2>&1 && _s
141149

142150

143151
# Running tests, but first check if tests folder exists.
144-
if [ ! -d "./tests" ]; then
145-
_info "No tests folder found. Skipping tests ..."; _warn
146-
else
147-
_info "Running unit tests now ..."
148-
cd src || exit
149-
${min_py_version} -m unittest discover -s ../tests >> ../trace.log 2>&1 && _success || _failed
150-
cd .. || exit
151-
fi
152+
# if [ ! -d "./tests" ]; then
153+
# _info "No tests folder found. Skipping tests ..."; _warn
154+
# else
155+
# _info "Running unit tests now ..."
156+
# cd src || exit
157+
# ${min_py_version} -m unittest discover -s ../tests >> ../trace.log 2>&1 && _success || _failed
158+
# cd .. || exit
159+
# fi
152160

153161
# Override the version variable of setup.cfg with the version number of __init__.py.
154162
_info "Updating the version in 'setup.cfg' and 'README.md' to $version ..."

requirements.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
beautifulsoup4==4.12.3
2-
platformdirs==4.2.0
3-
requests==2.31.0
4-
ua-parser==0.18.0
1+
beautifulsoup4>=4.12.3
2+
platformdirs>=4.2.0
3+
requests>=2.31.0
4+
ua-parser>=0.18.0

setup.cfg

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = simple-useragent
3-
version = 0.1.5
3+
version = 0.1.6
44
author = Lennart Haack
55
author_email = info@lennolium.dev
66
license = GPL-3.0
@@ -42,10 +42,10 @@ packages = find:
4242
include_package_data = True
4343
python_requires = >=3.8
4444
install_requires =
45-
beautifulsoup4==4.12.3
46-
platformdirs==4.2.0
47-
requests==2.31.0
48-
ua-parser==0.18.0
45+
beautifulsoup4>=4.12.3
46+
platformdirs>=4.2.0
47+
requests>=2.31.0
48+
ua-parser>=0.18.0
4949

5050
[options.packages.find]
5151
where = src

src/simple_useragent/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
__author__ = "Lennart Haack"
4747
__email__ = "simple-useragent@lennolium.dev"
4848
__license__ = "GNU GPLv3"
49-
__version__ = "0.1.5"
50-
__date__ = "2024-04-29"
49+
__version__ = "0.1.6"
50+
__date__ = "2025-02-10"
5151
__status__ = "Development"
5252
__github__ = "https://github.com/Lennolium/simple-useragent"
5353

src/simple_useragent/core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class to parse a single, custom user agent string and gain access to its
1515
__author__ = "Lennart Haack"
1616
__email__ = "simple-useragent@lennolium.dev"
1717
__license__ = "GNU GPLv3"
18-
__version__ = "0.1.5"
19-
__date__ = "2024-04-29"
18+
__version__ = "0.1.6"
19+
__date__ = "2025-02-10"
2020
__status__ = "Development"
2121
__github__ = "https://github.com/Lennolium/simple-useragent"
2222

0 commit comments

Comments
 (0)