Permalink
Browse files

Added setup script

Version bumped to 0.1a1
  • Loading branch information...
1 parent 04ea63e commit c958809f92a93e7d7ef8d8dfe6ed676bf7def17f @dvarrazzo committed Apr 27, 2011
Showing with 42 additions and 2 deletions.
  1. +3 −0 .gitignore
  2. +5 −0 MANIFEST.in
  3. +9 −1 Makefile
  4. +2 −1 pgxn/client/__init__.py
  5. +23 −0 setup.py
View
@@ -1 +1,4 @@
+MANIFEST
+build
+dist
env
View
@@ -0,0 +1,5 @@
+include COPYING MANIFEST MANIFEST.in README setup.py Makefile
+include scripts/pgxn scripts/pgxncli.py
+recursive-include pgxn *.py
+recursive-include tests *.py
+recursive-include tests/data *
View
@@ -4,7 +4,7 @@
#
# This file is part of the PGXN client
-.PHONY: env
+.PHONY: env sdist upload
PYTHON := python$(PYTHON_VERSION)
PYTHON_VERSION ?= $(shell $(PYTHON) -c 'import sys; print ("%d.%d" % sys.version_info[:2])')
@@ -33,3 +33,11 @@ ez_setup:
mkdir -p $(ENV_BIN)
mkdir -p $(ENV_LIB)
wget -O $(EZ_SETUP) http://peak.telecommunity.com/dist/ez_setup.py
+
+sdist:
+ $(PYTHON) setup.py sdist --manifest-only
+ $(PYTHON) setup.py sdist --force-manifest --formats=gztar,zip
+
+upload:
+ $(PYTHON) setup.py sdist --formats=gztar,zip upload
+
View
@@ -6,7 +6,8 @@
# This file is part of the PGXN client
-__version__ = '0.1dev0'
+# TODO: in a single place - now it's in the setup too.
+__version__ = '0.1a1'
import re
View
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+"""
+pgxn.client -- setup script
+"""
+
+# Copyright (C) 2011 Daniele Varrazzo
+
+# This file is part of the PGXN client
+
+
+from distutils.core import setup
+
+setup(name='pgxn.client',
+ version='0.1a1',
+ description='A command line tool to interact with the PostgreSQL Extension Network.',
+ author='Daniele Varrazzo',
+ author_email='daniele.varrazzo@gmail.com',
+ url='https://github.com/dvarrazzo/pgxn-client/',
+ packages=['pgxn', 'pgxn.client', 'pgxn.utils'],
+ scripts=['scripts/pgxn', 'scripts/pgxncli.py'],
+ license='BSD',
+)
+

0 comments on commit c958809

Please sign in to comment.