Skip to content

Commit

Permalink
Add 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb committed Jun 7, 2017
1 parent 8e76383 commit ddfb391
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
16 changes: 16 additions & 0 deletions coverage_env_plugin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""Coverage Environment Plugin"""
import os

from packaging.markers import default_environment

DEFAULT_ENVIRONMENT = {}


def coverage_init(reg, options):
global DEFAULT_ENVIRONMENT
DEFAULT_ENVIRONMENT.update([
(k.upper(), v)
for k, v in default_environment().items()])

if 'markers' in options:
os.environ.update(DEFAULT_ENVIRONMENT)
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage >= 4.0
packaging
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bdist_wheel]
universal = 1
35 changes: 35 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/usr/bin/env python

from setuptools import setup

classifiers = """\
Environment :: Console
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Topic :: Software Development :: Quality Assurance
Topic :: Software Development :: Testing
Development Status :: 3 - Alpha
"""

setup(
name='coverage_env_plugin',
version='0.1',
description='coverage.py environment plugin',
author='John Vandenberg',
author_email='[email protected]',
url='https://github.com/jayvdb/coverage_env_plugin',
py_modules=['coverage_env_plugin'],
install_requires=[
'coverage >= 4.0',
'packaging',
],
license='MIT License',
classifiers=classifiers.splitlines(),
)

0 comments on commit ddfb391

Please sign in to comment.