Skip to content

Commit 77aac79

Browse files
committed
pins pillow version to 9.0.1, bumps version to 0.5.6
1 parent c8640c9 commit 77aac79

5 files changed

Lines changed: 8 additions & 16 deletions

File tree

lib/drawcal/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@
3434
"""
3535

3636
__prog__ = "drawcal"
37-
__version__ = "0.5.5"
37+
__version__ = "0.5.6"
3838
__author__ = "[email protected]"
3939

4040
import envstack
41+
4142
envstack.init(__prog__)
4243

4344
from drawcal.drawlib import draw_calendar

lib/drawcal/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def parse_args():
5555
"-v",
5656
"--version",
5757
action="version",
58-
version=f"envstack {__version__}",
58+
version=f"drawcal {__version__}",
5959
)
6060
parser.add_argument(
6161
"--events",
@@ -82,7 +82,7 @@ def parse_args():
8282
"--outfile",
8383
metavar="OUTFILE",
8484
type=str,
85-
default=f"{__prog__}.png",
85+
default="drawcal.png",
8686
help="output file path",
8787
)
8888

lib/drawcal/drawlib.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def draw_calendar(
7474
events=None,
7575
do_highlights=config.DRAW_MARKER_CHECKOUT,
7676
show_today=config.DRAW_MARKER_TODAY,
77-
outfile="output.png",
77+
outfile="drawcal.png",
7878
):
7979
"""
8080
Draws a calendar as an output png filepath. Returns a data dict of checkin,
@@ -372,12 +372,3 @@ def draw_calendar(
372372
"occupied": sorted(list(occupied_dates)),
373373
"outfile": outfile,
374374
}
375-
376-
377-
if __name__ == "__main__":
378-
from drawcal.events import get_events
379-
380-
events = get_events()
381-
outfile = "/var/tmp/drawcal-test.png"
382-
results = draw_calendar(events=events, outfile=outfile)
383-
print(results)

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Pillow>=9.0.1
1+
Pillow==9.0.1
22
envstack>=0.8.3

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
setup(
4040
name="drawcal",
41-
version="0.5.5",
41+
version="0.5.6",
4242
author="Ryan Galloway",
4343
author_email="[email protected]",
4444
url="https://github.com/bnbnotify/drawcal",
@@ -59,7 +59,7 @@
5959
"Programming Language :: Python :: 3.10",
6060
"Programming Language :: Python :: 3.11",
6161
],
62-
install_requires=["pillow", "envstack"],
62+
install_requires=["Pillow==9.0.1", "envstack>=0.8.3"],
6363
packages=find_packages("lib"),
6464
package_dir={"": "lib"},
6565
package_data = {

0 commit comments

Comments
 (0)