forked from nathanborror/django-basic-apps
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update setup.py with setuptools friendly packaging
- Loading branch information
1 parent
0fe02cb
commit d4ec962
Showing
1 changed file
with
17 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,24 @@ | ||
import os | ||
from distutils.core import setup | ||
|
||
|
||
def fullsplit(path, result=None): | ||
""" | ||
Split a pathname into components (the opposite of os.path.join) in a | ||
platform-neutral way. | ||
""" | ||
if result is None: | ||
result = [] | ||
head, tail = os.path.split(path) | ||
if head == "": | ||
return [tail] + result | ||
if head == path: | ||
return result | ||
return fullsplit(head, [tail] + result) | ||
|
||
|
||
package_dir = "basic" | ||
|
||
|
||
packages = [] | ||
for dirpath, dirnames, filenames in os.walk(package_dir): | ||
# ignore dirnames that start with '.' | ||
for i, dirname in enumerate(dirnames): | ||
if dirname.startswith("."): | ||
del dirnames[i] | ||
if "__init__.py" in filenames: | ||
packages.append(".".join(fullsplit(dirpath))) | ||
# fork from original django basic apps for packaging purposes | ||
|
||
from setuptools import setup, find_packages | ||
|
||
setup(name='django-basic-apps', | ||
version='0.6', | ||
description='Basic Django applications', | ||
long_description='fork of djang-basic-apps to package it with setuptools', | ||
author='Nathan Borror', | ||
#author_email='', | ||
url='http://code.google.com/p/django-basic-apps/', | ||
packages=packages) | ||
classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | ||
keywords='', | ||
#url='http://code.google.com/p/django-basic-apps/', | ||
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), | ||
#package_dir = {'': 'src'}, | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=[ | ||
'Django', | ||
'django-tagging', | ||
'beautifulsoup', | ||
], | ||
entry_points="""""", | ||
) |