Permalink
Browse files

add Makefile, LICENSE, and add version to __init__

  • Loading branch information...
1 parent 0afc2de commit d925e67f2a6ffeaf8d32de6be99f9896bcdc308d @dlo dlo committed Mar 6, 2012
Showing with 62 additions and 10 deletions.
  1. +14 −0 LICENSE
  2. +21 −0 Makefile
  3. +18 −0 ecl_facebook/__init__.py
  4. +0 −7 release.sh
  5. +9 −3 setup.py
View
14 LICENSE
@@ -0,0 +1,14 @@
+Copyright 2012 Elm City Labs, LLC
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
View
21 Makefile
@@ -0,0 +1,21 @@
+all: pyc version commit upload
+
+init:
+ python setup.py develop
+ pip install -r requirements.txt
+
+version:
+ echo "Packaging version ${VERSION}"
+ sed -i '' 's/\(__version__ = \).*/\1"${VERSION}"/g' objectifier/__init__.py
+
+commit:
+ git add .
+ git commit -m "bump version to ${VERSION}"
+
+upload: version
+ python setup.py sdist
+ s3cmd put dist/ecl_facebook-${VERSION}.tar.gz s3://packages.elmcitylabs.com/ -P
+
+pyc:
+ find . -name "*.pyc" -exec rm '{}' ';'
+
View
18 ecl_facebook/__init__.py
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+
+"""
+ECL Facebook
+~~~~~~~~~~~
+
+:copyright: (c) 2012 Elm City Labs, LLC
+:license: Apache 2.0, see LICENSE for more details.
+
+"""
+
+__version__ = "0.3.16"
+__author__ = "Dan Loewenherz"
+__copyright__ = "Copyright 2012, Elm City Labs, LLC"
+__maintainer__ = "Dan Loewenherz"
+__email__ = "dan@elmcitylabs.com"
+__license__ = "Apache 2.0"
+
View
7 release.sh
@@ -1,7 +0,0 @@
-#!/bin/bash
-
-git add .
-git cim "bump version to $1"
-git archive --format=tar master > ecl_facebook-$1.tar
-gzip -f ecl_facebook-$1.tar
-s3cmd put ecl_facebook-$1.tar.gz s3://packages.elmcitylabs.com/ -P
View
12 setup.py
@@ -1,16 +1,22 @@
#!/usr/bin/env/python
-from setuptools import setup
+import ecl_facebook
+
+try:
+ from setuptools import setup
+except ImportError:
+ from distutils.core import setup
setup(
name = 'ecl_facebook',
- version = '0.3.16',
+ version = ecl_facebook.__version__,
url = 'http://git.elmcitylabs.com/ecl_facebook',
- license = 'BSD',
+ license = 'Apache 2.0',
description = 'Easy Facebook integration for Django.',
author = 'Dan Loewenherz',
author_email = 'dan@elmcitylabs.com',
packages=['ecl_facebook'],
install_requires=["objectifier", "django>=1.3"],
+ package_data={'': ['LICENSE']},
)

0 comments on commit d925e67

Please sign in to comment.