-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·73 lines (59 loc) · 2.22 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from os import walk
from os.path import abspath, dirname, join as jp
from setuptools import setup, find_packages
import wheel_axle.bdist_axle
def get_data_files(current_path=None, ignore_root=False):
current_path = current_path or abspath(dirname(__file__))
for root, dirs, files in walk(current_path, followlinks=True):
if ignore_root and current_path == root:
continue
path_prefix = root[len(current_path) + 1:]
yield path_prefix, [jp(root, f) for f in files]
def get_files(current_path=None, ignore_root=False):
current_path = current_path or abspath(dirname(__file__))
for root, dirs, files in walk(current_path, followlinks=True):
if ignore_root and current_path == root:
continue
yield from (jp(root, f) for f in files)
name = "test-axle-1"
setup(
name=name,
version='0.0.1',
description='Test Axle 1',
long_description='Test Axle 1 Long Description\n',
long_description_content_type='text/markdown',
classifiers=[
'Programming Language :: Python',
'Operating System :: POSIX :: Linux',
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Topic :: Software Development :: Build Tools',
],
keywords='',
author='Arcadiy Ivanov',
author_email='[email protected]',
maintainer='Arcadiy Ivanov',
maintainer_email='[email protected]',
license='Apache License, Version 2.0',
url='https://karellen.co',
project_urls={
'Bug Tracker': 'https://github.com/karellen/axle-runtime/issues',
'Documentation': 'https://github.com/karellen/axle-runtime',
'Source Code': 'https://github.com/karellen/axle-runtime'
},
scripts=list(get_files("scripts")),
packages=find_packages("src"),
package_dir={"": "src"},
data_files=list(get_data_files("data")),
headers=list(get_files("headers")),
package_data={"": ["*.so"]},
install_requires=[],
dependency_links=[],
zip_safe=False,
obsoletes=[],
cmdclass={"bdist_wheel": wheel_axle.bdist_axle.BdistAxle}
)