diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..261f800 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +.pytest_cache* +__pycache__* + +# Distribution / packaging +imgp.egg-info +dist/ +build/ +imgp.py diff --git a/CHANGELOG b/CHANGELOG index 2363a85..0f541b8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,14 @@ +imgp v2.7 +2019-12-21 + +What's in? +- Code lint fixes +- Package uploaded to PyPI +- New auto-generated packages for - CentOS, Debian, Fedora +- Update copyright year + +------------------------------------------------------------------------------- + imgp v2.6 2018-10-20 diff --git a/README.md b/README.md index 53e2b24..b69d161 100644 --- a/README.md +++ b/README.md @@ -254,5 +254,5 @@ optional arguments: ### Developers -1. Copyright © 2016-2019 [Arun Prakash Jana](https://github.com/jarun) +1. Copyright © 2016-2020 [Arun Prakash Jana](https://github.com/jarun) 2. [Ananya Jana](https://github.com/ananyajana) diff --git a/imgp b/imgp index fdee974..ad467ef 100755 --- a/imgp +++ b/imgp @@ -2,7 +2,7 @@ # # Resize or rotate JPEG and PNG images. # -# Copyright © 2016-2019 Arun Prakash Jana +# Copyright © 2016-2020 Arun Prakash Jana # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -51,7 +51,7 @@ pad = '_IMGP' # output file suffix when --overwrite is unused png_ip = PIL.Image.ANTIALIAS # default interpolation for PNG fill_color = '#ffffff' # BG color to strip alpha channel init_time = time.time() # profile the total time taken -_VERSION_ = '2.6' # current program version +_VERSION_ = '2.7' # current program version # Globals for multiprocessing pool = None @@ -455,7 +455,7 @@ class ExtendedArgumentParser(argparse.ArgumentParser): file.write(''' Version %s -Copyright © 2016-2019 Arun Prakash Jana +Copyright © 2016-2020 Arun Prakash Jana License: GPLv3 Webpage: https://github.com/jarun/imgp ''' % _VERSION_) diff --git a/imgp.1 b/imgp.1 index 3d4dabc..ca0aec1 100644 --- a/imgp.1 +++ b/imgp.1 @@ -1,4 +1,4 @@ -.TH "IMGP" "1" "20 Oct 2018" "Version 2.6" "User Commands" +.TH "IMGP" "1" "21 Dec 2019" "Version 2.7" "User Commands" .SH NAME imgp \- Resize, rotate JPEG and PNG images. .SH SYNOPSIS @@ -211,7 +211,7 @@ Arun Prakash Jana .SH REPORTING BUGS .I https://github.com/jarun/imgp/issues .SH LICENSE -Copyright \(co 2016-2019 Arun Prakash Jana +Copyright \(co 2016-2020 Arun Prakash Jana .PP License GPLv3+: GNU GPL version 3 or later . .br diff --git a/packagecore.yaml b/packagecore.yaml index ca01699..7ac9187 100644 --- a/packagecore.yaml +++ b/packagecore.yaml @@ -14,7 +14,7 @@ packages: - python-pillow - python container: "archlinux/base" - centos7.3: + centos7.5: builddeps: - make deps: @@ -23,7 +23,7 @@ packages: commands: pre: - yum install epel-release - centos7.4: + centos7.6: builddeps: - make deps: @@ -32,20 +32,39 @@ packages: commands: pre: - yum install epel-release +# centos8.0: +# builddeps: +# - make +# deps: +# - python-pillow +# - python +# commands: +# pre: +# - yum install epel-release debian9: builddeps: - make deps: - python3-pillow - python3 - fedora28: + debian10: builddeps: - make deps: - python3-pillow - python3 - fedora29: + fedora30: builddeps: + - make + deps: + - python3-pillow + - python3 + fedora31: + builddeps: + - make + deps: + - python3-pillow + - python3 opensuse42.3: builddeps: - make diff --git a/setup.py b/setup.py index 5f30911..fcf2382 100644 --- a/setup.py +++ b/setup.py @@ -5,6 +5,13 @@ import sys from setuptools import setup, find_packages +from pkg_resources import get_distribution, DistributionNotFound + +def get_dist(pkgname): + try: + return get_distribution(pkgname) + except DistributionNotFound: + return None shutil.copyfile('imgp', 'imgp.py') @@ -26,6 +33,7 @@ author_email='engineerarun@gmail.com', url='https://github.com/jarun/imgp', license='GPLv3', + license_file='LICENSE', python_requires='>=3.5', # requires pip>=9.0.0 platforms=['any'], py_modules=['imgp'],