Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
Move source code into a src directory
Browse files Browse the repository at this point in the history
modified:   .meta.cfg
modified:   MANIFEST.in
modified:   setup.py
renamed:    zc/__init__.py -> src/zc/__init__.py
renamed:    zc/zdaemonrecipe/README.txt -> src/zc/zdaemonrecipe/README.txt
renamed:    zc/zdaemonrecipe/__init__.py -> src/zc/zdaemonrecipe/__init__.py
renamed:    zc/zdaemonrecipe/tests.py -> src/zc/zdaemonrecipe/tests.py
modified:   tox.ini
  • Loading branch information
jugmac00 committed May 17, 2020
1 parent d7e9be1 commit b42ccb8
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .meta.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
[meta]
template = pure-python
commit-id = 05894360cac01f1027889dd14a23ae372e808b3f
commit-id = 1e477452ac5420330d79b0a88bacc46abd2c858b
fail-under = 0

12 changes: 7 additions & 5 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ recursive-include docs *.py
recursive-include docs *.rst
recursive-include docs Makefile

recursive-include zc *.pt
recursive-include zc *.rst
recursive-include zc *.txt
recursive-include zc *.xml
recursive-include zc *.zcml
recursive-include src *.gif
recursive-include src *.pt
recursive-include src *.py
recursive-include src *.rst
recursive-include src *.txt
recursive-include src *.xml
recursive-include src *.zcml
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def read(*rnames):
'Detailed Documentation\n'
'**********************\n'
+ '\n' +
read('zc', 'zdaemonrecipe', 'README.txt')
read('src', 'zc', 'zdaemonrecipe', 'README.txt')
+ '\n' +
'Download\n'
'**********************\n'
Expand All @@ -55,7 +55,9 @@ def read(*rnames):
license='ZPL 2.1',

entry_points=entry_points,
packages=find_packages('.'),
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
namespace_packages=['zc'],
extras_require=dict(test=tests_require),
install_requires=['setuptools',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from six import print_

import re

import zc.buildout.testing

import doctest
Expand Down
15 changes: 11 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,30 @@ deps =
check-manifest
check-python-versions
commands =
flake8 zc setup.py
flake8 src setup.py
check-manifest
check-python-versions .
check-python-versions

[testenv:coverage]
basepython = python3
deps =
coverage
coverage-python-version
zope.testrunner
setenv =
COVERAGE_PROCESS_START={toxinidir}/tox.ini
commands =
coverage run -m zope.testrunner
coverage erase
coverage run -m zope.testrunner --test-path=src []
coverage combine
coverage html
coverage report -m --fail-under=0

[coverage:run]
branch = True
plugins = coverage_python_version
source = zc
source = zc.zdaemonrecipe
parallel = true

[coverage:report]
precision = 2
Expand All @@ -55,6 +60,8 @@ exclude_lines =
except ImportError:
raise NotImplementedError
if __name__ == '__main__':
self.fail
raise AssertionError

[coverage:html]
directory = htmlcov

0 comments on commit b42ccb8

Please sign in to comment.