Code Monkey home page Code Monkey logo

generator-python-package's Introduction

generator-python-package Build Status

Yeoman generator for python packages.

Getting Started

Make sure you have the latest version of Yeoman:

$ npm install -g yo

To install generator-python-package from npm, run:

$ npm install -g generator-python-package

Install kxxoling/generator-python-package๏ผš

$ git clone https://github.com/kxxoling/generator-python-package.git
$ cd generator-python-package && npm link

Finally, initiate the generator:

$ yo python-package

Current features

  • Allows selection of supported python versions (2.6, 2.7, 3.2, 3.3, 3.4, pypy);
  • Uses nosetests to run your tests;
  • Creates base class for tests;
  • Uses and configures coverage for test coverage;
  • Uses preggy for expectations;
  • Uses tox to run tests against all the supported python versions;
  • Allows selections of services your app requires (currently supported: mongodb and redis);
  • Sets up a setup.py file with all the collected information and test dependencies;
  • Creates travis.yml file that runs tests;
  • Creates Makefile to support all the above features.

Makefile

To list available tasks, just run:

$ make list

To setup a new virtualenv:

$ make setup

To run your tests:

$ make test

DISCLAIMER

The above tools are my personal preferences and the ones I like to work with.

If you feel any of those can be replaced by a different tool, feel free to make a pull request adding a wizard step to select the tool. Just make sure to keep compatibility with the one already in place.

generator-python-package's People

Contributors

heynemann avatar kxxoling avatar marcelometal avatar rfloriano avatar scorphus avatar

Watchers

 avatar

Forkers

pcraciunoiu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.