Skip to content

Commit 8e4064c

Browse files
committed
Streamline setup.py. Do not use unicode.
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 4ffc607 commit 8e4064c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

setup.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33

44
from __future__ import absolute_import
55
from __future__ import print_function
6-
from __future__ import unicode_literals
7-
8-
from glob import glob
9-
from os.path import basename
10-
from os.path import splitext
116

127
from setuptools import find_packages
138
from setuptools import setup
@@ -21,8 +16,10 @@
2116
long_description='Python library to parse and build "purl" aka. package URLs.',
2217
author='the purl authors',
2318
url='https://github.com/package-url/purl-python',
19+
package_dir={'': 'src'},
2420
packages=find_packages('src'),
25-
py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
21+
include_package_data=True,
22+
zip_safe=False,
2623
platforms='any',
2724
keywords='package, url, package manager, package url',
2825
classifiers=[

0 commit comments

Comments
 (0)