Commits

Éric Araujo committed 94abb09

Finish updating the example file

Comments (0)

Files changed (1)

 # these fields are specified in PEP 345
 name = RestingParrot
 version = 0.6.4
-# merged author name + email is pending approval
 author = Carl Meyer <carl@oddbird.net>
+maintainer = Éric Araujo <merwok@netwok.org>
 summary = A sample project demonstrating distutils2 packaging
-# this is under discussion
-description = README.rst
-license = MIT
+description = 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)
   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]
-# see new-config-file.rst
-modules = ship
-          src:parrot
-          src:mr.parrot
-          src:pirates
-          src2:thing
-          src2:more
-exclude_modules = src:parrot.tests
+# 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
 
-scripts = bin/foof
+# Environment markers are allowed
+modules = httplib2
+modules-dir = python2; python_version < '3'
+              python3; python_version > '2'
 
-[extension: more.less]
-sources = src2/more/less.c
+# Extension module
+[extension: haven.ship.pirate]
+sources = haven/ship/pirate.c
+headers = Python.h pirate.h
+include-dirs = include
+optional = 1
 
-# Following sections are not covered in new-config-file.rst
+$DEBUG =
+$GFX = src/SDL_gfx/SDL_gfxPrimitives.c
+$SDL = -I/usr/include/SDL -D_REENTRANT -lSDL
+$FONT = -lSDL_ttf
+$SCRAP = -lX11
 
-# this syntax is proposed in http://wiki.python.org/moin/Distutils2
-# the {} variables are looked up in a system-wide sysconfig.cfg
-# (available in the distutils2 repository)
-# which replaces the current distutils/sysconfig install schemes
-# Tarek intends to write a PEP and collect feedback in the coming months.
+# 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
+
 [resources]
-src/parrot/config/* = {config}
-src/parrot/templates/**/*.tpl  = {appdata}/templates
-
-# generic extensible metadata (with querying API in pkgutil) provides
-# the foundation for trivial implementation of e.g. entry_points
-# equivalent
-# proposal:
-#   custom metadata can be provided in sections of setup.cfg prefixed
-#           with "extension:" (to avoid name conflicts with command names)
-[extension:entry_points]
-paster.app_factory =
-  parrot = parrot.paster:app_factory
+# This needs a PEP.