-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
31 lines (28 loc) · 1.06 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
import re
import setuptools
with open("pystarlark/__init__.py", "r", encoding="utf8") as f:
version = re.search(r'__version__ = "(.*?)"', f.read()).group(1)
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="pystarlark",
version=version,
author="Kevin Chung",
author_email="kchung@nyu.edu",
description="Python bindings for Starlark in Go",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/ColdHeat/pystarlark",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
# I'm not sure what this value is supposed to be
build_golang={"root": "github.com/ColdHeat/pystarlark"},
ext_modules=[setuptools.Extension("pystarlark/starlark", ["starlark.go"])],
setup_requires=["setuptools-golang==2.3.0", "cffi==1.14.3"],
install_requires=["cffi==1.14.3"],
)