-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restructure project to be more organized and allow development and testing without needing to install. tests moved into own folder for clarity. sorter-runner.py can be ran standalone for testing purposes. new readme heading for development.
- Loading branch information
Brett
committed
Apr 17, 2018
1 parent
723411e
commit caaa9df
Showing
9 changed files
with
77 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
"""py_sorter.__main__: executed when py_sorter directory is called as a script.""" | ||
|
||
|
||
from .sorter import main | ||
|
||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
"""py_sorter.sorts: sorts module containing all sort algorithm logic.""" | ||
|
||
|
||
import random | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
from setuptools import setup, find_packages | ||
"""setup.py: setuptools control.""" | ||
|
||
import re | ||
from setuptools import setup | ||
|
||
|
||
version = re.search('^__version__\s*=\s*"(.*)"', | ||
open('py_sorter/sorter.py').read(), | ||
re.M | ||
).group(1) | ||
|
||
with open("README.md", "rb") as f: | ||
long_description = f.read().decode("utf-8") | ||
|
||
|
||
setup( | ||
name='sorter', | ||
name='py-sorts', | ||
packages=['py_sorter'], | ||
entry_points={'console_scripts': ['py_sorter = py_sorter.sorter.main']}, | ||
version=version, | ||
description="Sort integer lists using python in the command line.", | ||
long_description=long_description, | ||
author='Brett Currie', | ||
author_email='[email protected]', | ||
author='becurrie', | ||
version='0.1.7', | ||
description='sort integers with different sorting algorithms.', | ||
packages=find_packages(), | ||
py_modules=['sorter.sorter'], | ||
entry_points={'console_scripts': ['sorter = sorter.sorter:main']}, | ||
license='MIT', | ||
url='https://github.com/becurrie/sorters-py', | ||
keywords=['sorting', 'algorithm', 'console', 'application'], | ||
url='http://www.github.com/becurrie/py-sorts' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
"""Convenience wrapper for running py_sorter directly from source tree.""" | ||
|
||
from py_sorter.sorter import main | ||
|
||
if __name__ == '__main__': | ||
main() |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters