you-get/setup.py

37 lines
966 B
Python
Raw Normal View History

2012-08-31 19:20:38 +04:00
#!/usr/bin/env python3
PROJ_METADATA = 'you-get.json'
import os, json
here = os.path.abspath(os.path.dirname(__file__))
proj_info = json.loads(open(os.path.join(here, PROJ_METADATA)).read())
README = open(os.path.join(here, 'README.txt')).read()
CHANGELOG = open(os.path.join(here, 'CHANGELOG.txt')).read()
2012-09-01 02:55:45 +04:00
from setuptools import setup, find_packages
2012-08-31 19:20:38 +04:00
setup(
name = proj_info['name'],
version = proj_info['version'],
author = proj_info['author'],
author_email = proj_info['author_email'],
url = proj_info['url'],
license = proj_info['license'],
description = proj_info['description'],
keywords = proj_info['keywords'],
2012-09-01 02:55:45 +04:00
2012-08-31 19:20:38 +04:00
long_description = README + '\n\n' + CHANGELOG,
2012-09-01 02:55:45 +04:00
packages = find_packages(),
platforms = 'any',
zip_safe = False,
include_package_data = True,
classifiers = proj_info['classifiers'],
2012-08-31 19:20:38 +04:00
2012-09-01 02:55:45 +04:00
entry_points = {'console_scripts': proj_info['console_scripts']}
2012-08-31 19:20:38 +04:00
)