Skip to content

Commit 4a93393

Browse files
committed
Use a simpler package layout
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 286ee64 commit 4a93393

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

setup.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
from __future__ import absolute_import
55
from __future__ import print_function
66

7-
from setuptools import find_packages
7+
from glob import glob
8+
from os.path import basename
9+
from os.path import splitext
10+
811
from setuptools import setup
912

1013

@@ -17,8 +20,10 @@
1720
'This is a microlibrary implmenting teh purl spec at https://github.com/package-url',
1821
author='the purl authors',
1922
url='https://github.com/package-url/packageurl-python',
23+
#packages=find_packages('src'),
2024
package_dir={'': 'src'},
21-
packages=find_packages('src'),
25+
py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
26+
2227
include_package_data=True,
2328
zip_safe=False,
2429
platforms='any',

0 commit comments

Comments
 (0)