Skip to content

Commit

Permalink
Merge pull request #2706 from neirbowj/scandir_py35
Browse files Browse the repository at this point in the history
Depend on third-party scandir only for Python < 3.5
  • Loading branch information
deniszh committed May 31, 2021
2 parents cd5bfdf + 6592c28 commit 357bfdd
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/install.rst
Expand Up @@ -38,7 +38,7 @@ Basic Graphite requirements:
* `Django`_ 1.8 - 2.2 (for Python3 - 1.11 and newer), 1.11.19 or newer is recommended
* `django-tagging`_ 0.4.6 (not `django-taggit` yet)
* `pytz`_
* `scandir`_
* `scandir`_ (for Python older than 3.5)
* `fontconfig`_ and at least one font package (a system package usually)
* A WSGI server and web server. Popular choices are:

Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Expand Up @@ -5,4 +5,4 @@ sphinx
sphinx_rtd_theme
pytz
git+git://github.com/graphite-project/whisper.git#egg=whisper
scandir
scandir;python_version<"3.5"
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -49,6 +49,6 @@ git+git://github.com/graphite-project/whisper.git#egg=whisper
# Ceres is optional
# git+git://github.com/graphite-project/ceres.git#egg=ceres
whitenoise==4.1.4
scandir
scandir;python_version<"3.5"
urllib3
six
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -10,7 +10,7 @@ requires = Django => 1.8
python-hashlib
pytz
pyparsing
scandir
scandir;python_version<"3.5"

post-install = distro/redhat/misc/postinstall

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -118,7 +118,8 @@ def read(fname):
scripts=glob('bin/*'),
data_files=list(webapp_content.items()) + storage_dirs + conf_files + examples,
install_requires=['Django>=1.8,<3.1', 'django-tagging==0.4.3', 'pytz',
'pyparsing', 'cairocffi', 'urllib3', 'scandir', 'six'],
'pyparsing', 'cairocffi', 'urllib3',
'scandir;python_version<"3.5"', 'six'],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Expand Up @@ -40,7 +40,7 @@ deps =
django111: Django>=1.11,<1.11.99
django22: Django>=2.2,<2.2.99
django30: Django>=3.0,<3.0.99
scandir
scandir; python_version<"3.5"
urllib3
redis
rrdtool
Expand All @@ -62,7 +62,6 @@ deps =
pyparsing
Sphinx<1.4
sphinx_rtd_theme
scandir
urllib3
commands =
mkdir -p {envsitepackagesdir}/../storage/ceres
Expand Down

0 comments on commit 357bfdd

Please sign in to comment.