Skip to content

Commit

Permalink
Prepare for publishing at PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
bondarevts committed Oct 12, 2020
1 parent 28efec3 commit 2189b99
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.idea
dist/
venv/
*.egg-info/
build/
__pycache__/

.DS_Store
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include LICENSE
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,25 @@
# spelling
# Spell It For Me
A simple command line tool to display a spelling for any phrase using a phonetic alphabet.

Uses the NATO phonetic alphabet.

More alphabets will be supported in the future.

## Installation

Run the following to install:

```bash
$ pip install spell-it-for-me
```

## Usage

```bash
$ spell Louis
L: Líma
o: Óscar
u: Úniform
i: Índia
s: Siérra
```
35 changes: 35 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
from setuptools import setup

with open('README.md') as readme_file:
long_description = readme_file.read()

setup(
name='spell-it-for-me',
version='0.1.1',
url='https://github.com/bondarevts/spell-it-for-me',
author='Timofei Bondarev',
author_email='[email protected]',
description='A simple command line tool to display a spelling for any phrase using a phonetic alphabet.',
long_description=long_description,
long_description_content_type='text/markdown',
py_modules=['spell'],
entry_points={'console_scripts': ['spell = spell:main']},
package_dir={'': 'src'},
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Operating System :: OS Independent',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Topic :: Communications',
'Topic :: Utilities',
],
)
2 changes: 1 addition & 1 deletion spell.py → src/spell.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
def print_spelling(word: str, spelling_map: Dict[str, str]) -> None:
for letter in word:
print(letter, ': ', sep='', end='')
print(spelling_map.get(letter, letter))
print(spelling_map.get(letter.lower(), letter))


def main() -> None:
Expand Down

0 comments on commit 2189b99

Please sign in to comment.