forked from octodns/octodns-cloudflare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·58 lines (49 loc) · 1.78 KB
/
setup.py
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env python
from setuptools import find_packages, setup
def descriptions():
with open('README.md') as fh:
ret = fh.read()
first = ret.split('\n', 1)[0].replace('#', '')
return first, ret
def version():
with open('octodns_cloudflare/__init__.py') as fh:
for line in fh:
if line.startswith('__version__'):
return line.split("'")[1]
return 'unknown'
description, long_description = descriptions()
tests_require = ('pytest', 'pytest-cov', 'pytest-network', 'requests_mock')
setup(
author='Ross McFarland',
author_email='[email protected]',
description=description,
extras_require={
'dev': tests_require
+ (
# we need to manually/explicitely bump major versions as they're
# likely to result in formatting changes that should happen in their
# own PR. This will basically happen yearly
# https://black.readthedocs.io/en/stable/the_black_code_style/index.html#stability-policy
'black>=24.3.0,<25.0.0',
'build>=0.7.0',
# docutils 0.21.x bumped to >=3.9 and 3.8 is still active. we'll
# have to clamp it down until we remove 3.8
'docutils<=0.20.1',
'isort>=5.11.5',
'pyflakes>=2.2.0',
'readme_renderer[md]>=26.0',
'twine>=3.4.2',
),
'test': tests_require,
},
install_requires=('octodns>=0.9.20', 'requests>=2.27.0'),
license='MIT',
long_description=long_description,
long_description_content_type='text/markdown',
name='octodns-cloudflare',
packages=find_packages(),
python_requires='>=3.6',
tests_require=tests_require,
url='https://github.com/octodns/octodns-cloudflare',
version=version(),
)