Skip to content
This repository has been archived by the owner on Jan 12, 2018. It is now read-only.

Commit

Permalink
Move code to src/ directory
Browse files Browse the repository at this point in the history
See https://hynek.me/articles/testing-packaging/ for an explanation why
a src/ directory is necessary.

Related: latchset/custodia#159
Signed-off-by: Christian Heimes <[email protected]>
  • Loading branch information
tiran committed Apr 19, 2017
1 parent 9eed508 commit 0c02529
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ source =

[paths]
source =
custodia
src/custodia
.tox/*/lib/python*/site-packages/custodia

[report]
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/build/
/dist/
/*.egg-info
/src/*.egg-info
__pycache__
*.pyc
*.pyo
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
maintainer_email='[email protected]',
url='https://github.com/latchset/custodia.ipa',
namespace_packages=['custodia'],
package_dir={'': 'src'},
packages=[
'custodia.ipa',
],
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ basepython = python2.7
deps =
.[test_pylint]
commands =
{envpython} -m pylint -d c,r,i,W0613 -r n --notes= --disable=star-args ./custodia
{envpython} -m pylint -d c,r,i,W0613 -r n --notes= --disable=star-args src/custodia

[testenv:pep8py2]
basepython = python2.7
Expand Down

0 comments on commit 0c02529

Please sign in to comment.