Skip to content

Commit 0095a3c

Browse files
authored
Update dependencies & build system, fix ci configuration (#42)
* update python versions test matrix * ignore .venv * update github actions setup & dependencies * fix req version * update setup.py * update build system * update build configuration
1 parent cea8522 commit 0095a3c

File tree

7 files changed

+60
-17
lines changed

7 files changed

+60
-17
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,11 @@ jobs:
2323
- python-version: '3.12'
2424
coverage: 1
2525
steps:
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v5
2727
- name: Set up Python ${{ matrix.python-version }}
28-
uses: actions/setup-python@v2
28+
uses: actions/setup-python@v6
2929
with:
3030
python-version: ${{ matrix.python-version }}
31-
- name: Cache pip
32-
uses: actions/cache@v2
33-
with:
34-
path: ~/.cache/pip
35-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
36-
restore-keys: |
37-
${{ runner.os }}-pip-
38-
${{ runner.os }}-
3931
- name: Install dependencies
4032
run: |
4133
python -m pip install --upgrade pip

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
/*.egg-info
55
/dist/
66
/venv/
7+
/.venv/
78
/.vscode/
89
/build/
910
.python-version
1011
.coverage
11-
coverage.xml
12+
coverage.xml

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015-2021 RetailDriver LLC
3+
Copyright (c) 2015-2025 RetailDriver LLC
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

pyproject.toml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
[build-system]
2+
requires = ["hatchling >= 1.26"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "retailcrm"
7+
version = "5.2.0"
8+
authors = [
9+
{ name="Alex Lushpai", email="lushpai@gmail.com" },
10+
]
11+
maintainers = [
12+
{ name="Alex Lushpai", email="lushpai@gmail.com" },
13+
]
14+
description = "RetailCRM API client"
15+
keywords = ["api", "ecom", "retailcrm"]
16+
readme = "README.md"
17+
requires-python = ">=3.8"
18+
dependencies = [
19+
"multidimensional-urlencode==0.0.4",
20+
"nose==1.3.7",
21+
"requests==2.32.4",
22+
"coverage==4.5.4",
23+
"pook==1.3.0",
24+
"hatchling >= 1.26"
25+
]
26+
classifiers = [
27+
"Development Status :: 5 - Production/Stable",
28+
"Environment :: Other Environment",
29+
"Intended Audience :: Developers",
30+
"Operating System :: OS Independent",
31+
"Programming Language :: Python",
32+
"Programming Language :: Python :: 3",
33+
"Programming Language :: Python :: 3.8",
34+
"Programming Language :: Python :: 3.9",
35+
"Programming Language :: Python :: 3.10",
36+
"Programming Language :: Python :: 3.11",
37+
"Programming Language :: Python :: 3.12",
38+
"Programming Language :: Python :: 3 :: Only",
39+
"Topic :: Software Development :: Libraries :: Python Modules",
40+
]
41+
license = "MIT"
42+
license-files = ["LICEN[CS]E*"]
43+
44+
[project.urls]
45+
Homepage = "https://github.com/retailcrm/api-client-python"
46+
Issues = "https://github.com/retailcrm/api-client-python/issues"

requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
multidimensional-urlencode==0.0.4
22
nose==1.3.7
3-
requests==2.32.1
3+
requests==2.32.4
44
coverage==4.5.4
55
pook==1.3.0
6-
setuptools==70.0.0
6+
setuptools<81
7+
hatchling >= 1.26

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[metadata]
2+
# This includes the license file(s) in the wheel.
3+
# https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file
4+
license_files = LICENSE

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def read(filename):
1515

1616
setup(
1717
name='retailcrm',
18-
version='5.1.2',
18+
version='5.2.0',
1919
description='RetailCRM API client',
2020
long_description=read('README'),
2121
url='https://github.com/retailcrm/api-client-python',
@@ -25,12 +25,11 @@ def read(filename):
2525
license='MIT',
2626
packages=['retailcrm', 'retailcrm/versions'],
2727
package_data={},
28-
install_requires=['requests', 'multidimensional_urlencode', 'nose', 'coverage', 'pook', 'setuptools'],
28+
install_requires=['requests', 'multidimensional_urlencode', 'nose', 'coverage', 'pook', 'setuptools', 'hatchling'],
2929
classifiers=[
3030
'Development Status :: 5 - Production/Stable',
3131
'Environment :: Other Environment',
3232
'Intended Audience :: Developers',
33-
'License :: OSI Approved :: MIT License',
3433
'Operating System :: OS Independent',
3534
'Programming Language :: Python',
3635
'Programming Language :: Python :: 3',

0 commit comments

Comments
 (0)