Source

sample-distutils2-project / setup.cfg

Full commit
# Distutils2-compatible configuration file. See new-config-file for more
# details, proposals and rationales about each section.

[metadata]
# these fields are specified in PEP 345
name = RestingParrot
version = 0.6.4
author = Carl Meyer
author-email = carl@oddbird.net
maintainer = Éric Araujo
maintainer-email = merwok@netwok.org
summary = A sample project demonstrating distutils2 packaging
description-file = README
keywords = distutils2, packaging, sample project

classifiers =
  Development Status :: 4 - Beta
  Environment :: Console (Text Based)
  Environment :: X11 Applications :: GTK; python_version < '3'
  License :: OSI Approved :: MIT License
  Programming Language :: Python
  Programming Language :: Python :: 2
  Programming Language :: Python :: 3

requires-python = >=2.4, <3.2
requires-dist =
  PetShoppe
  MichaelPalin (> 1.1)
  pywin32; sys.platform == 'win32'
  pysqlite2; python_version < '2.5'
  inotify (0.0.1); sys.platform == 'linux2'
requires-external = libxml2
provides-dist = distutils2-sample-project (0.2)
                unittest2-sample-project

project-url =
  Main repository, http://bitbucket.org/carljm/sample-distutils2-project
  Fork in progress, http://bitbucket.org/Merwok/sample-distutils2-project


[global]
# Auto-detect modules, packages, scripts, files; probably better to make
# the user run mkpkg and check the result
autodetect = 1
# Customization hooks
distclass = shop.cheese.HamDistribution
commands =
  build_py = distutils2.build_py.build_py_2to3; python_version >= '3'
  test = lib:_buildhelper.TestCommand


[files]
# Modules are Python modules, extensions modules or Python packages
modules = haven
# Control recusion into packages
exclude-modules = haven.ship.hull
# Tell where to find the files
modules-dir = src

# Environment markers are allowed
modules = httplib2
modules-dir = python2; python_version < '3'
              python3; python_version > '2'

# Other files
scripts =
  detect-witch
  scripts/find-coconuts
  bin/taunt

package_data =
  cheese = data/templates/*

data_files =
  bitmaps = bm/b1.gif, bm/b2.gif
  config = cfg/data.cfg
  /etc/init.d = init-script

# Replaces MANIFEST.in
sdist_extra =
  include THANKS HACKING
  recursive-include examples *.txt *.py
  prune examples/sample?/build

# Extension module
[extension: haven.ship.pirate]
sources = haven/ship/pirate.c
headers = Python.h pirate.h
include-dirs = include
optional = 1

$DEBUG =
$GFX = src/SDL_gfx/SDL_gfxPrimitives.c
$SDL = -I/usr/include/SDL -D_REENTRANT -lSDL
$FONT = -lSDL_ttf
$SCRAP = -lX11

[resources]
# This needs a PEP.