Libraries and Modules in Python

Solutions

Create your own setup.py

In [5]:
with open('./code/morse/basic_setup.py') as fh:
    print(fh.read())
from setuptools import setup
setup(  name='morse',
        version=1.0,
        py_modules=['morse'])

Useful information

In [6]:
with open('./code/morse/setup.py') as fh:
    print(fh.read())
from setuptools import setup
setup(  name='morse',
        version=1.0,
        author='My Full Name',
        author_email='mfn20@bath.ac.uk',
        description='Module for Morse code enthusiasts',
        long_description='A longer description of how Morese code works',
        url='https://arc-lessons.github.io/libraries-modules/07_package-soln.html',
        py_modules=['morse'],
        classifiers=[   'Programming Language :: Python :: 3',
                        'License :: OSI Approved :: BSD License',
                        'Operating System :: POSIX :: Linux'
                    ]
        )