-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
53 lines (46 loc) · 1.36 KB
/
setup.py
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
44
45
46
47
48
49
50
51
52
53
#!/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',
],
},
)