-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from toabctl/improv
[WIP] travis: Use matrix to execute tox jobs
- Loading branch information
Showing
11 changed files
with
1,039 additions
and
881 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 |
---|---|---|
|
@@ -8,3 +8,4 @@ nosetests.xml | |
*.egg-info | ||
.venv* | ||
.tox | ||
.eggs |
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
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright (c) 2016, Thomas Bechtold <tbechtold@suse.com> | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License version 2 as | ||
# published by the Free Software Foundation. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program (see the file COPYING); if not, write to the | ||
# Free Software Foundation, Inc., | ||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA | ||
|
||
from __future__ import absolute_import | ||
from __future__ import print_function | ||
|
||
import re | ||
import six | ||
|
||
|
||
def _requires_from_setup_py(file): | ||
"""read requirements from the setup.py file""" | ||
data = {} | ||
contents = six.u(file.read()) | ||
match = re.search("ext_modules", contents) | ||
if match: | ||
data["is_extension"] = True | ||
match = re.search("[(,]\s*scripts\s*=\s*(\[.*?\])", contents, flags=re.DOTALL) | ||
if match: | ||
data["scripts"] = eval(match.group(1)) | ||
match = re.search("test_suite\s*=\s*(.*)", contents) | ||
if match: | ||
data["test_suite"] = eval(match.group(1)) | ||
match = re.search("install_requires\s*=\s*(\[.*?\])", contents, flags=re.DOTALL) | ||
if match: | ||
data["install_requires"] = eval(match.group(1)) | ||
match = re.search("extras_require\s*=\s*(\{.*?\})", contents, flags=re.DOTALL) | ||
if match: | ||
data["extras_require"] = eval(match.group(1)) | ||
match = re.search("data_files\s*=\s*(\[.*?\])", contents, flags=re.DOTALL) | ||
if match: | ||
data["data_files"] = eval(match.group(1)) | ||
match = re.search('entry_points\s*=\s*(\{.*?\}|""".*?"""|".*?")', contents, flags=re.DOTALL) | ||
if match: | ||
data["entry_points"] = eval(match.group(1)) | ||
return data |
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
Oops, something went wrong.