-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (48 loc) · 1.83 KB
/
setup.py
File metadata and controls
53 lines (48 loc) · 1.83 KB
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
from setuptools import setup, find_packages
import codecs
import os
import re
here = os.path.abspath(os.path.dirname(__file__))
# Read version from _version.py
def read_version():
version_file = os.path.join(here, "etsy_python", "_version.py")
with open(version_file, "r") as f:
version_content = f.read()
version_match = re.search(r'__version__\s*=\s*["\']([^"\']+)["\']', version_content)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
with codecs.open(os.path.join(here, "README.md"), encoding="utf-8") as fh:
long_description = "\n" + fh.read()
VERSION = read_version()
DESCRIPTION = "Etsy API Client Library for Python"
# Setting up
setup(
name="etsy-python",
version=VERSION,
author="Amit Ray",
author_email="mail@amitray.dev",
description=DESCRIPTION,
long_description_content_type="text/markdown",
long_description=long_description,
packages=find_packages(exclude=["tests", "tests.*"]),
python_requires=">=3.10",
install_requires=["requests", "requests-oauthlib"],
keywords=["python", "etsy", "api"],
classifiers=[
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: Unix",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
],
project_urls={
"Documentation": "https://github.com/amitray007/etsy-python-sdk/blob/master/README.md",
"Source code": "https://github.com/amitray007/etsy-python-sdk",
"Issues": "https://github.com/amitray007/etsy-python-sdk/issues",
},
)