Skip to content

Commit

Permalink
Merge branch 'setuptools_scm'
Browse files Browse the repository at this point in the history
  • Loading branch information
alastair committed May 6, 2020
2 parents 165db3f + f0cbae2 commit 77fa8df
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ For this project we are using [semantic versioning](http://semver.org/). If
you want to make a new release:

1. Create a new tag in git using the following format: `v<MAJOR>.<MINOR>.<PATCH>`.

git tag v1.x.0
git push --tags

2. Create a release on GitHub based on that tag. Specify changes that were made.
https://github.com/metabrainz/brainzutils-python/releases/new

When updating underlying dependencies keep in mind breaking changes that they
might have. Update version of `brainzutils-python` accordingly.
Expand Down
8 changes: 7 additions & 1 deletion brainzutils/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
__version__ = '1.14.1'
from pkg_resources import get_distribution, DistributionNotFound

try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
pass
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/usr/bin/env python

from setuptools import setup, find_packages
from brainzutils import __version__

setup(
name="brainzutils",
version=__version__,
description="Python tools for MetaBrainz projects",
author="MetaBrainz Foundation",
author_email="support@metabrainz.org",
py_modules=["brainzutils"],
packages=find_packages(),
use_scm_version=True,
setup_requires=['setuptools_scm'],
install_requires=open("requirements.txt").read().split(),
)

0 comments on commit 77fa8df

Please sign in to comment.