Skip to content

Commit

Permalink
Improved coverage report and setup file.
Browse files Browse the repository at this point in the history
  • Loading branch information
beregond committed Nov 11, 2014
1 parent 0c4e4b4 commit 8514f8e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[run]
branch = True
source = jsonmodels/*
omit =
setup.py
tasks.py
22 changes: 12 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# coding: utf-8

import os
import sys

from setuptools.command.test import test as TestCommand
from jsonmodels import __version__ as version
from jsonmodels import __version__, __author__, __email__

from setuptools import setup

PROJECT_NAME = 'jsonmodels'


if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
Expand All @@ -21,7 +23,7 @@ class PyTest(TestCommand):

def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = ['--cov', '.']
self.pytest_args = ['--cov', PROJECT_NAME]

def finalize_options(self):
TestCommand.finalize_options(self)
Expand Down Expand Up @@ -50,26 +52,26 @@ def run_tests(self):
history = open('HISTORY.rst').read().replace('.. :changelog:', '')

setup(
name='jsonmodels',
version=version,
name=PROJECT_NAME,
version=__version__,
description='Models to make easier to deal with structures that'
' are converted to, or read from JSON.',
long_description=readme + '\n\n' + history,
author='Szczepan Cieślik',
author_email='szczepan.cieslik@gmail.com',
author=__author__,
author_email=__email__,
url='https://github.com/beregond/jsonmodels',
packages=[
'jsonmodels',
PROJECT_NAME,
],
package_dir={'jsonmodels': 'jsonmodels'},
package_dir={PROJECT_NAME: PROJECT_NAME},
include_package_data=True,
install_requires=[
'python-dateutil',
'six',
],
license="BSD",
zip_safe=False,
keywords='jsonmodels',
keywords=PROJECT_NAME,
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
Expand Down

0 comments on commit 8514f8e

Please sign in to comment.