Skip to content

Commit

Permalink
setup.py template
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Oct 11, 2022
1 parent 24ec42d commit 599dea4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
from setuptools import setup
from os import path, walk

URL = "https://github.com/OpenVoiceOS/skill-ovos-weather"
SKILL_CLAZZ = "WeatherSkill" # needs to match __init__.py class name
Expand All @@ -20,6 +21,9 @@ def get_requirements(requirements_filename: str):
requirements = r.readlines()
requirements = [r.strip() for r in requirements if r.strip()
and not r.strip().startswith("#")]
if 'MYCROFT_LOOSE_REQUIREMENTS' in os.environ:
print('USING LOOSE REQUIREMENTS!')
requirements = [r.replace('==', '>=').replace('~=', '>=') for r in requirements]
return requirements


Expand Down

0 comments on commit 599dea4

Please sign in to comment.