setup.py 1.09 KB
Newer Older
Nicolas Joyard's avatar
Nicolas Joyard committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
import os
from setuptools import setup


BASE_DIR = os.path.dirname(__file__)


def read_text(fname):
    with open(os.path.join(BASE_DIR, fname)) as f:
        return f.read()


def read_requirements(fname):
    with open(os.path.join(BASE_DIR, fname)) as f:
        lines = f.read().splitlines()
        return [line
                for line in lines
                if bool(line and not line.startswith('#'))]


setup(
    name="irfm",
    version="0.0.1",
    author="Nicolas Joyard",
    author_email="joyard.nicolas@gmail.com",
    description="",
    license="AGPLv3+",
    keywords="",
    url="https://git.regardscitoyens.org/regardscitoyens/irfm",
    packages=['irfm'],
    long_description=read_text('README.md'),
    install_requires=read_requirements('requirements.txt'),
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Framework :: Flask",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
    ],
    entry_points='''
        [console_scripts]
        irfm=irfm.cli:manager.run
    '''
)