-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check classifiers against list of valid classifiers
With caching Closes gh-6
- Loading branch information
Showing
4 changed files
with
82 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
language: python | ||
python: | ||
- "3.4" | ||
install: pip install testpath | ||
install: pip install testpath requests | ||
script: py.test | ||
sudo: false |
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,7 @@ | ||
[metadata] | ||
module=module1 | ||
author=Sir Robin | ||
author-email=robin@camelot.uk | ||
home-page=http://github.com/sirrobin/module1 | ||
classifiers=License :: OSI Approved :: BSD License | ||
Intended Audience :: Pacman |
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,11 @@ | ||
import pathlib | ||
|
||
import pytest | ||
|
||
from flit.inifile import read_pkg_ini, ConfigError | ||
|
||
samples_dir = pathlib.Path(__file__).parent / 'samples' | ||
|
||
def test_invalid_classifier(): | ||
with pytest.raises(ConfigError): | ||
read_pkg_ini(samples_dir / 'invalid_classifier.ini') |