-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbasic.py
More file actions
61 lines (47 loc) · 1.46 KB
/
Copy pathbasic.py
File metadata and controls
61 lines (47 loc) · 1.46 KB
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
# =========================================
# IMPORTS
# --------------------------------------
import rootpath
rootpath.append()
import os
import json
import setuptools
import setupextras
# =========================================
# PACKAGE
# --------------------------------------
name = 'foo'
version = '1.0.0'
description = 'A foo library.'
keywords = [
'foo',
'bar',
]
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': 'grimen@gmail.com',
'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,
'packages': packages,
'data_files': data_files,
'install_requires': requirements,
}
print('CONFIG {0}'.format(json.dumps(config, indent = 4)))
# =========================================
# MAIN
# --------------------------------------
setuptools.setup(**config)