# HG changeset patch # User Brian Neal # Date 1372969819 18000 # Node ID 2eca19f50fdb4be379699ebcf10fdfe1bf90b438 # Parent 1e8affa8fc1159a088f6119fa55bb111e4106351 Created a setup.py file and scripts/m209. diff -r 1e8affa8fc11 -r 2eca19f50fdb README.rst --- a/README.rst Wed Jul 03 21:22:54 2013 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -==== -m209 -==== -A historically accurate M-209 library written in Python 3 ---------------------------------------------------------- - -:Author: Brian Neal -:Version: 0.1 -:Date: July 4, 2013 -:Home Page: https://bitbucket.org/bgneal/m209/ -:License: MIT License (see LICENSE.txt) -:Documentation: (coming soon) -:Support: https://bitbucket.org/bgneal/m209/issues - -The `M-209`_ is a mechanical cipher machine used by the US military during World -War II and up to the Korean War. The M-209 is also known as the CSP-1500 by -the US Navy. The M-209 is an example of a Hagelin device, a family of -mechanical cipher machines created by Swedish inventor `Boris Hagelin`_. - -This project is a Python 3 library and command-line utility for encrypting and -decrypting text by simulating the operation of an actual M-209 device. - -Please see the documentation (coming soon) for library usage, tutorials and -references. - - -.. _M-209: http://en.wikipedia.org/wiki/M-209 -.. _Boris Hagelin: http://en.wikipedia.org/wiki/Boris_Hagelin diff -r 1e8affa8fc11 -r 2eca19f50fdb README.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.txt Thu Jul 04 15:30:19 2013 -0500 @@ -0,0 +1,28 @@ +==== +m209 +==== +A historically accurate M-209 library written in Python 3 +--------------------------------------------------------- + +:Author: Brian Neal +:Version: 0.1 +:Date: July 4, 2013 +:Home Page: https://bitbucket.org/bgneal/m209/ +:License: MIT License (see LICENSE.txt) +:Documentation: (coming soon) +:Support: https://bitbucket.org/bgneal/m209/issues + +The `M-209`_ is a mechanical cipher machine used by the US military during World +War II and up to the Korean War. The M-209 is also known as the CSP-1500 by +the US Navy. The M-209 is an example of a Hagelin device, a family of +mechanical cipher machines created by Swedish inventor `Boris Hagelin`_. + +This project is a Python 3 library and command-line utility for encrypting and +decrypting text by simulating the operation of an actual M-209 device. + +Please see the documentation (coming soon) for library usage, tutorials and +references. + + +.. _M-209: http://en.wikipedia.org/wiki/M-209 +.. _Boris Hagelin: http://en.wikipedia.org/wiki/Boris_Hagelin diff -r 1e8affa8fc11 -r 2eca19f50fdb scripts/m209 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/m209 Thu Jul 04 15:30:19 2013 -0500 @@ -0,0 +1,8 @@ +#!/usr/bin/env python +# Copyright (C) 2013 by Brian Neal. +# This file is part of m209, the M-209 simulation. +# m209 is released under the MIT License (see LICENSE.txt). + +import m209.main + +m209.main.main() diff -r 1e8affa8fc11 -r 2eca19f50fdb setup.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/setup.py Thu Jul 04 15:30:19 2013 -0500 @@ -0,0 +1,43 @@ +#!/usr/bin/env python +# Copyright (C) 2013 by Brian Neal. +# This file is part of m209, the M-209 simulation. +# m209 is released under the MIT License (see LICENSE.txt). + +from distutils.core import setup +from os.path import join, dirname + +import m209 + +setup( + name='m209', + version=m209.__version__, + author='Brian Neal', + author_email='bgneal@gmail.com', + url='https://bitbucket.org/bgneal/m209/', + license='MIT', + description='A historically accurate M-209 simulation library.', + long_description=open(join(dirname(__file__), 'README.txt')).read(), + packages=['m209', 'm209.tests', 'm209.keylist', 'm209.keylist.tests'], + scripts=['scripts/m209'], + classifiers = [ + 'Development Status :: 3 - Alpha', + 'Environment :: Console', + 'Intended Audience :: End Users/Desktop', + 'Intended Audience :: Developers', + 'Intended Audience :: Information Technology', + 'Intended Audience :: Science/Research', + 'Intended Audience :: Other Audience', + 'Intended Audience :: Education', + 'License :: OSI Approved :: MIT License', + 'Operating System :: OS Independent', + 'Natural Language :: English', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3', + 'Topic :: Communications', + 'Topic :: Security', + 'Topic :: Security :: Cryptography', + 'Topic :: Software Development :: Libraries', + 'Topic :: Software Development :: Libraries :: Python Modules', + 'Topic :: Utilities', + ], +)