From 1fc674af98bcbbc7027fc208b1976550187f59f3 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 21 Dec 2019 10:38:15 +0530 Subject: [PATCH] Add files for PyPI --- MANIFEST.in | 1 + setup.py | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 MANIFEST.in create mode 100644 setup.py diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..51e176f --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include CHANGELOG LICENSE diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..5f68f6e --- /dev/null +++ b/setup.py @@ -0,0 +1,55 @@ +#!/usr/bin/env python3 + +import re +import shutil +import sys + +from setuptools import setup, find_packages + +shutil.copyfile('imgp', 'imgp.py') + +with open('imgp.py', encoding='utf-8') as f: + version = re.search('_VERSION_ = \'([^\']+)\'', f.read()).group(1) + +with open('README.md', encoding='utf-8') as f: + long_description = f.read() + +setup( + name='imgp', + version=version, + description='High-performance CLI batch image resizer & rotator', + long_description=long_description, + long_description_content_type="text/markdown", + author='Arun Prakash Jana', + author_email='engineerarun@gmail.com', + url='https://github.com/jarun/imgp', + license='GPLv3', + python_requires='>=3.5', # requires pip>=9.0.0 + platforms=['any'], + py_modules=['imgp'], + install_requires=['Pillow'], + include_package_data=True, + entry_points={ + 'console_scripts': ['imgp=imgp:main'] + }, + extras_require={ + 'packaging': ['twine'] + }, + keywords='image processing resize rotate optimize', + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Environment :: Console', + 'Intended Audience :: Developers', + 'Intended Audience :: End Users/Desktop', + 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', + 'Natural Language :: English', + 'Operating System :: OS Independent', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3 :: Only', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Topic :: Utilities' + ] +)