-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (48 loc) · 1.72 KB
/
setup.py
File metadata and controls
56 lines (48 loc) · 1.72 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
# Copyright (c) 2022 PicsArt, Inc.
# All rights reserved. Use of this source code is governed by a
# MIT-style license that can be found in the LICENSE file.
import glob
import os
from setuptools import setup, find_packages
entry_point = (
"cppbind = cppbind.runner:run_package"
)
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
with open("src/requirements.txt", "r") as f:
requires = []
for line in f:
req = line.split("#", 1)[0].strip()
if req and not req.startswith("--"):
requires.append(req)
setup(
name='cppbind',
version="0.0.1",
description="C++ bindings generator for various languages",
author="Picsart",
author_email="info@cppbind.io",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/PicsArt/cppbind",
project_urls={
"Documentation": "https://cppbind.io/",
},
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: C++",
"Programming Language :: Kotlin",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Code Generators",
],
packages=find_packages('src/.', exclude=['test*']),
package_dir={'': 'src'},
# this is hack need to find proper way
package_data={'cppbind': [os.path.relpath(f, 'src/cppbind/')
for f in glob.glob('src/cppbind/config/**/*', recursive=True)]},
entry_points={"console_scripts": [entry_point]},
install_requires=requires,
python_requires='>=3.8',
)