-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
86 lines (71 loc) · 2.47 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from __future__ import annotations
import re
import os.path
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path, encoding="utf-8") as fp:
return fp.read()
PROJECT_NAME = "rewe_dl"
# get version without importing the package
VERSION = re.search(
r'__version__\s*=\s*"([^"]+)"',
read("../version.py"),
).group(1)
PACKAGES = [
f"{PROJECT_NAME}",
f"{PROJECT_NAME}.postprocessor",
f"{PROJECT_NAME}.examples",
]
DESCRIPTION = (
"Command-line program to interact with shopping APIs and save"
"data in several formats such as sqlite3, json, jsonl or custom"
)
LONG_DESCRIPTION = DESCRIPTION
def build_setuptools():
from setuptools import setup
setup(
name=PROJECT_NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
url="https://github.com/allendema/rewe_dl",
download_url="https://github.com/allendema/rewe_dl/releases/latest",
author="Allen Dema",
author_email="",
maintainer="Allen Dema",
maintainer_email="",
license="",
python_requires=">=3.6",
install_requires=[
"httpx",
],
extras_require={},
packages=PACKAGES,
# data_files=FILES,
test_suite="test",
keywords="sql price downloader api shopping products inflation tracker",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Multimedia :: Graphics",
"Topic :: Utilities",
],
)
build_setuptools()