Skip to content

Commit

Permalink
Release version 2.0.1, update package metadata (#15)
Browse files Browse the repository at this point in the history
* Update PyPI classifiers
* Add PyPI changelog URL
* Add release script
  • Loading branch information
intgr authored Dec 8, 2023
1 parent 90c2e64 commit c8b2201
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ MANIFEST
cscope.*
.idea/
.tox/
venv/
.venv/
_local/
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ therefore safe to use in production.
Changelog
---------

Unreleased
2.0.1 (2023-12-08)

* Use ISO 8601-like YYYY-MM-DD date format for email/file logging.
* Fixed deprecation warnings on Python 3.12 (utcnow function).
Expand Down
16 changes: 16 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -ex

if [[ -n "$(git status -s)" ]]; then
echo "git working tree is not clean, aborting"
exit 1
fi
if [[ "$VIRTUAL_ENV" == "" ]]; then
echo "this script must be executed inside an active virtual env, aborting"
exit 1
fi

pip install --upgrade pip setuptools wheel twine build
rm -rf dist/ build/
python -m build
twine upload dist/*
15 changes: 13 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@ def long_description():
author_email="[email protected]",
python_requires=">=3.7",
classifiers=[
"Development Status :: 4 - Beta",
"Development Status :: 6 - Mature",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.2",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Intended Audience :: Developers",
(
"License :: OSI Approved :: "
Expand All @@ -42,6 +50,9 @@ def long_description():
name="dogslow-sentry",
packages=["dogslow_sentry"],
url="https://github.com/intgr/dogslow-sentry",
project_urls={
"Release notes": "https://github.com/intgr/dogslow-sentry/blob/main/README.rst#changelog",
},
install_requires=["django>=2.2", "sentry-sdk>=1.0"],
version="2.0.0",
version="2.0.1",
)

0 comments on commit c8b2201

Please sign in to comment.