Permalink
Browse files

Use setup.py to register and upload project.

Also improved the docs.
  • Loading branch information...
1 parent 34c1983 commit c25324d71d15fe88ec6d160747f1f57182954a36 Todd DeLuca committed May 26, 2012
Showing with 62 additions and 22 deletions.
  1. +24 −12 README.md
  2. +14 −10 setup.cfg
  3. +24 −0 setup.py
View
@@ -1,29 +1,41 @@
# Introduction
-Diabric is a python package containing utilities (fabric tasks, functions, etc.) for using fabric to:
-
-- work with Amazon EC2
-- configure machines
-- install, configure, and start services, servers, and daemons.
-- deploy web applications.
-- create virtual environments and install packages into them.
-
+Diabric is a python package containing utilities for use in Fabric fabfiles.
+These tasks, functions, and classes are useful for:
+
+- working with Amazon EC2
+- configuring machines
+- installing, configuring, and starting services, servers, and daemons, like
+ nginx and supervisord.
+- deploying python wsgi web applications.
+- uploading and formatting files
+- creating python virtualenv virtual environments
+- installing packages into virtualenvs
+- configuring fabfiles
+
+
This package is still very much _alpha_ and exists to reduce code duplication
-across a number of fabfiles I have for different projects. Please copy and/or
-use this code freely.
+across a number of fabfiles I have for different projects.
# Requirements
- Written with Python 2.7
(http://python.org/download/releases/2.7.3/) in mind.
- Packaged with distutils2 (http://packages.python.org/Distutils2/)
-- Fabric (http://docs.fabfile.org/) for creating fabfile tasks, working on remote hosts, ...
+- Fabric (http://docs.fabfile.org/) for creating fabfile tasks, working with
+ remote hosts, ...
- Boto (https://github.com/boto/boto) for interacting with EC2.
# Installation
-## Install from source using distutils2.
+## Install from pypi.python.org
+
+Download and install diabric.
+
+ pip install diabric
+
+## Install from github.com
Install distutils2 if you do not yet have it installed.
View
@@ -1,24 +1,28 @@
[metadata]
name = diabric
version = 0.1
-summary = Diabolically atomic Fabric tasks and utilities.
-description = This project contains
- small, useful fabric tasks, functions, etc., for deploying web
- applications, working with ec2, configuring machines, configuring
- and working with servers (e.g. nginx), etc.
-download_url = https://github.com/todddeluca/diabric/downloads
+license = MIT
+summary = Diabolically atomic Python Fabric fabfile tasks and utilities.
+description-file = README.md
+keywords = fabric fabfile boto ec2 virtualenv python wsgi webapp deployment
home_page = https://github.com/todddeluca/diabric
author = Todd Francis DeLuca
author_email = todddeluca@yahoo.com
-classifier = License :: OSI Approved :: MIT License
+classifier =
+ License :: OSI Approved :: MIT License
Development Status :: 2 - Pre-Alpha
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
requires-dist =
- fabric
+ Fabric
boto
+requires-python = 2.7
[files]
-packages = diabric
-
+packages =
+ diabric
+ tests
+extra_files =
+ README.md
+ LICENSE.txt
View
@@ -0,0 +1,24 @@
+
+from setuptools import setup
+
+setup(
+ name = 'diabric',
+ version = '0.1',
+ license = 'MIT',
+ description = 'Diabolically atomic Python Fabric fabfile tasks and utilities.',
+ long_description = open('README.md').read(),
+ keywords = 'fabric fabfile boto ec2 virtualenv python wsgi webapp deployment',
+ url = 'https://github.com/todddeluca/diabric',
+ author = 'Todd Francis DeLuca',
+ author_email = 'todddeluca@yahoo.com',
+ classifiers = ['License :: OSI Approved :: MIT License',
+ 'Development Status :: 2 - Pre-Alpha',
+ 'Programming Language :: Python :: 2',
+ 'Programming Language :: Python :: 2.7',
+ ],
+ packages = ['diabric'],
+ install_requires = ['setuptools', 'Fabric>=1.4','boto>=2.3'],
+ include_package_data = True,
+ package_data = {'' : ['README.md', 'LICENSE.txt']},
+)
+

0 comments on commit c25324d

Please sign in to comment.