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 1247522
Show file tree
Hide file tree
Showing 16 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ repos:
args: [--line-length=99, --safe]
python_version: python3.6
- repo: https://github.com/asottile/seed-isort-config
rev: v0.1.0
rev: v1.0.0
hooks:
- id: seed-isort-config
args: [--application-directories, src]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.4
hooks:
Expand Down
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.
4 changes: 2 additions & 2 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 Down

0 comments on commit 1247522

Please sign in to comment.