Skip to content

Commit

Permalink
Merge branch 'ants/build' into ants/puzzlec
Browse files Browse the repository at this point in the history
  • Loading branch information
Ant1ng2 committed Jan 18, 2021
2 parents d66ff98 + 9cc53ee commit feb230e
Show file tree
Hide file tree
Showing 6 changed files with 696 additions and 11 deletions.
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions puzzlesolver/puzzles/_models/puzzle.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def toString(self, mode="minimal"):
Outputs:
String representation -- String"""

if mode is "minimal" and hasattr(self, "serialize"):
if mode == "minimal" and hasattr(self, "serialize"):
return self.serialize()
if mode is "complex" and hasattr(self, "printInfo"):
if mode == "complex" and hasattr(self, "printInfo"):
return self.printInfo()
return str(self)

Expand Down
4 changes: 2 additions & 2 deletions puzzlesolver/puzzles/hanoi.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ def toString(self, mode="minimal"):
Outputs:
String representation -- String"""

if mode is "minimal":
if mode == "minimal":
return str(self)
elif mode is "complex":
elif mode == "complex":
output = ""
for j in range(self.disk_variant):
for rod in self.rods:
Expand Down
18 changes: 13 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
from setuptools import setup, Extension
from setuptools import setup, Extension, find_packages

setup(
name="puzzlesolver",
version="1.0.0",
packages=['puzzlesolver'],
name="GamesmanPuzzles",
version="0.0.1",
packages=find_packages(),
install_requires=[
'Flask>=1.1.1',
'pytest>=5.3.5',
'sqlitedict>=1.6.0',
'progressbar2>=3.51.0',
'networkx>=2.4',
],
ext_modules=[
Extension(
"puzzlesolver._puzzlesolverc",
Expand All @@ -17,5 +24,6 @@
"puzzlesolver/src/Hanoi.c"
]
)
]
],
python_requires='>=3.6'
)
2 changes: 0 additions & 2 deletions tests/__init__.py

This file was deleted.

5 changes: 5 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import pytest
import tempfile

# Import server
import sys
sys.path.append("..")

import server

from puzzlesolver.util import PuzzleValue
from puzzlesolver.puzzles import GraphPuzzle

Expand Down

0 comments on commit feb230e

Please sign in to comment.