forked from usnistgov/CASE-Implementation-ExifTool
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use setup.cfg to house project metadata
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
1 parent
e166de1
commit 9c9edf3
Showing
3 changed files
with
33 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters