diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..6e47c5a --- /dev/null +++ b/setup.cfg @@ -0,0 +1,31 @@ +[metadata] +name = case_exiftool +version = attr: case_exiftool.__version__ +author = Alex Nelson +author_email = alexander.nelson@nist.gov +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 diff --git a/setup.py b/setup.py index 937cf9b..87c661c 100644 --- a/setup.py +++ b/setup.py @@ -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": "alexander.nelson@nist.gov", - "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() diff --git a/tests/Makefile b/tests/Makefile index e5c4f18..4c3d94d 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -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