-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
44 lines (39 loc) · 1.26 KB
/
setup.py
File metadata and controls
44 lines (39 loc) · 1.26 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
from setuptools import setup, find_packages
import json
with open('README.md', 'r', encoding='utf-8') as fh:
long_description = fh.read()
with open('manifest.json', 'r', encoding='utf-8') as file:
data = json.load(file)
SKILL_NAME = data['name']
VERSION = data['version']
DESCRIPTION = data.get(
'description',
'Raya SDK - Unlimited Robotics Software Development Kit'
)
AUTOR_NAME= data.get('name','Unlimited Robotics')
AUTOR_EMAIL= data.get('email','camilo@unlimited-robotics.com')
URL= data['repository']['url']
deps = data.get('dependencies', [])
skills = deps.get('skills', [])
SKILLS = []
for skill in skills:
name = skill.get('name', '')
version = skill.get('version', '')
SKILLS.append(f'{name} {version}')
setup(
name=SKILL_NAME,
version=VERSION,
packages=find_packages(where='skills'),
package_dir={'': 'skills'},
license='MIT',
description=DESCRIPTION,
long_description=long_description,
long_description_content_type="text/markdown",
author=AUTOR_NAME,
author_email=AUTOR_EMAIL,
url=URL,
python_requires=">=3.8",
download_url='',
keywords=['skills', 'unlimited-robotics', 'gary'],
install_requires=SKILLS
)