Skip to content

Commit f04602d

Browse files
Fix pkg desc (#66)
* update release version bumper logic * remove replace logic * fix desc * update long_desc
1 parent 5323b51 commit f04602d

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

build-pipeline.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,7 @@ jobs:
7070
architecture: 'x64'
7171

7272
- script: |
73-
if [ "$(ReleaseType)" == "major" ]; then
74-
python build/version_bumper.py
75-
else
76-
python build/version_bumper.py --$(ReleaseType)
77-
fi
73+
python build/version_bumper.py --$(ReleaseType)
7874
python setup.py sdist
7975
displayName: 'Build sdist'
8076

build/version_bumper.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
parser = argparse.ArgumentParser()
77
parser.add_argument("--revision", help="Toggle if you're doing a revision version.", action="store_true")
88
parser.add_argument("--minor", help="Toggle if you're doing a minor version.", action="store_true")
9+
parser.add_argument("--major", help="Toggle if you're doing a major version.", action="store_true")
910
args = parser.parse_args()
1011

1112
client = xmlrpc.client.ServerProxy('https://pypi.org/pypi')
@@ -30,10 +31,11 @@
3031
version_array.extend("0")
3132
minor_version = int(version_array[-2])
3233
version_array[-2] = str(minor_version + 1)
33-
else:
34+
elif args.major:
3435
major_version = int(version_array[0])
3536
version_array = [str(major_version + 1), "0", "0"]
36-
37+
else:
38+
parser.error("Release type not specified")
3739
version = ".".join(version_array)
3840

3941
with fileinput.FileInput("setup.py", inplace=True, backup='.bak') as setup_file:

setup.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
==========
1313
1414
**Scan Test Endpoints Script**
15-
* New function to discover Client Side and Server Side BDD test flows through the CI/CD Probe.
15+
* New function to discover Client Side and Server Side BDD test flows through the CI/CD Probe.
1616
1717
**CI/CD Probe Integration Enhancements**
18-
For enhanced BDD test execution, flexibility and security, two new parameters were added:
19-
* --exclude_pattern: to specify the exclude pattern (using a regular expression) for the BDD test flows.
20-
* --cicd_probe_key: to enhance the security of the CI/CD Probe API calls.
18+
* For enhanced BDD test execution, flexibility and security, two new parameters were added:
19+
* --exclude_pattern: to specify the exclude pattern (using a regular expression) for the BDD test flows.
20+
* --cicd_probe_key: to enhance the security of the CI/CD Probe API calls.
2121
2222
**Bug Fixes**
23-
* Fixed the issue related with loading the manifest file when the path directories included spaces.
24-
* Fixed the evaluate_test_results script to correctly use the provided input parameter instead of relying on default value.
23+
* Fixed the issue related with loading the manifest file when the path directories included spaces.
24+
* Fixed the evaluate_test_results script to correctly use the provided input parameter instead of relying on default value.
2525
2626
2727
Installing and upgrading

0 commit comments

Comments
 (0)