1
0
mirror of https://github.com/fraoustin/piwigotools.git synced 2025-06-07 07:56:31 +00:00
piwigotools/setup.py
2016-01-19 19:29:31 +01:00

54 lines
1.4 KiB
Python

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup for piwigotools
"""
import os
from setuptools import setup, find_packages
import piwigotools
NAME = "piwigotools"
VERSION = piwigotools.__version__
DESC = "mange your piwigo gallery by command piwigo"
URLPKG = "https://github.com/fraoustin/piwigotools"
HERE = os.path.abspath(os.path.dirname(__file__))
# README AND CHANGES
with open(os.path.join(HERE, 'README.rst')) as readme:
with open(os.path.join(HERE, 'CHANGES.rst')) as changelog:
LONG_DESC = readme.read() + '\n\n' + changelog.read()
# REQUIREMENTS
with open('REQUIREMENTS.txt') as f:
REQUIRED = f.read().splitlines()
# CLASSIFIERS
with open('CLASSIFIERS.txt') as f:
CLASSIFIED = f.read().splitlines()
# AUTHORS
with open('AUTHORS.txt') as f:
DATA = f.read().splitlines()
AUTHORS = ','.join([i.split('::')[0] for i in DATA])
AUTHORS_EMAIL = ','.join([i.split('::')[1] for i in DATA])
setup(
name=NAME,
version=VERSION,
packages=find_packages(),
author=AUTHORS,
author_email=AUTHORS_EMAIL,
description=DESC,
long_description=LONG_DESC,
include_package_data=True,
install_requires=REQUIRED,
url=URLPKG,
classifiers=CLASSIFIED,
entry_points = {
'console_scripts': [
'piwigo = piwigotools.main:main',
],
},
)