Skip to content

Commit

Permalink
move package and tests to root
Browse files Browse the repository at this point in the history
  • Loading branch information
Scondo committed Sep 30, 2016
1 parent 449aa00 commit 810aad8
Show file tree
Hide file tree
Showing 14 changed files with 12 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ code/png/pngfilters.c
code/png/pngfilters.html
# Compiled filters
code/png/pngfilters.pyd
code/png/*pngfilters*.so
code/png/*pngfilters*.so
/purepng.egg-info
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ before_script:
script:
# Will be built if cython installed
- python setup.py build_ext --inplace --force
- nosetests code --with-coverage --cover-package=png
- nosetests --with-coverage --cover-package=png

after_success:
coveralls
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ build: false

test_script:
# run the project tests
- "%CMD_IN_ENV% nosetests code/test_png.py"
- "%CMD_IN_ENV% nosetests test_png.py"
#- "if %py_minor% GEQ 6 %CMD_IN_ENV% nosetests code/test_png.py --with-coverage --cover-package=png"
#- "if %py_minor% LSS 6 %CMD_IN_ENV% nosetests code/test_png.py"

Expand Down
2 changes: 1 addition & 1 deletion code/png/PngImagePlugin.py → png/PngImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from PIL import Image, ImageFile
import array
import png
__version__ = "0.1.0"
__version__ = "0.3.0"


try:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion code/png/png.py → png/png.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
# On Python 3 there is no imap, but map works like imap instead
pass

__version__ = "0.2.0"
__version__ = "0.3.0"
__all__ = ['png_signature', 'Image', 'Reader', 'Writer',
'Error', 'FormatError', 'ChunkError',
'Filter', 'register_extra_filter',
Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def do_unimport(folder=''):


def get_version():
for line in open(join(dirname(__file__), 'code', 'png', 'png.py')):
for line in open(join(dirname(__file__), 'png', 'png.py')):
if '__version__' in line:
version = line.split('"')[1]
break
Expand All @@ -116,7 +116,7 @@ def get_version():
author='Pavel Zlatovratskii',
author_email='scondo@mail.ru',
url='https://github.com/scondo/purepng',
package_dir={'png': join('code', 'png')},
package_dir={'png': 'png'},
packages=['png'],
classifiers=[
'Topic :: Multimedia :: Graphics',
Expand All @@ -131,6 +131,7 @@ def get_version():
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: Jython',
'Programming Language :: Python :: Implementation :: PyPy',
Expand Down
3 changes: 2 additions & 1 deletion code/test_Pil.py → test_Pil.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ def runTest(self):
# Save via PurePNG
reload(purepng)
pure_file = BytesIO()
pure_file.name = type(self).__name__
# PIL save new named file instead of write to BytesIO
# pure_file.name = type(self).__name__
im_orig.save(pure_file, 'PNG')
# Load again, plugin unimportant after read test
pure_file.seek(0)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion unimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
from setup import do_unimport

if __name__ == "__main__":
do_unimport('code/png')
do_unimport('png')

0 comments on commit 810aad8

Please sign in to comment.