Skip to content

Commit

Permalink
Convert to a src layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
felddy committed May 5, 2019
1 parent 62bbd80 commit 797a699
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
- https://packaging.python.org/distributing/
- https://github.com/pypa/sampleproject/blob/master/setup.py
- https://blog.ionelmc.ro/2014/05/25/python-packaging/#the-structure
"""

from setuptools import setup
from glob import glob
from os.path import splitext, basename

from setuptools import setup, find_packages


def readme():
Expand Down Expand Up @@ -50,7 +54,10 @@ def readme():
],
# What does your project relate to?
keywords="skeleton",
packages=["example"],
packages=find_packages(where="src"),
package_dir={"": "src"},
py_modules=[splitext(basename(path))[0] for path in glob("src/*.py")],
include_package_data=True,
install_requires=["docopt"],
extras_require={"test": ["pre-commit", "pytest", "pytest-cov", "coveralls"]},
# Conveniently allows one to run the CLI tool as `example`
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 797a699

Please sign in to comment.