forked from StatisKit/StatisKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (49 loc) · 2.47 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
54
55
##################################################################################
# #
# PkgTk: Tool kit for Python packages #
# #
# Homepage: pkg.readthedocs.io #
# #
# Copyright (c) 2016 Pierre Fernique #
# #
# This software is distributed under the CeCILL-C license. You should have #
# received a copy of the legalcode along with this work. If not, see #
# <http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html>. #
# #
# File authors: Pierre Fernique <pfernique@gmail.com> (13) #
# #
##################################################################################
import os
from setuptools import setup, find_packages
packages = {"" : "src" + os.sep + "py"}
for package in find_packages("src" + os.sep + "py"):
packages[package] = "src" + os.sep + "py"
try:
from pkg.metadata import load_metadata
metadata = load_metadata('.')
except:
class MetaData(object):
name = 'PkgTk'
version = None
authors = ''
email = ''
description = ''
long_description = ''
license = None
metadata = MetaData()
setup(packages = packages.keys(),
package_dir = {"" : "src" + os.sep + "py"},
name = metadata.name,
version = metadata.version,
author = metadata.authors,
author_email = metadata.email,
description = metadata.description,
long_description = metadata.long_description,
license = metadata.license,
entry_points = {'pkg.load_authors': ['commit = pkg.load_authors_commit:load_authors'],
'console_scripts': ['pkg = pkg.scripts:pkg'],
'pkg.load_about': ['github = pkg.load_about_github:load_about'],
'pkg.load_license': ['CeCILL-C = pkg.load_license_cecillc:load_license',
'CeCILL = pkg.load_license_cecill:load_license']},
zip_safe = False)
del metadata