Skip to content

Commit ddfb391

Browse files
committed
Add 0.1
1 parent 8e76383 commit ddfb391

4 files changed

Lines changed: 55 additions & 0 deletions

File tree

coverage_env_plugin.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""Coverage Environment Plugin"""
2+
import os
3+
4+
from packaging.markers import default_environment
5+
6+
DEFAULT_ENVIRONMENT = {}
7+
8+
9+
def coverage_init(reg, options):
10+
global DEFAULT_ENVIRONMENT
11+
DEFAULT_ENVIRONMENT.update([
12+
(k.upper(), v)
13+
for k, v in default_environment().items()])
14+
15+
if 'markers' in options:
16+
os.environ.update(DEFAULT_ENVIRONMENT)

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
coverage >= 4.0
2+
packaging

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[bdist_wheel]
2+
universal = 1

setup.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/usr/bin/env python
2+
3+
from setuptools import setup
4+
5+
classifiers = """\
6+
Environment :: Console
7+
Intended Audience :: Developers
8+
License :: OSI Approved :: MIT License
9+
Operating System :: OS Independent
10+
Programming Language :: Python :: 2.7
11+
Programming Language :: Python :: 3.4
12+
Programming Language :: Python :: 3.5
13+
Programming Language :: Python :: 3.6
14+
Programming Language :: Python :: Implementation :: CPython
15+
Programming Language :: Python :: Implementation :: PyPy
16+
Topic :: Software Development :: Quality Assurance
17+
Topic :: Software Development :: Testing
18+
Development Status :: 3 - Alpha
19+
"""
20+
21+
setup(
22+
name='coverage_env_plugin',
23+
version='0.1',
24+
description='coverage.py environment plugin',
25+
author='John Vandenberg',
26+
author_email='jayvdb@gmail.com',
27+
url='https://github.com/jayvdb/coverage_env_plugin',
28+
py_modules=['coverage_env_plugin'],
29+
install_requires=[
30+
'coverage >= 4.0',
31+
'packaging',
32+
],
33+
license='MIT License',
34+
classifiers=classifiers.splitlines(),
35+
)

0 commit comments

Comments
 (0)