Skip to content

Commit 69dbaa4

Browse files
committed
Prepare release 0.5.0
1 parent 3ea3df7 commit 69dbaa4

3 files changed

Lines changed: 32 additions & 6 deletions

File tree

HISTORY.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 0.5.0 (2023-09-09)
4+
### Improvements
5+
- Added `BaseMapping` class.
6+
### Fixes
7+
- Corrected a typo in readme.
8+
39
## 0.4.0 (2023-08-16)
410
### Improvements
511
- Added `in_virtual_environment` function.
@@ -27,4 +33,4 @@
2733
- Removed redundant statement in CodeTimer class.
2834

2935
## 0.1.0 (2023-04-09)
30-
First release.
36+
First release.

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
requires = ["setuptools>=61.0"]
33
build-backend = "setuptools.build_meta"
44

5+
[tool.setuptools]
6+
packages = ["jacktrade"]
7+
58
[project]
69
name = "jacktrade"
7-
version = "0.4.0"
10+
version = "0.5.0"
811
authors = [
912
{ name="Mario Zaja", email="mzaja0@gmail.com" },
1013
]
@@ -22,4 +25,4 @@ keywords = ["utils", "utilities"]
2225

2326
[project.urls]
2427
"Homepage" = "https://github.com/mzaja/jacktrade"
25-
"Bug Tracker" = "https://github.com/mzaja/jacktrade/issues"
28+
"Bug Tracker" = "https://github.com/mzaja/jacktrade/issues"

scripts/deploy.bat

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@ECHO OFF
12
@REM Publishes the package to PyPI
23
@REM Install/upgrade twine using: python -m pip install twine --upgrade
34
@REM API access token must be present in %USERPROFILE%\.pypirc
@@ -7,6 +8,22 @@
78

89
@REM Manually execute the command below to upload to PyPI
910
@REM python -m twine upload dist/*
10-
@REM Do not forget to tag the release
11-
@REM git tag v0.2.1
12-
@REM git push --tags
11+
12+
@REM Check history, commit, tag the release and push to remote
13+
SET RELEASE_VERSION=0.5.0
14+
FINDSTR %RELEASE_VERSION% "HISTORY.md"
15+
IF %ERRORLEVEL% NEQ 0 (
16+
ECHO HISTORY.md does not contain the release version!
17+
EXIT /B 1
18+
) ELSE (
19+
pre-commit run
20+
IF %ERRORLEVEL% NEQ 0 (
21+
ECHO pre-commit found errors and modified files!
22+
EXIT /B 1
23+
)
24+
git add .
25+
git commit -m "Prepare release %RELEASE_VERSION%"
26+
git tag v%RELEASE_VERSION%
27+
git push
28+
git push --tags
29+
)

0 commit comments

Comments
 (0)