mirror of
https://github.com/fraoustin/piwigotools.git
synced 2025-06-07 16:06:27 +00:00
48 lines
1.2 KiB
Python
48 lines
1.2 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 = "piwigotools description"
|
|
URLPKG = "https://url/of/piwigotools/website"
|
|
|
|
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,
|
|
)
|