- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
37 lines (30 loc) · 1.09 KB
/
Copy pathsetup.py
File metadata and controls
37 lines (30 loc) · 1.09 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
"""
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.
"""
fromsetuptoolsimportsetup
importre
withopen('requirements.txt') asf:
requirements=f.read().splitlines()
withopen('python_chakra/__init__.py') asf:
version=re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
f.read(), re.MULTILINE).group(1)
ifnotversion:
raiseRuntimeError('version is not set')
withopen('readme.md') asf:
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')