Skip to content

Commit c03c1d7

Browse files
committed
release
1 parent dc0fb1b commit c03c1d7

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

aoc_wim/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
"""Wim's solutions for https://adventofcode.com/"""
12
import io
23
import runpy
34
import sys
45

56

7+
__version__ = "2019.1"
8+
9+
610
def plugin(year, day, data):
711
mod_name = "aoc_wim.aoc{}.q{:02d}".format(year, day)
812
sys.modules.pop(mod_name, None)

aoc_wim/astar.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class AStar:
7-
87
def __init__(self, state0, target):
98
self.state0 = state0
109
self.target = target

aoc_wim/stuff.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ def subset_sum(vals, target=0):
4444
yield from subsets
4545

4646

47-
def ways(total, coins=(1,2,5,10,20,50,100)):
47+
def ways(total, coins=(1, 2, 5, 10, 20, 50, 100)):
4848
ways = [[Counter()]] + [[] for _ in range(total)]
4949
for coin in coins:
5050
for i in range(coin, total + 1):
51-
ways[i] += [way + Counter({coin: 1}) for way in ways[i-coin]]
51+
ways[i] += [way + Counter({coin: 1}) for way in ways[i - coin]]
5252
return ways[total]

setup.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
from setuptools import setup, find_packages
22

3+
from aoc_wim import __version__, __doc__
4+
5+
36
setup(
47
name="advent-of-code-wim",
5-
version="0.1",
6-
description="Wim's solutions for https://adventofcode.com/",
8+
version=__version__,
9+
description=__doc__,
710
url="https://github.com/wimglenn/advent-of-code",
811
author="Wim Glenn",
912
author_email="[email protected]",
@@ -26,7 +29,5 @@
2629
"wimpy",
2730
],
2831
packages=find_packages(),
29-
entry_points={
30-
"adventofcode.user": ["wim = aoc_wim:plugin"],
31-
},
32+
entry_points={"adventofcode.user": ["wim = aoc_wim:plugin"]},
3233
)

0 commit comments

Comments
 (0)