-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup: Simplify release process using "versioneer"
Release process is now as simple as tagging a release, there is no need to manually updates version in __init__.py Most of the files enabling this process have been generated and/or updated after: 1) pip install versioneer 2) adding "versioneer" section to setup.cfg 3) running "versioneer install" For more details, see https://github.com/warner/python-versioneer/
- Loading branch information
Showing
7 changed files
with
2,360 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
wordcloud/_version.py export-subst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
include versioneer.py | ||
include wordcloud/_version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
import re | ||
import io | ||
from setuptools import setup | ||
from setuptools.extension import Extension | ||
|
||
__version__ = re.search( | ||
r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]', # It excludes inline comment too | ||
io.open('wordcloud/__init__.py', encoding='utf_8').read() | ||
).group(1) | ||
|
||
import versioneer | ||
|
||
with io.open('README.md', encoding='utf_8') as fp: | ||
readme = fp.read() | ||
|
@@ -16,7 +10,8 @@ | |
author="Andreas Mueller", | ||
author_email="[email protected]", | ||
name='wordcloud', | ||
version=__version__, | ||
version=versioneer.get_version(), | ||
cmdclass=versioneer.get_cmdclass(), | ||
url='https://github.com/amueller/word_cloud', | ||
description='A little word cloud generator', | ||
long_description=readme, | ||
|
Oops, something went wrong.