Skip to main content

The GMU PyPi template repository.

Project description

The GMU PyPi Template


Authors:Mybrid Wonderful, Gregg Yearwood


The GMU PyPi template is for developers to install a set of files for starting a Python project at The Gregg & Mybrid Upgrade, Inc. This README.rst is displayed as help for the Makefile in this director. The utility of this template is to standardize on various Python project tools and configuration files for new Python projects.

If you are not a developer for The GMU then feel free to clone the git repo and salt-and-pepper to your taste.

git clone

New GMU Python Project Instructions

# Minimal configuration
# 1. Create a Python3 virtualenv.
python3.6 -m venv ~/workspace/run/py36_$PROJECT_NAME

# 2. Create an empty Python3 project directory.
mkdir ~/workspace/gmu/$PROJECT_NAME

# 3. Activate the Python3 virtualenv.
. ~/workspace/run/py36_$PROJECT_NAME/bin/activate

# 4. Install thegmu-pypi-template.
# TEST: pip install --index-url thegmu-pypi-template
pip install thegmu-pypi-template

# 5. Change directory into the empty Python3 project directory.
cd  ~/workspace/gmu/$PROJECT_NAME

# 6. Run the install script to install the files into the current directory.

# 7. Rename the project directory.
mv thegmu_pypi_template $PROJECT_DIR

# 8. Edit the Makefile and edit the four variables:


# 9. Edit tox.ini and set the python version.
tox.ini:envlist = py36

# 10. Edit and change the NAME to your PROJECTNAME
#    and remove bin/thegmu-pypi-template script = "fun" = []

# 11. Edit tests/ and change the import directory to your project.
tests/ from fun.sample import Sample

# 12. Validate the minimal configuration by running the following make commands.
make init
make test
make dist
make test-dist

# Complete configuration
# 13. Edit fully the configuration files.
#     The following is a list of files that will need to be updated
#     such as changing the email address, a new software version '0.1.0', etc.
#     Makefile - update variables
#     README.rst - complete rewrite
# - update variables
#     $PROJECT_NAME/ - complete rewrite
#     $PROJECT_NAME/ - delete
#     tests/ - delete


  1. Encourage Python standards are followed for packaging and source.
  2. Pylint for validating PEP8 standards of code.
  3. Sphinx documentation to integrate with
  4. Test automation in the dedicated tests directory.
  5. PyPi package deployment.
  6. ReadTheDocs documentation deployment.


  1. autopep8: pep8 code beautifier
  2. pylint: coding standards
  3. pytest: test source
  4. public documentation using sphinx
  5. sphinx: html documentation
  6. tox: test the source as installed package
  7. twine: deploy the package to,
  8. Makefile: run the tools

Configuration files:

  1. .gitignore: ignore pylint, pytest, tox and build files as well .settings, .project, and .pydevproject directories from Eclipse.
  2. .pylintrc: The GMU specific PEP8 suppression.

Makefile Options

make <option>

Same as help.
Removes Python compiled files, pytest files, and tox test files. See clean-pyc and clean-tox.
Removes Python packaging files.
Removes sphinx documentation build files. Configuration files are not removed.
Removes Python compiled files and pytest files.
Removes tox test files.
Creates source and binary Python packages suitable for PyPi.
Creates the configuration files for sphinx.
Build the the HTML documentation files in docs/_build.
Displays this file.
Install Python tools used by this Makefile.
Run autopep8 and update all the project and test files in place with white space changes.
Publish the package to production ‘’. User name and password prompt are given.
Publish the package to test ‘’. User name and password prompt are given.
Run pylint and output results. No other action is taken. See pep8 option to fix white space problems.
Python ‘pip’ packages for the tools.
Run the tests from source using pytest.
Build the packages and then run the test as packages in temporary Python virtualenv environments.
Upgrade Python ‘pip’ packages for the tools.

The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. –George Bernard Shaw

The End

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for thegmu-pypi-template, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size thegmu_pypi_template-1.0.2-py3-none-any.whl (6.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size thegmu-pypi-template-1.0.2.tar.gz (6.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page