-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
141 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,5 @@ zookeeper/ | |
.tox | ||
/.settings | ||
/.metadata | ||
|
||
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
global-exclude *pyc *pyo __pycache__ | ||
# Git files | ||
exclude .gitignore | ||
# CI/CD files | ||
exclude .travis.yml.bak | ||
exclude .clog.toml | ||
prune .github | ||
|
||
exclude Makefile | ||
exclude run_failure.py | ||
|
||
include CHANGES.md | ||
include CONTRIBUTING.md | ||
include README.md | ||
include LICENSE | ||
include MANIFEST.in | ||
exclude .gitignore | ||
exclude .travis.yml | ||
exclude Makefile | ||
exclude run_failure.py | ||
|
||
include tox.ini | ||
|
||
recursive-include kazoo * | ||
recursive-include docs * | ||
global-exclude *pyc *pyo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[build-system] | ||
build-backend = 'setuptools.build_meta' | ||
requires = [ | ||
'setuptools >= 46.4.0', | ||
'wheel' | ||
] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,95 @@ | ||
[aliases] | ||
clean_egg_info = egg_info -Db '' | ||
release = clean_egg_info sdist bdist_wheel | ||
[metadata] | ||
name = kazoo | ||
version = attr: kazoo.version.__version__ | ||
author = Kazoo team | ||
author_email = python-zk@googlegroups.com | ||
url = https://kazoo.readthedocs.io | ||
description = "Higher Level Zookeeper Client" | ||
long_description = file: README.md, CHANGES.md | ||
long_description_content_type = text/markdown | ||
license = Apache 2.0 | ||
license_file = LICENSE | ||
platform = any | ||
keywords = zookeeper, lock, leader, configuration | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
License :: OSI Approved :: Apache Software License | ||
Intended Audience :: Developers | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: Implementation :: CPython | ||
Programming Language :: Python :: Implementation :: PyPy | ||
Topic :: Communications | ||
Topic :: System :: Distributed Computing | ||
Topic :: System :: Networking | ||
project_urls = | ||
Documentation = https://kazoo.readthedocs.io | ||
Changelog = https://github.com/python-zk/kazoo/releases | ||
Source = https://github.com/python-zk/kazoo | ||
Bug Tracker = https://github.com/python-zk/kazoo/issues | ||
|
||
[bdist_wheel] | ||
universal = 1 | ||
|
||
[options] | ||
zip_safe = false | ||
include_package_data = true | ||
packages = find: | ||
install_requires = | ||
six | ||
selectors2>=2.0.2 ; python_version < "3.4.0" | ||
|
||
[aliases] | ||
release = sdist bdist_wheel | ||
|
||
[egg_info] | ||
tag_build = dev | ||
|
||
[metadata] | ||
license_file = LICENSE | ||
[bdist_wheel] | ||
universal = true | ||
|
||
[options.extras_require] | ||
dev = | ||
flake8 | ||
|
||
test = | ||
mock | ||
objgraph | ||
pytest | ||
pytest-cov | ||
gevent>=1.2 ; implementation_name!='pypy' | ||
eventlet>=0.17.1 ; implementation_name!='pypy' | ||
|
||
eventlet = | ||
eventlet>=0.17.1 | ||
|
||
gevent = | ||
gevent>=1.2 | ||
|
||
sasl = | ||
pure_sasl>=0.5.1 | ||
|
||
docs = | ||
Sphinx>=1.2.2 | ||
|
||
alldeps = | ||
%(dev)s | ||
%(eventlet)s | ||
%(gevent)s | ||
%(sasl)s | ||
%(docs)s | ||
|
||
[tool:pytest] | ||
addopts = -ra -v | ||
|
||
[flake8] | ||
builtins = _ | ||
exclude = | ||
.git, | ||
__pycache__, | ||
.venv/,venv/, | ||
.tox/, | ||
build/,dist/,*egg, | ||
docs/conf.py, | ||
zookeeper/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,3 @@ | ||
import os | ||
import re | ||
from setuptools import setup, find_packages | ||
import sys | ||
import setuptools | ||
|
||
here = os.path.abspath(os.path.dirname(__file__)) | ||
with open(os.path.join(here, 'README.md')) as f: | ||
README = f.read() | ||
with open(os.path.join(here, 'CHANGES.md')) as f: | ||
CHANGES = f.read() | ||
version = '' | ||
with open(os.path.join(here, 'kazoo', 'version.py')) as f: | ||
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', | ||
f.read(), re.MULTILINE).group(1) | ||
|
||
PYPY = getattr(sys, 'pypy_version_info', False) and True or False | ||
|
||
install_requires = ['six', 'selectors2>=2.0.2; python_version < "3.4.0"'] | ||
|
||
tests_require = install_requires + [ | ||
'mock', | ||
'pytest', | ||
'pytest-cov', | ||
'flake8', | ||
'objgraph', | ||
] | ||
|
||
if not PYPY: | ||
tests_require += [ | ||
'gevent>=1.2', | ||
'eventlet>=0.17.1', | ||
] | ||
|
||
on_rtd = os.environ.get('READTHEDOCS', None) == 'True' | ||
if on_rtd: | ||
install_requires += [ | ||
'gevent>=1.2', | ||
'eventlet>=0.17.1', | ||
'pure-sasl', | ||
] | ||
|
||
setup( | ||
name='kazoo', | ||
version=version, | ||
description='Higher Level Zookeeper Client', | ||
long_description=README + '\n\n' + CHANGES, | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Intended Audience :: Developers", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 2", | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.4", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Topic :: Communications", | ||
"Topic :: System :: Distributed Computing", | ||
"Topic :: System :: Networking", | ||
], | ||
keywords='zookeeper lock leader configuration', | ||
author="Kazoo team", | ||
author_email="python-zk@googlegroups.com", | ||
url="https://kazoo.readthedocs.io", | ||
license="Apache 2.0", | ||
packages=find_packages(), | ||
test_suite="kazoo.tests", | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=install_requires, | ||
tests_require=tests_require, | ||
extras_require={ | ||
'test': tests_require, | ||
'sasl': ['pure-sasl==0.5.1'], | ||
}, | ||
long_description_content_type="text/markdown", | ||
) | ||
setuptools.setup() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,50 @@ | ||
[tox] | ||
minversion = 3.7 | ||
skipsdist = True | ||
minversion = 3.24.1 | ||
requires= | ||
virtualenv>=20.7.2 | ||
tox-wheel>=0.6.0 | ||
skip_missing_interpreters=True | ||
envlist = | ||
pep8, | ||
{py37,py38,py39,pypy3} | ||
{gevent,eventlet,sasl,docs}, | ||
pypy3 | ||
isolated_build = true | ||
|
||
[testenv] | ||
usedevelop = True | ||
install_command = pip install {opts} {packages} | ||
wheel = True | ||
wheel_build_env = build | ||
install_command = pip install -c{toxinidir}/constraints.txt {opts} {packages} | ||
passenv = | ||
CI | ||
TOX_* | ||
CI_* | ||
ZOOKEEPER_* | ||
setenv = | ||
VIRTUAL_ENV={envdir} | ||
pypy3: PYPY=1 | ||
extras = | ||
test | ||
docs: docs | ||
gevent: gevent | ||
eventlet: eventlet | ||
sasl: sasl | ||
deps = | ||
-c{toxinidir}/constraints.txt | ||
-r{toxinidir}/requirements.txt | ||
-r{toxinidir}/requirements_test.txt | ||
docs: -r{toxinidir}/requirements_sphinx.txt | ||
gevent: -r{toxinidir}/requirements_gevent.txt | ||
eventlet: -r{toxinidir}/requirements_eventlet.txt | ||
sasl: -r{toxinidir}/requirements_sasl.txt | ||
sasl: kerberos | ||
codecov: codecov | ||
commands = | ||
sasl: {toxinidir}/init_krb5.sh {envtmpdir}/kerberos \ | ||
/{toxinidir}/ensure-zookeeper-env.sh \ | ||
pytest {posargs: -ra -v --cov-report=xml --cov=kazoo kazoo/tests} | ||
|
||
|
||
[testenv:build] | ||
|
||
[testenv:codecov] | ||
commands = - codecov -e TOX_VENV,ZOOKEEPER_VERSION | ||
|
||
[testenv:pep8] | ||
commands = flake8 {posargs} | ||
|
||
extra = alldeps | ||
deps = | ||
flake8==3.7.9 | ||
usedevelop = True | ||
commands = flake8 {posargs} {toxinidir}/kazoo | ||
|
||
[flake8] | ||
builtins = _ | ||
exclude = .venv,.tox,dist,doc,*egg,.git,build,tools,local,docs,zookeeper |