File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,12 @@ For this project we are using [semantic versioning](http://semver.org/). If
2020you want to make a new release:
2121
22221 . Create a new tag in git using the following format: ` v<MAJOR>.<MINOR>.<PATCH> ` .
23+
24+ git tag v1.x.0
25+ git push --tags
26+
23272 . Create a release on GitHub based on that tag. Specify changes that were made.
28+ https://github.com/metabrainz/brainzutils-python/releases/new
2429
2530When updating underlying dependencies keep in mind breaking changes that they
2631might have. Update version of ` brainzutils-python ` accordingly.
Original file line number Diff line number Diff line change 1- __version__ = '1.14.1'
1+ from pkg_resources import get_distribution , DistributionNotFound
2+
3+ try :
4+ __version__ = get_distribution (__name__ ).version
5+ except DistributionNotFound :
6+ # package is not installed
7+ pass
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22
33from setuptools import setup , find_packages
4- from brainzutils import __version__
54
65setup (
76 name = "brainzutils" ,
8- version = __version__ ,
97 description = "Python tools for MetaBrainz projects" ,
108 author = "MetaBrainz Foundation" ,
119 author_email = "support@metabrainz.org" ,
1210 py_modules = ["brainzutils" ],
1311 packages = find_packages (),
12+ use_scm_version = True ,
13+ setup_requires = ['setuptools_scm' ],
1414 install_requires = open ("requirements.txt" ).read ().split (),
1515)
You can’t perform that action at this time.
0 commit comments