forked from emilybache/pytest-approvaltests
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e version file for auto update on release
Co-Authored-By: 4dsherwood <[email protected]> Co-Authored-By: Bernhard Raml <[email protected]>
- Loading branch information
1 parent
cd3682f
commit 2dc817a
Showing
3 changed files
with
17 additions
and
1 deletion.
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
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 |
---|---|---|
|
@@ -3,17 +3,24 @@ | |
|
||
import os | ||
import codecs | ||
import re | ||
from pathlib import Path | ||
|
||
from setuptools import setup | ||
|
||
|
||
def read(fname): | ||
file_path = os.path.join(os.path.dirname(__file__), fname) | ||
return codecs.open(file_path, encoding='utf-8').read() | ||
|
||
HERE = Path(__file__).parent | ||
_version_file_contents = (HERE / "version.py").read_text() | ||
matched = re.search(r'"(.*)"', _version_file_contents) | ||
VERSION = matched.group(1) if matched is not None else "UNKNOWN VERSION" | ||
|
||
setup( | ||
name='pytest-approvaltests', | ||
version='0.2.3', | ||
version=VERSION, | ||
author='Emily Bache', | ||
author_email='[email protected]', | ||
maintainer='Emily Bache', | ||
|
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 @@ | ||
version_number = "v5.0.1" |