-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
88 lines (75 loc) · 2.35 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# =========================================
# IMPORTS
# --------------------------------------
import os
import setuptools
import setupextras
# DISABLED/BUG: this line fails when `pip install mybase` but works `pip install .`
# from mybase import __version__
# =========================================
# MAIN
# --------------------------------------
name = 'mybase'
version = '0.1.1'
description = 'My friendly library base class - for Python.'
keywords = [
'library',
'base',
'baseclass',
'logger',
'loggable',
]
packages = setupextras.get_packages()
data_files = setupextras.get_data_files(['*.*'], os.path.join(name, 'tests', '__fixtures__'))
requirements = setupextras.get_requirements()
readme = setupextras.get_readme()
config = {
'name': name,
'version': version,
'description': (description),
'keywords': keywords,
'author': 'Jonas Grimfelt',
'author_email': '[email protected]',
'url': 'https://github.com/grimen/python-{name}'.format(name = name),
'download_url': 'https://github.com/grimen/python-{name}'.format(name = name),
'project_urls': {
'repository': 'https://github.com/grimen/python-{name}'.format(name = name),
'bugs': 'https://github.com/grimen/python-{name}/issues'.format(name = name),
},
'license': 'MIT',
'long_description': readme,
'long_description_content_type': 'text/markdown',
'classifiers': [
'Topic :: Software Development :: Libraries',
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
'packages': packages,
'package_dir': {
name: name,
},
'package_data': {
'': [
'MIT-LICENSE',
'README.md',
],
name: [
'*.*',
],
},
'data_files': data_files,
'include_package_data': True,
'zip_safe': True,
'install_requires': requirements,
'setup_requires': [
'setuptools_git >= 1.2',
],
}
setuptools.setup(**config)