Skip to main content

Project manager for pypi libraries

Project description

Build Status

man

man is a software distribution tool that works over setuptools and help integerate PyPi, Travis, Github and You together. This lets you create a python library and have it deployed in less than ten minutes.

Getting started

Creation

Say that you have an idea of a new library that you would like to share with other on PyPi. You know python, you use github and you don’t want to spend hours struggling in the mess of package distribution.

Thus, just install man:

pip install man

NOTE: If you are on windows, you will need to install pyreadline with pip install pyreadline.

And create a new library:

man new-lib

Then answer the short questions about your library:

Name of your library:
Short description:
Keywords (space separated):
Full name:
E-Mail:
Github username:
PyPi username:

If you don’t already have a PyPi account, you need to create one.

Then you will be prompted for your github password to create a new repository with the name of your lib.

Then you just need to: - Setup Travis: - create an account - Find your repo at https://travis-ci.org/profile/YOURNAME and turn the switch on. - Add your travis password to the .travis.yml: - Open bash - And just run travis encrypt --add deploy.password - And type your travis password - Add classifiers (or tags) for your library so people can find it more easily, run man add tag - Write your code, do commits, tests and whatever you want. - Complete the readme.md (not the readme.rst, because it is always converted from the readme.md.)

First release

Now the version of your code is 0.0.0. I choose to use the simple MAJOR.MINOR.PATCH system as it’s easy to use, understand and work with.

When you are ready for your first release, type

man release major

Enter a description of your first release (it can be more than one line) and confirm that you want to create a new release. Your code is then taged with v1.0.0, and that will trigger a Travis build and deployment on PyPi. You can go on travis-ci.organd when everything is finished, type:

pip install my-new-lib

And that’s it!

And after

Then, everytime you add functionalities or correct bugs and you want to share them just type one of the following:

man release patch  # When you just fix broken things
man release minor  # when you add functionnality
man release major  # when you do big changes (maybe not backward compatible)

All commands are well described, so try to run them with the --help flag to see what man can do.

List of commands:

Id there is a tilde (~) after a command, there is an interactive prompt disponible, with autocompletion.

man - add - keywords [KW1] [KW2] ... - package [PATH_TO_PKG] - dependancy [LIBRARY] [VERSION] ~ - script ~ - tag ~ - remove - keywords ~ - package [PKG_NAME] ~ - dependancy [LIBRARY] ~ - script [NAME] ~ - tag ~ - release [major|minor|patch] - --test - --again - new [DESTINATION_DIR] ~ - changelog - -v / --verbose - config ~ - See the pyconfiglib reference. - gen - readme.rst - setup.py - MANIFEST.in


By Diego Dorn

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

man-1.5.1.tar.gz (19.8 kB view details)

Uploaded Source

File details

Details for the file man-1.5.1.tar.gz.

File metadata

  • Download URL: man-1.5.1.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for man-1.5.1.tar.gz
Algorithm Hash digest
SHA256 65a01e99da341b3b73a188c2a242bea7f41e18c07a09b96c597deb91c4a8fb45
MD5 8e131f15270f49ac1a1611b63de4179b
BLAKE2b-256 b223c994601e6fa9ddacea7de4e7edcbbe80de545ed96a2c26533777273fa941

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