Permalink
Browse files

Initial structure.

  • Loading branch information...
1 parent 46d1bbf commit c44e1ad6623f029e023ca361bc75846b2142ae1d @guilhermechapiewski committed Mar 29, 2010
Showing with 61 additions and 0 deletions.
  1. +44 −0 Makefile
  2. +3 −0 README.textile
  3. 0 README → correios/__init__.py
  4. +14 −0 setup.py
  5. 0 tests/__init__.py
View
44 Makefile
@@ -0,0 +1,44 @@
+# Makefile for correios-api-py
+
+help:
+ @echo
+ @echo "Please use 'make <target>' where <target> is one of"
+ @echo " clean to clean garbage left by builds and installation"
+ @echo " compile to compile .py files (just to check for syntax errors)"
+ @echo " test to execute all simple-db-migrate tests"
+ @echo " install to install simple-db-migrate"
+ @echo " build to build without installing"
+ @echo " dist to create egg for distribution"
+ @echo " publish to publish the package to PyPI"
+ @echo
+
+clean:
+ @echo "Cleaning..."
+ @rm -rf build dist *.pyc **/*.pyc *~ dist correios_api_py.egg-info
+
+compile: clean
+ @echo "Compiling source code..."
+ @rm -rf correios/*.pyc
+ @rm -rf tests/*.pyc
+ @python -tt -m compileall correios
+ @python -tt -m compileall tests
+
+test: compile
+ # clean again to remove compiled files
+ @make clean
+ @echo "Starting tests..."
+ @export PYTHONPATH="$PYTHONPATH:`pwd`"
+ @nosetests -s --verbose --with-coverage --cover-erase --cover-package=correios tests/*
+ @make clean
+
+install:
+ @/usr/bin/env python ./setup.py install
+
+build:
+ @/usr/bin/env python ./setup.py build
+
+dist: clean
+ @python setup.py sdist
+
+publish: dist
+ @python setup.py sdist upload
View
3 README.textile
@@ -0,0 +1,3 @@
+h1. correios-api-py
+
+API Python para obter informações de encomendas/Sedex dos Correios.
View
0 README → correios/__init__.py 100644 → 100755
File renamed without changes.
View
14 setup.py
@@ -0,0 +1,14 @@
+from setuptools import setup
+
+setup(
+ name = "correios-api-py",
+ version = '0.1.0',
+ packages = ["correios"],
+ author = "Guilherme Chapiewski",
+ author_email = "guilherme.chapiewski@gmail.com",
+ description = "API Python para obter informações de encomendas/Sedex dos Correios.",
+ license = "Apache License 2.0",
+ keywords = "correios brasil api",
+ url = "http://github.com/guilhermechapiewski/correios-api-py/",
+ long_description = "API Python para obter informações de encomendas/Sedex dos Correios. Para mais detalhes veja a documentação no Github: http://github.com/guilhermechapiewski/meme-py/blob/master/README.textile",
+)
View
0 tests/__init__.py
No changes.

0 comments on commit c44e1ad

Please sign in to comment.