Skip to content

Commit 3be6c21

Browse files
Update bump script
1 parent ad58cd4 commit 3be6c21

File tree

5 files changed

+7
-25
lines changed

5 files changed

+7
-25
lines changed

β€Ž.bumpversion.cfgβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ commit = False
44
tag = False
55

66
[bumpversion:file:rest_framework_api_key/__init__.py]
7-
7+
[bumpversion:file:pyproject.toml]

β€Ž.travis.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ deploy:
3636
tags: true
3737
# deploy only once
3838
python: "3.7"
39-
condition: "$DJANGO_VERSION = 2.2"
39+
condition: "$DJANGO_VERSION = 2.2.*"

β€ŽCONTRIBUTING.mdβ€Ž

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,27 +46,12 @@ $ python scripts/makemigrations.py
4646
- `test`: run test suite.
4747
- `lint`: run linters and auto-formatters.
4848
- `check`: check code style.
49-
50-
### CI/CD
51-
52-
Travis CI is in use to automatically:
53-
54-
- Test the package on supported versions of Python and Django.
55-
- Release _tagged commits_ to PyPI.
56-
57-
See `.travis.yml` for further details.
49+
- `bump (patch | minor | major)`: bump package version (extra options are forwared to [bumpversion](https://pypi.org/project/bumpversion/)).
5850

5951
### Releasing
6052

61-
When ready to release a new version, use [bumpversion](https://pypi.org/project/bumpversion/) to update the package's version:
62-
63-
```bash
64-
$ bumpversion (patch | minor | major)
65-
```
66-
67-
This will create a new commit and tag that commit with the new version. See [.bumpversion.cfg](.bumpversion.cfg) for more info.
68-
69-
Then, push the tagged commit to remote:
53+
- Update the package version using the `bump` script.
54+
- Push the tagged commit to remote:
7055

7156
```bash
7257
$ git push --tags

β€Žscripts/bumpversion.shβ€Ž renamed to β€Žscripts/bumpβ€Ž

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
#!/bin/bash
2-
3-
# Stop if any command fails.
4-
set -e
1+
#!/bin/bash -e
52

63
ARGS="$@"
74
CHANGELOG="CHANGELOG.md"
@@ -14,7 +11,7 @@ CURRENT_VERSION=$(get current_version)
1411
NEW_VERSION=$(get new_version)
1512

1613
bumpversion "$@" --no-tag --no-commit
17-
python scripts/changelog_bump.py "$CHANGELOG" "v$NEW_VERSION"
14+
python scripts/bump_changelog.py "$CHANGELOG" "v$NEW_VERSION"
1815

1916
git add -A
2017
git commit -m "Bump version: $CURRENT_VERSION β†’ $NEW_VERSION"
File renamed without changes.

0 commit comments

Comments
Β (0)