Commit ed09c0a8 authored by Laurent Bachelier's avatar Laurent Bachelier

Basic packaging

closes #647
parent bb19f3a6
*.pyc *.pyc
/ass2m.egg-info/
/build/
/dist/
recursive-include data/templates *
recursive-include data/assets *
recursive-include data/scripts *
include COPYING
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
import os import os
import sys
from ConfigParser import RawConfigParser from ConfigParser import RawConfigParser
from .users import Group, User, Anonymous from .users import Group, User, Anonymous
...@@ -62,8 +63,8 @@ class GroupsConfig(IObject, dict): ...@@ -62,8 +63,8 @@ class GroupsConfig(IObject, dict):
class Storage(object): class Storage(object):
DIRNAME = '.ass2m' DIRNAME = '.ass2m'
DATA_PATHS = [os.path.realpath(os.path.join(os.path.dirname(__file__), os.path.pardir, 'data')), DATA_PATHS = [os.path.realpath(os.path.join(os.path.dirname(__file__), os.path.pardir, 'data')),
'/usr/share/ass2m', os.path.join(sys.prefix, 'share', 'ass2m'),
'/usr/local/share/ass2m'] os.path.join(sys.prefix, 'local', 'share', 'ass2m')]
def __init__(self, path): def __init__(self, path):
self.path = path self.path = path
......
#!/usr/bin/env python
from setuptools import setup, find_packages
from glob import glob
from sys import version_info
assert version_info >= (2, 6)
DATA_DIR = 'share/ass2m'
REQUIREMENTS = ['PIL', 'mako', 'webob', 'paste']
if version_info < (2, 7):
REQUIREMENTS.append('argparse')
setup(name="ass2m",
version='0.1',
description='The Authenticated Social Storage Made for Mothers project is a web application useful for sharing files (with support for photos galleries, videos, etc.) or organizing events with your friends, removing the obligation of using Facebook or other centralized social networks.',
author='Laurent Bachelier',
author_email='laurent@bachelier.name',
url='http://ass2m.org/',
license='GNU AGPL 3',
classifiers=[
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Programming Language :: JavaScript',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP',
],
zip_safe=False,
packages=find_packages(),
scripts=['bin/ass2m', 'bin/ass2m-serve'],
data_files = [
('%s/assets' % DATA_DIR, glob('data/assets/*')),
('%s/templates' % DATA_DIR, glob('data/templates/*')),
('%s/scripts' % DATA_DIR, glob('data/scripts/*')),
],
install_requires=REQUIREMENTS,
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment