Skip to content

Commit

Permalink
Use setup.cfg to house project metadata
Browse files Browse the repository at this point in the history
The built distribution file was observed to have a strange string in
place of where a version string was expected.  The issue has been
reported to the setuptools project:
pypa/setuptools#2492

The installation file is named as expected when using setup.cfg.

Signed-off-by: Alex Nelson <[email protected]>
  • Loading branch information
ajnelson-nist committed Dec 17, 2020
1 parent e166de1 commit 9c9edf3
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
31 changes: 31 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[metadata]
name = case_exiftool
version = attr: case_exiftool.__version__
author = Alex Nelson
author_email = [email protected]
description = A mapping of ExifTool to CASE
license_files = LICENSE
#TODO - PyPI will need a differently-written README.
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/casework/CASE-Implementation-ExifTool
classifiers =
Development Status :: 4 - Beta
License :: Public Domain
Operating System :: OS Independent
Programming Language :: Python :: 3

[options]
install_requires =
# TODO - This constraint on pyparsing can be removed when rdflib Issue #1190 is resolved.
# https://github.com/RDFLib/rdflib/issues/1190
pyparsing < 3.0.0
python-dateutil
rdflib
requests
packages = find:
python_requires = >=3.6

[options.entry_points]
console_scripts =
case_exiftool = case_exiftool:main
34 changes: 1 addition & 33 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,37 +17,5 @@
with open("README.md", "r") as fh:
long_description = fh.read()

setup_kwargs = {
"name": "case_exiftool",
"version": "attr: case_exiftool.__version__",
"author": "Alex Nelson",
"author_email": "[email protected]",
"description": "A mapping of ExifTool to CASE",
"long_description": long_description,
"long_description_content_type": "text/markdown",
"url": "https://github.com/casework/CASE-Implementation-ExifTool",
"packages": setuptools.find_packages(),
"classifiers": [
"Development Status :: 4 - Beta",
"License :: Public Domain",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3"
],
"python_requires": ">=3.6",
"install_requires": [
# TODO This constraint on pyparsing can be removed when rdflib Issue #1190 is resolved.
# https://github.com/RDFLib/rdflib/issues/1190
"pyparsing < 3.0.0",
"python-dateutil",
"rdflib",
"requests"
],
"entry_points": {
"console_scripts": [
"case_exiftool=case_exiftool:main"
]
}
}

if __name__ == "__main__":
setuptools.setup(**setup_kwargs)
setuptools.setup()
1 change: 1 addition & 0 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ all: \
$(top_srcdir)/.git_submodule_init.done.log \
$(top_srcdir)/case_exiftool/__init__.py \
$(top_srcdir)/case_exiftool/local_uuid.py \
$(top_srcdir)/setup.cfg \
$(top_srcdir)/setup.py \
requirements.txt
rm -rf venv
Expand Down

0 comments on commit 9c9edf3

Please sign in to comment.