Skip to main content

Skeleton project generator for various programming languages

Project description

Skeleton project generator for various programming languages

Templates are available here

Install prerequisites

Linux (Ubuntu)

sudo apt-get install python-minimal python-pip
pip install --upgrade pip
sudo pip install virtualenv

Installation

Until I can be motivated to write a proper installer…

Linux and macOS

git clone git@github.com:rcook/ptool.git
cp ptool/ptool-sample /path/to/ptool

The location /path/to/ptool should be somewhere on the system search path. Edit the contents of the result file to point to the “real” ptool in the script subdirectory of the Git repo.

Set up Python virtual environment

script/virtualenv

Dev-install main script into virtual environment

script\env pip install -e .

This will allow edits to the scripts to be picked up automatically

Run main script in virtual environment

script/env ptool --version

Build package

script/env python setup.py build

Test package

script/env python setup.py test

Upload package

script/env python setup.py sdist upload

Install package into global site packages

python setup.py install --record files.txt

Note that this calls the python global Python instead of the Python in the project’s virtual environment.

Notes

Various package properties are defined in ptool/__init__py:

  • __project_name__

  • __version__

  • __description__

When publishing a new build of the package, ensure that __version__ is incremented as appropriate.

User-level installation

pip install --user ptool

This will perform a user-level installation of the package. The scripts will be placed at:

  • Windows: %APPDATA%\Python\Scripts

  • Linux/macOS: $HOME/.local/bin

Global installation

pip install ptool

This will perform a global installation of the package and should add the script to PATH.

Usage

usage: project.py [-h] {new,templates} ...

Create project from template

positional arguments:
  {new,templates}  subcommand help
    new            Create new project from template
    templates      List available templates

optional arguments:
  -h, --help       show this help message and exit

Licence

Released under MIT License

Project details


Download files

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

Source Distribution

ptool-0.3.tar.gz (10.4 kB view details)

Uploaded Source

File details

Details for the file ptool-0.3.tar.gz.

File metadata

  • Download URL: ptool-0.3.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ptool-0.3.tar.gz
Algorithm Hash digest
SHA256 e81c92ad50e99e8c4e1868160d41cb9de0d3d03a9ecb826c4247f184fcef1eaf
MD5 e9191926cc3d352c0afb51c2947a74ce
BLAKE2b-256 a81c8a359c1a76617559d4ef15e6c18ccc80390dc157aaff5d125f6db106f41d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page