Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing setup

  • Loading branch information...
commit df4632b5365ac15306c06df1fbad848b37163324 1 parent 98498a9
@josezambrana josezambrana authored
Showing with 27 additions and 39 deletions.
  1. +2 −0  .gitignore
  2. +3 −3 README.rst
  3. +22 −36 setup.py
View
2  .gitignore
@@ -6,3 +6,5 @@ local_settings.py
django.po
media/
build/
+dist/
+*egg-info/
View
6 README.rst
@@ -1,6 +1,6 @@
-===========
-Zero Common
-===========
+============
+Zero Users
+============
Another simple app to manage profiles in django.
View
58 setup.py
@@ -1,40 +1,26 @@
-import os
-import logging
-
-from distutils.command.install import INSTALL_SCHEMES
-from distutils.core import setup
-
-
-for scheme in INSTALL_SCHEMES.values():
- scheme['data'] = scheme['purelib']
-
-
-packages, data_files = [], []
-root_dir = os.path.dirname(__file__)
-if root_dir:
- os.chdir(root_dir)
-
-for dirpath, dirnames, filenames in os.walk('users'):
- for i, dirname in enumerate(dirnames):
- if dirname.startswith('.'): del dirnames[i]
-
- if '__init__.py' in filenames:
- pkg = dirpath.replace(os.path.sep, '.')
- if os.path.altsep:
- pkg = pkg.replace(os.path.altsep, '.')
- packages.append(pkg)
- elif filenames:
- data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]])
+from setuptools import find_packages, setup
setup(
- name='zero-users',
- version='0.1',
- description='Simple app with views and models to manage profiles and users',
- author='Jose Maria Zambrana Arze',
- author_email='contact@josezambrana.com',
- url='http://github.com/mandlaweb/zero-users',
- packages=packages,
- data_files=data_files,
- install_requires=['zero-common-app', 'Django>=1.3.1', 'South>=0.7.3',]
+ # Basic package information:
+ name = 'zero-users',
+ version = '0.1.5',
+ packages = ['users'],
+
+ # Packaging options:
+ zip_safe = False,
+ include_package_data = True,
+
+ # Package dependencies:
+ install_requires = ['zero-common>=0.1.2', 'Django>=1.3.1', 'South>=0.7.3'],
+
+ # Metadata for PyPI:
+ author = 'Jose Maria Zambrana Arze',
+ author_email = 'contact@josezambrana.com',
+ license = 'apache license v2.0',
+ url = 'http://github.com/mandlaweb/Zero-Users',
+ keywords = 'zero users app',
+ description = 'Simple app with views and models to manage users and profiles',
+ long_description = "Another simple app to manage profiles in django."
)
+
Please sign in to comment.
Something went wrong with that request. Please try again.