Skip to content

Commit

Permalink
Moving license_files to setup.py from setup.cfg (#790)
Browse files Browse the repository at this point in the history
* Moving license_files to setup.py from setup.cfg

* Moving license_files to variable
  • Loading branch information
corey-nm authored Nov 22, 2022
1 parent d04545c commit c43e605
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[metadata]
license_files = NOTICE LICENSE* licenses/* src/deepsparse/licenses/*

[isort]
profile = black
default_section = FIRSTPARTY
Expand Down
11 changes: 11 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@
# File regexes for binaries to include in package_data
binary_regexes = ["*/*.so", "*/*.so.*", "*.bin", "*/*.bin"]

# regexes for things to include as license files in the .dist-info
# see https://github.com/pypa/setuptools/blob/v65.6.0/docs/references/keywords.rst
# for more info
license_files = [
"NOTICE",
"LICENSE*",
"licenses/*",
"src/deepsparse/licenses/*",
]


def _parse_requirements_file(file_path):
with open(file_path, "r") as requirements_file:
Expand Down Expand Up @@ -279,6 +289,7 @@ def _setup_long_description() -> Tuple[str, str]:
"object detection, sparsity"
),
license="Neural Magic DeepSparse Community License, Apache",
license_files=license_files,
url="https://github.com/neuralmagic/deepsparse",
package_dir=_setup_package_dir(),
include_package_data=True,
Expand Down

0 comments on commit c43e605

Please sign in to comment.