-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
175 additions
and
61 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,7 @@ | ||
[run] | ||
source = update_conf_py | ||
|
||
[report] | ||
exclude_lines = | ||
pragma: no cover | ||
if __name__ == .__main__.: |
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 |
---|---|---|
|
@@ -4,4 +4,6 @@ | |
/build | ||
/dist | ||
*.egg-info/ | ||
/.coverage | ||
/htmlcov | ||
*.pyc |
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,24 @@ | ||
language: python | ||
|
||
python: | ||
- "2.6" | ||
- "2.7" | ||
# Currently, the project is broke in Python3 because of the ConfigParser | ||
# package (called configparser in Python3 - lowercase). For now, we're | ||
# disabling it. | ||
#- "3.4" | ||
|
||
install: | ||
- pip install -r requirements-test.txt | ||
- pip install coveralls | ||
# It's necessary to install the project to create the update-conf.py bin. | ||
# It's used by the 'test_script.py' module. | ||
- python setup.py develop | ||
|
||
script: | ||
- make check | ||
# It's necessary to run tests as 'sudo'. 'sudo' is used by the | ||
# 'test_sudo_config.py' module. | ||
- sudo PATH=$PATH make test-with-coverage | ||
|
||
after_success: coveralls |
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,14 +1,23 @@ | ||
# From 'setuptools' docs: | ||
# "Automatically include all relevant files in your source distributions, | ||
# without needing to create a MANIFEST.in file" | ||
# From Python sdist docs: | ||
# "If you don’t supply an explicit list of files (or instructions on how | ||
# to generate one), the sdist command puts a minimal default set into the | ||
# source distribution: | ||
# [...] | ||
# - all files that matches the data_files metadata" | ||
# However, 'samples/update-conf.py.conf' wasn't being included in sdist. We | ||
# don't know if it is a bug. Anyway, we're creating our 'MANIFEST.in'. | ||
# don't know if it is a bug. Anyway, we're adding it into our 'MANIFEST.in'. | ||
# See: https://pythonhosted.org/setuptools/setuptools.html | ||
include samples/update-conf.py.conf | ||
# https://docs.python.org/2/distutils/sourcedist.html | ||
include Makefile | ||
include LICENSE | ||
include README.rst | ||
include .coveragerc | ||
include .travis.yml | ||
include *.md | ||
include *.txt | ||
recursive-include samples * | ||
recursive-include tests * | ||
global-exclude tests/tmp | ||
global-exclude tests/tmp/* | ||
global-exclude *.pyc |
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 |
---|---|---|
@@ -1,7 +1,4 @@ | ||
-r requirements.txt | ||
-r requirements-test.txt | ||
|
||
setuptools>=0.8 | ||
pypandoc>=0.9 | ||
pep8>=1.6 | ||
flake8>=2.2 | ||
pep8-naming>=0.2 |
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 @@ | ||
-r requirements.txt | ||
|
||
unittest2>=1.0.0 | ||
coverage>=3.7 | ||
flake8>=2.2 | ||
pep8-naming>=0.2 | ||
check-manifest>=0.22 |
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
Empty file.
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
Oops, something went wrong.