Skip to content

Commit 4936223

Browse files
committed
compatibility updates with Runestone
1 parent 9a6a23d commit 4936223

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

booktest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import cImage as image
1+
import image
22

33
img = image.Image("lcastle.gif")
44
newimg = image.EmptyImage(img.getWidth(),img.getHeight())

grayscale.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
from cImage import *
1+
from image import *
22

33
def grayPixel(p):
44
avg = (p.getRed() + p.getGreen() + p.getBlue()) // 3
55
return Pixel(avg,avg,avg)
66

77
def makeGrayScale(imageFile):
8-
myimagewindow = ImageWin("Image Processing",600,200)
9-
oldimage = Image(imageFile)
8+
myimagewindow = ImageWin(600,200, "Image Processing")
9+
oldimage = Image(imageFile)
1010
oldimage.draw(myimagewindow)
1111

1212
width = oldimage.getWidth()
@@ -23,4 +23,4 @@ def makeGrayScale(imageFile):
2323
newim.draw(myimagewindow)
2424
myimagewindow.exitOnClick()
2525

26-
makeGrayScale('lcastle.gif')
26+
makeGrayScale('lcastle.jpg')

setup.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
# dependencies = [l.strip() for l in fh]
55

66
setup(
7-
name='cs20-image',
7+
name='cImage',
88
description='Image manipulation library for media computation education',
9-
version='1.5.4',
9+
version='2.0.0',
1010
py_modules = ['image'],
1111
author = 'Brad Miller and Dan Schellenberg',
12-
author_email = 'schellenberg@gmail.com',
12+
author_email = 'bonelake@mac.com',
1313
install_requires= ['Pillow>=2.9.0'],
1414
include_package_data = False,
1515
license='GPL',
@@ -22,7 +22,7 @@
2222
'Operating System :: MacOS',
2323
'Operating System :: Unix',
2424
'Programming Language :: Python',
25-
'Programming Language :: Python :: 3.4',
25+
'Programming Language :: Python :: 3.7',
2626
'Topic :: Education'),
2727
long_description=open('README.rst').read(),
2828
)

0 commit comments

Comments
 (0)