-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
37 lines (30 loc) · 1.09 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
"""
Parts of this file were taken from the discord.py project
(https://github.com/Rapptz/discord.py)
which have been permitted for use under the MIT license.
"""
from setuptools import setup
import re
with open('requirements.txt') as f:
requirements = f.read().splitlines()
with open('python_chakra/__init__.py') as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
f.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('version is not set')
with open('readme.md') as f:
readme = f.read()
repo = "https://github.com/MadProbe/PythonChakra"
setup(name='python-chakra',
author='MadProbe',
url=repo,
project_urls={"Issue tracker": f"{repo}/issues"},
version=version,
packages=['python_chakra', 'python_chakra.utils'],
license='MIT',
long_description=readme,
long_description_content_type="text/x-markdown",
description='Python wrapper for ChakraCore',
include_package_data=True,
install_requires=requirements,
python_requires='>=3.7.0')