Skip to content

Commit

Permalink
Moving to setup.cfg
Browse files Browse the repository at this point in the history
A declarative approach to setup is a cleaner and safer

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
  • Loading branch information
pombredanne committed Dec 9, 2020
1 parent 2684162 commit 64fec4b
Show file tree
Hide file tree
Showing 2 changed files with 189 additions and 258 deletions.
196 changes: 187 additions & 9 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,14 +1,195 @@
[bdist_wheel]
universal = 1

[metadata]
name = scancode-toolkit
version = 20.12.03
license = Apache-2.0 with ScanCode acknowledgment and CC0-1.0 and others

description = ScanCode is a tool to scan code for license, copyright, package
and their documented dependencies and other interesting facts.

long_description = file:README.rst
author = ScanCode
author_email = info@aboutcode.org
url = https://github.com/nexB/scancode-toolkit

classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
Programming Language :: Python
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Topic :: Utilities

keywords =
open source
scan
license
package
dependency
copyright
filetype
author
extract
licensing

license_files =
NOTICE
cc0-1.0.LICENSE
apache-2.0.LICENSE
README.rst
CODE_OF_CONDUCT.rst



[options]
packages = find:
package_dir = =src
py_modules =
include_package_data = True
zip_safe = false

python_requires = >=3.6.*, <4

install_requires =
nltk >= 3.2, < 4.0
urlpy
publicsuffix2
fingerprints >= 0.6.0
commoncode >= 20.09
future >= 0.16.0
text_unidecode >= 1.0, < 2.0
saneyaml
plugincode
bitarray >= 0.8.1, < 1.0.0
intbitset >= 2.3.0, < 3.0
boolean.py >= 3.5, < 4.0
license_expression >= 0.99
pyahocorasick >= 1.4, < 1.5
lxml >= 4.0.0, < 5.0.0
Beautifulsoup4 >= 4.0.0, <5.0.0
html5lib
pdfminer.six >= 20170720
pycryptodome >= 3.4
chardet >= 3.0.0, <4.0.0
typecode
debut >= 0.9.4
pefile >= 2018.8.8
pymaven_patch >= 0.2.8
requests >= 2.7.0, < 3.0.0
packageurl_python >= 0.7.0
xmltodict >= 0.11.0
javaproperties >= 0.5
toml >= 0.10.0
gemfileparser >= 0.7.0
pkginfo >= 1.5.0.1
dparse2
pygments
ftfy < 5.0.0
click >= 6.7, !=7.0
colorama >= 0.3.9
pluggy >= 0.4.0, < 1.0
attrs >= 18.1, !=20.1.0
typing >=3.6, < 3.7; python_version < "3.7"
jinja2 >= 2.7.0, < 3.0.0
MarkupSafe >= 0.23
simplejson
spdx_tools >= 0.6.0
unicodecsv
jsonstreams >= 0.5.0
yg.lockfile >= 2.3, < 3.0.0
contextlib2
pytz
tempora
jaraco.functools
zc.lockfile >= 2.0.0, < 3.0.0


[options.packages.find]
where = src


[options.extras_require]
full =
extractcode
extractcode_7z
extractcode_libarchive
typecode_libmagic


[options.entry_points]
console_scripts =
scancode = scancode.cli:scancode


# These are configurations for ScanCode plugins as setuptools entry points.
# Each plugin entry hast this form:
# plugin-name = fully.qualified.module:PluginClass
# where plugin-name must be a unique arbitrary name for this entrypoint.

# scancode_pre_scan is the entry point for pre_scan plugins executed before the
# scans. See also plugincode.pre_scan module for details and doc.
scancode_pre_scan =
ignore = scancode.plugin_ignore:ProcessIgnore
facet = summarycode.facet:AddFacet
classify = summarycode.classify:FileClassifier


# scancode_scan is the entry point for scan plugins that run a scan after the
# pre_scan plugins and before the post_scan plugins. See also plugincode.scan
# module for details and doc.
scancode_scan =
info = scancode.plugin_info:InfoScanner
licenses = licensedcode.plugin_license:LicenseScanner
copyrights = cluecode.plugin_copyright:CopyrightScanner
packages = packagedcode.plugin_package:PackageScanner
emails = cluecode.plugin_email:EmailScanner
urls = cluecode.plugin_url:UrlScanner
generated = summarycode.generated:GeneratedCodeDetector


# scancode_post_scan is the entry point for post_scan plugins executed after the
# scan plugins and before the output plugins. See also plugincode.post_scan
# module for details and doc.
scancode_post_scan =
summary = summarycode.summarizer:ScanSummary
summary-keeping-details = summarycode.summarizer:ScanSummaryWithDetails
summary-key-files = summarycode.summarizer:ScanKeyFilesSummary
summary-by-facet = summarycode.summarizer:ScanByFacetSummary
license-clarity-score = summarycode.score:LicenseClarityScore
license-policy = licensedcode.plugin_license_policy:LicensePolicy
mark-source = scancode.plugin_mark_source:MarkSource
classify-package = summarycode.classify:PackageTopAndKeyFilesTagger
is-license-text = licensedcode.plugin_license_text:IsLicenseText
filter-clues = cluecode.plugin_filter_clues:RedundantCluesFilter
consolidate = summarycode.plugin_consolidate:Consolidator


# scancode_output_filter is the entry point for filter plugins executed after
# the post-scan plugins and used by the output plugins to exclude/filter certain
# files or directories from the codebase. See also plugincode.post_scan module
# for details and doc.
scancode_output_filter =
only-findings = scancode.plugin_only_findings:OnlyFindings
ignore-copyrights = cluecode.plugin_ignore_copyrights:IgnoreCopyrights


# scancode_output is the entry point for output plugins that write a scan output
# in a given format at the end of a scan. See also plugincode._output module for
# details and doc.
scancode_output =
html = formattedcode.output_html:HtmlOutput
html-app = formattedcode.output_html:HtmlAppOutput
json = formattedcode.output_json:JsonCompactOutput
json-pp = formattedcode.output_json:JsonPrettyOutput
spdx-tv = formattedcode.output_spdx:SpdxTvOutput
spdx-rdf = formattedcode.output_spdx:SpdxRdfOutput
csv = formattedcode.output_csv:CsvOutput
jsonlines = formattedcode.output_jsonlines:JsonLinesOutput
template = formattedcode.output_html:CustomTemplateOutput


[tool:pytest]
norecursedirs =
Expand Down Expand Up @@ -41,12 +222,9 @@ norecursedirs =
plugins
plugins/*/tests/data
plugins-builtin

python_files = *.py

python_classes=Test
python_functions=test

python_classes = Test
python_functions = test
addopts =
-rfExXw
--strict
Expand Down
Loading

0 comments on commit 64fec4b

Please sign in to comment.