Skip to content
This repository was archived by the owner on Oct 8, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
import os
from setuptools import setup, Extension, find_packages

# Uvloop and ujson are notoriously problematic at Windows so they are skipped for Windows users.
# They still can install and benefit from it... it's just that Vibora doesnt make it mandatory.
dependencies = ['pendulum']
if platform.system().lower() == 'linux':
if os.environ.get('VIBORA_UVLOOP', 1) != '0':
dependencies.append('uvloop')
if os.environ.get('VIBORA_UJSON', 1) != '0':
dependencies.append('ujson')

# Loading version
here = pathlib.Path(__file__).parent
Expand All @@ -35,7 +27,20 @@
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6'
],
install_requires=dependencies,
install_requires=['pendulum'],
extras_require={
'dev': [
'flake8',
'pytest',
'tox',
],
'ujson': [
'ujson',
],
'uvloop': [
'uvloop',
],
},
ext_modules=[
Extension(
"vibora.parsers.parser",
Expand Down