Skip to content

Commit

Permalink
[#826] switch to source layout
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat committed May 17, 2018
1 parent cb2dff1 commit f49a0c8
Show file tree
Hide file tree
Showing 15 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import io
import sys

import setuptools
from setuptools import __version__ as setuptools_version
from setuptools import find_packages, setup


def has_environment_marker_support():
Expand All @@ -19,7 +20,7 @@ def has_environment_marker_support():
import pkg_resources

try:
v = pkg_resources.parse_version(setuptools.__version__)
v = pkg_resources.parse_version(setuptools_version)
return v >= pkg_resources.parse_version("0.7.2")
except Exception as e:
sys.stderr.write("Could not test setuptool's version: {}\n".format(e))
Expand All @@ -33,7 +34,7 @@ def get_long_description():


def main():
setuptools.setup(
setup(
name="tox",
description="virtualenv-based automation of test activities",
long_description=get_long_description(),
Expand All @@ -43,7 +44,8 @@ def main():
platforms=["unix", "linux", "osx", "cygwin", "win32"],
author="holger krekel",
author_email="holger@merlinux.eu",
packages=["tox"],
packages=find_packages("src"),
package_dir={"": "src"},
entry_points={
"console_scripts": ["tox=tox:cmdline", "tox-quickstart=tox._quickstart:main"]
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ commands = pre-commit run --all-files --show-diff-on-failure
description = combine coverage data and create reports
deps = coverage
skip_install = True
changedir = {toxworkdir}
changedir = {toxworkdir}/src
setenv = COVERAGE_FILE=.coverage
commands = coverage erase
coverage combine
Expand Down Expand Up @@ -97,7 +97,7 @@ show_missing = True
exclude_lines = if __name__ == ["']__main__["']:
[coverage:paths]
source = tox
source = src/tox
{toxworkdir}/*/lib/python*/site-packages/tox
{toxworkdir}/*/Lib/site-packages/tox
{toxworkdir}/pypy*/site-packages/tox
Expand All @@ -115,4 +115,4 @@ include_trailing_comma = True
force_grid_wrap = 0
line_length = 99
known_first_party = tox
known_third_party = pkg_resources,pluggy,py,pytest,setuptools,six
known_third_party = pkg_resources,pluggy,py,pytest,setuptools,six,tox

0 comments on commit f49a0c8

Please sign in to comment.