-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
35 lines (31 loc) · 959 Bytes
/
setup.py
File metadata and controls
35 lines (31 loc) · 959 Bytes
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# read the contents of your README file
import sys
from pathlib import Path
from setuptools import find_packages, setup
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
if sys.version_info >= (3, 8):
lint_deps = ["flake8", "mypy==1.8.0", "types-requests", "black"]
else:
lint_deps = ["flake8", "mypy==1.4.1", "types-requests", "black"]
test_deps = ["pytest==7.1", "responses==0.22", "httpretty"]
setup(
name="picterra",
version="3.0.0",
description="Picterra API client",
long_description=long_description,
long_description_content_type="text/markdown",
package_dir={"": "src"},
packages=find_packages("src"),
install_requires=[
"requests",
# We use the new `allowed_methods` option
"urllib3>=1.26.0",
],
extras_require={
"test": test_deps,
"lint": lint_deps,
},
)