Skip to content

Commit b3d3002

Browse files
committedOct 25, 2019
adjust setup process to new src dir
1 parent 29c6b33 commit b3d3002

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed
 

‎setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ description-file=README.md
33
license_files=LICENSE
44

55
[bdist_wheel]
6-
universal = 1
6+
universal = true

‎setup.py

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from os import system
22
import pathlib
3-
from setuptools import setup
3+
from setuptools import setup, find_packages
44
import sys
55

66

@@ -15,10 +15,8 @@
1515

1616
here = pathlib.Path(__file__).parent
1717

18-
packages = ['audible']
19-
2018
about = {}
21-
exec((here / 'audible' / '_version.py').read_text('utf-8'), about)
19+
exec((here / 'src' / 'audible' / '_version.py').read_text('utf-8'), about)
2220

2321
long_description = (here / 'README.md').read_text('utf-8')
2422

@@ -28,8 +26,9 @@
2826
setup(
2927
name=about['__title__'],
3028
version=about['__version__'],
31-
packages=packages,
32-
package_dir={'audible': 'audible'},
29+
packages=find_packages('src'),
30+
package_dir={'': 'src'},
31+
include_package_data=True,
3332
description=about['__description__'],
3433
url=about['__url__'],
3534
license=about['__license__'],
@@ -46,7 +45,6 @@
4645
install_requires=requires,
4746
python_requires='>=3.6',
4847
keywords='Audible, API, async',
49-
include_package_data=True,
5048
long_description=long_description,
5149
long_description_content_type='text/markdown',
5250
)

0 commit comments

Comments
 (0)
Please sign in to comment.