Skip to content
This repository has been archived by the owner on Oct 5, 2020. It is now read-only.

Commit

Permalink
Merge fb280ea into 53bc233
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccandless committed Feb 23, 2018
2 parents 53bc233 + fb280ea commit 68ae0f2
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Expand Up @@ -18,3 +18,5 @@ exclude_lines =
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
fail_under = 80
show_missing = true
2 changes: 1 addition & 1 deletion .flake8
@@ -1,3 +1,3 @@
[flake8]
exclude = __init__.py, docs/, build/, setup.py
exclude = __init__.py, docs/, build/, setup.py, *.egg-info
ignore = E402
5 changes: 3 additions & 2 deletions Makefile
Expand Up @@ -11,15 +11,16 @@ test:
@rm -rf ./tmp

report: lint test
coverage report -m
@echo "coverage report"
@coverage report || (echo "FAIL: Test coverage threshold is too low" && exit 2)

clean:
rm -rf dist/*

clean-git:
git stash

package: init clean-git lint test clean
package: init clean-git report clean
python setup.py sdist

publish: package
Expand Down
1 change: 1 addition & 0 deletions argutil/__init__.py
Expand Up @@ -9,5 +9,6 @@
set_defaults,
get_module,
get_parser,
VERSION,
)
from .working_directory import WorkingDirectory, pushd
2 changes: 1 addition & 1 deletion argutil/argutil.py
Expand Up @@ -17,11 +17,11 @@
from .deepcopy import deepcopy
import logging

VERSION = '1.0.2'

logger = logging.getLogger('argutil')
logger.setLevel(logging.ERROR)


try:
FileNotFoundError
except NameError:
Expand Down
12 changes: 12 additions & 0 deletions setup.cfg
@@ -0,0 +1,12 @@
[metadata]
name = argutil
version = attr: argutil.VERSION
description = Wrapper for argparse that uses JSON config files to define command line parsers
long_description = file: README.md, LICENSE
author = cmccandless
keywords = commandline, json
license = file: LICENSE
url = http://github.com/cmccandless/argutil

[options]
packages = argutil, tests
10 changes: 1 addition & 9 deletions setup.py
@@ -1,11 +1,3 @@
from setuptools import setup

setup(
name='argutil',
version='1.0.1',
description='Wrapper for argparse that uses JSON config files to define command line parsers',
author='cmccandless',
license='MIT',
url='http://github.com/cmccandless/argutil',
packages=['argutil', 'tests'],
)
setup()

0 comments on commit 68ae0f2

Please sign in to comment.