you-get/setup.py

46 lines
1.2 KiB
Python
Raw Normal View History

#!/usr/bin/env python3
2012-08-31 19:20:38 +04:00
2013-02-13 01:04:39 +04:00
PROJ_NAME = 'you-get'
PACKAGE_NAME = 'you_get'
PROJ_METADATA = '%s.json' % PROJ_NAME
2012-08-31 19:20:38 +04:00
2012-12-09 20:33:24 +04:00
import os, json, imp
2012-08-31 19:20:38 +04:00
here = os.path.abspath(os.path.dirname(__file__))
2013-11-30 18:43:00 +04:00
proj_info = json.loads(open(os.path.join(here, PROJ_METADATA), encoding='utf-8').read())
try:
README = open(os.path.join(here, 'README.rst'), encoding='utf-8').read()
except:
README = ""
CHANGELOG = open(os.path.join(here, 'CHANGELOG.rst'), encoding='utf-8').read()
2013-02-13 01:04:39 +04:00
VERSION = imp.load_source('version', os.path.join(here, 'src/%s/version.py' % PACKAGE_NAME)).__version__
2012-08-31 19:20:38 +04:00
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'],
2012-12-09 20:33:24 +04:00
version = VERSION,
2013-11-30 18:43:00 +04:00
2012-08-31 19:20:38 +04:00
author = proj_info['author'],
author_email = proj_info['author_email'],
url = proj_info['url'],
license = proj_info['license'],
2013-11-30 18:43:00 +04:00
2012-08-31 19:20:38 +04:00
description = proj_info['description'],
keywords = proj_info['keywords'],
2013-11-30 18:43:00 +04:00
2015-10-23 02:53:42 +03:00
long_description = README,
2013-11-30 18:43:00 +04:00
2013-02-13 01:04:39 +04:00
packages = find_packages('src'),
package_dir = {'' : 'src'},
2013-11-30 18:43:00 +04:00
2013-02-13 01:04:39 +04:00
test_suite = 'tests',
2013-11-30 18:43:00 +04:00
2012-09-01 02:55:45 +04:00
platforms = 'any',
zip_safe = True,
2012-09-01 02:55:45 +04:00
include_package_data = True,
2013-11-30 18:43:00 +04:00
2012-09-01 02:55:45 +04:00
classifiers = proj_info['classifiers'],
2013-11-30 18:43:00 +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
)