Skip to content

Commit

Permalink
Add modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
asmeurer committed Jul 8, 2014
1 parent 88e117b commit e0dc524
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modernize/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"%PYTHON%" setup.py install
if errorlevel 1 exit 1

:: Add more build steps here, if they are necessary.

:: See
:: http://docs.continuum.io/conda/build.html
:: for a list of environment variables that are set during the build process.
9 changes: 9 additions & 0 deletions modernize/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

$PYTHON setup.py install

# Add more build steps here, if they are necessary.

# See
# http://docs.continuum.io/conda/build.html
# for a list of environment variables that are set during the build process.
63 changes: 63 additions & 0 deletions modernize/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
package:
name: modernize
version: !!str 0.2

source:
fn: modernize-0.2.tar.gz
url: https://pypi.python.org/packages/source/m/modernize/modernize-0.2.tar.gz
md5: 762ed0e73d1af3143349aa121ee9529e
# patches:
# List any patch files here
# - fix.patch

build:
#preserve_egg_dir: True
entry_points:
# Put any entry points (scripts to be generated automatically) here. The
# syntax is module:function. For example
#
# - modernize = modernize:main
#
# Would create an entry point called modernize that calls modernize.main()

- python-modernize = libmodernize.main:main

# If this is a new build for the same version, increment the build
# number. If you do not include this key, it defaults to 0.
# number: 1

requirements:
build:
- python
- setuptools

run:
- python

test:
# Python imports
imports:
- libmodernize
- libmodernize.fixes

commands:
# You can put test commands to be run here. Use this to test that the
# entry points work.

- python-modernize --help

# You can also put a file called run_test.py in the recipe that will be run
# at test time.

# requires:
# Put any additional test requirements here. For example
# - nose

about:
home: http://github.com/mitsuhiko/python-modernize
license: BSD License
summary: 'A hack on top of 2to3 for modernizing code for hybrid codebases.'

# See
# http://docs.continuum.io/conda/build.html for
# more information about meta.yaml

0 comments on commit e0dc524

Please sign in to comment.