Skip to content

Commit 042b711

Browse files
committed
fix warning with setuptools configuration
1 parent 32b6138 commit 042b711

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = 'BGP swiss army knife'
55
authors = [
66
{ name = "Thomas Mangin", email = "[email protected]" },
77
]
8-
license = { 'file' = 'LICENCE.txt' }
8+
dynamic = ['license']
99
requires-python = ">=3.8.1,<=3.13"
1010
keywords = [
1111
'bgp',
@@ -21,7 +21,6 @@ classifiers = [
2121
'Environment :: Console',
2222
'Intended Audience :: System Administrators',
2323
'Intended Audience :: Telecommunications Industry',
24-
'License :: OSI Approved :: BSD License',
2524
'Operating System :: POSIX',
2625
'Operating System :: MacOS :: MacOS X',
2726
'Programming Language :: Python',
@@ -76,7 +75,7 @@ docstring-code-format = true
7675
# E222 multiple spaces after operator
7776
# E231 missing whitespace after ','
7877
# E241 multiple spaces after ':'
79-
# E266
78+
# E266
8079
# E501 line too long
8180
# W191
8281
# W503

setup.cfg

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ version = attr: exabgp.version.version
77
description = BGP swiss army knife
88
long_description = file: doc/README.rst, doc/CHANGELOG.rst
99
keywords = BGP, ipv4, ipv6, mpls, vpls, flowspec, bgp-ls, SDN, HA, DDOS
10-
license = BSD 3-Clause License
10+
license = BSD-3-Clause
1111
classifiers =
1212
Development Status :: 5 - Production/Stable
1313
Environment :: Console
1414
Intended Audience :: System Administrators
1515
Intended Audience :: Telecommunications Industry
16-
License :: OSI Approved :: BSD License
1716
Operating System :: POSIX
1817
Operating System :: MacOS :: MacOS X
1918
Programming Language :: Python
@@ -24,10 +23,6 @@ classifiers =
2423
zip_safe = False
2524
include_package_data = True
2625
packages = find:
27-
package_dir=
28-
=src
29-
install_requires =
30-
setuptools
3126

3227
[options.packages.find]
3328
where = src

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ def filesOf(directory):
5050

5151

5252
setuptools.setup(
53+
packages=setuptools.find_namespace_packages(where="src"),
54+
package_dir={"": "src"},
5355
download_url=download_url,
5456
data_files=data_files,
5557
)

0 commit comments

Comments
 (0)