Skip to content

Commit

Permalink
Merge pull request #7 from vintasoftware/develop
Browse files Browse the repository at this point in the history
Updates version management
  • Loading branch information
hugobessa authored Aug 14, 2023
2 parents a1fa67d + ade398f commit 485ae30
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
0.10.2 (unreleased)
0.10.2 (2023-08-14)
---------------------

- Drop support to older version of Python and Django that aren't being officially supported anymore.

0.10.1b1 (unreleased)
0.10.1b1 (2023-08-14)
---------------------

- Update for Django 4.0 and 4.1, Python 3.8, 3.9, 3.10

0.10.1a1 (unreleased)
0.10.1a1 (2023-08-14)
---------------------

- Update pypi deploy username and token
Expand Down
2 changes: 1 addition & 1 deletion django_js_reverse/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
VERSION = (0, 10, 2)
__version__ = "0.10.2"
11 changes: 10 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,18 @@ def read(*parts):
return fp.read()


def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")


setup(
name='django-js-reverse',
version='0.10.1b1.dev0',
version=get_version("django_js_reverse/__init__.py"),
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
Expand Down

0 comments on commit 485ae30

Please sign in to comment.