-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·54 lines (42 loc) · 1.35 KB
/
setup.py
File metadata and controls
executable file
·54 lines (42 loc) · 1.35 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
#!/usr/bin/env python3
import os
import sys
import pipcl
#print( f'{__file__}: sys.arg={sys.argv}')
def build():
return [
'walkbuild/walk.py',
'walkbuild/walkfg.py',
('README.md', '$dist-info/README.md'),
]
def sdist():
return pipcl.git_items( os.path.abspath( f'{__file__}/..'))
with open( 'README.md') as f:
description = f.read()
p = pipcl.Package(
name='walkbuild',
version='1',
summary='Command optimiser - run commands only if they might change generated files.',
description=description,
keywords='walk,make,python,build',
home_page='https://github.com/cgdae/walk',
author='Julian Smith',
author_email='jules@op59.net',
license='SPDX-License-Identifier: GPL-3.0-only',
classifier = [
'Programming Language :: Python',
'Topic :: Software Development :: Build Tools',
],
project_url = [
'Documentation, https://walk.readthedocs.io/',
],
fn_build=build,
fn_sdist=sdist,
description_content_type='text/markdown',
tag_python = 'py3',
tag_platform = 'any' # We are a pure python package.
)
build_wheel = p.build_wheel
build_sdist = p.build_sdist
if __name__ == '__main__':
p.handle_argv(sys.argv)