Merge pull request #50 from Huluti/simplify-structure

Simplify the structure
This commit is contained in:
Kilian Valkhof 2019-02-21 16:01:58 +01:00 committed by GitHub
commit 1ecff8b3d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 5 additions and 6 deletions

View file

@ -1,3 +1,3 @@
include COPYING MANIFEST MANIFEST.in README.md trimage include COPYING MANIFEST MANIFEST.in README.md bin/trimage
recursive-include desktop *.svg *.desktop recursive-include desktop *.svg *.desktop
recursive-include src/ *.py *.png recursive-include trimage/ *.py *.png

View file

@ -4,7 +4,7 @@ import sys
win=(sys.platform == "win32") win=(sys.platform == "win32")
if win: if win:
import py2exe import py2exe
sys.path.append("src/trimage") sys.path.append("trimage")
from distutils.core import setup from distutils.core import setup
@ -15,19 +15,18 @@ setup(name = "trimage",
author_email = "help@trimage.org", author_email = "help@trimage.org",
url = "http://trimage.org", url = "http://trimage.org",
license = "MIT license", license = "MIT license",
package_dir = {'trimage' : 'src/trimage'},
packages = ["trimage", packages = ["trimage",
"trimage.ThreadPool"], "trimage.ThreadPool"],
package_data = {"trimage" : ["pixmaps/*.*"] }, package_data = {"trimage" : ["pixmaps/*.*"] },
data_files=[('share/icons/hicolor/scalable/apps', ['desktop/trimage.svg']), data_files=[('share/icons/hicolor/scalable/apps', ['desktop/trimage.svg']),
('share/applications', ['desktop/trimage.desktop']), ('share/applications', ['desktop/trimage.desktop']),
('share/man/man1', ['doc/trimage.1'])], ('share/man/man1', ['doc/trimage.1'])],
scripts = ["trimage"], scripts = ["bin/trimage"],
long_description = """Trimage is a cross-platform GUI and command-line interface to optimize image files via optipng, advpng and jpegoptim, depending on the filetype (currently, PNG and JPG files are supported). It was inspired by imageoptim. All image files are losslessy compressed on the highest available compression levels. Trimage gives you various input functions to fit your own workflow: A regular file dialog, dragging and dropping and various command line options.""", long_description = """Trimage is a cross-platform GUI and command-line interface to optimize image files via optipng, advpng and jpegoptim, depending on the filetype (currently, PNG and JPG files are supported). It was inspired by imageoptim. All image files are losslessy compressed on the highest available compression levels. Trimage gives you various input functions to fit your own workflow: A regular file dialog, dragging and dropping and various command line options.""",
requires = ["PyQt5"], requires = ["PyQt5"],
#for py2exe #for py2exe
windows=[r'src\trimage\trimage.py'], windows=[r'trimage\trimage.py'],
zipfile=None, zipfile=None,
options={"py2exe":{ options={"py2exe":{
"optimize":2, "optimize":2,

View file

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 676 B

After

Width:  |  Height:  |  Size: 676 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Before After
Before After