From 251e03aea6d09bc899790932827ce20d7bae7810 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Tue, 21 May 2024 18:24:07 +0300 Subject: [PATCH 1/7] update python versions test matrix --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index be9fa10..875413b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ /*.egg-info /dist/ /venv/ +/.venv/ /.vscode/ /build/ .python-version From 8ad6e992a3cf4aab359edf3a452bc777bb7d1c74 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Thu, 17 Jul 2025 15:03:02 +0300 Subject: [PATCH 2/7] ignore .venv --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 875413b..fae2747 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,4 @@ /build/ .python-version .coverage -coverage.xml \ No newline at end of file +coverage.xml From 3d774b63f566162ec2fdfdd7e39ebcc4b877ced8 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Wed, 1 Oct 2025 14:01:31 +0300 Subject: [PATCH 3/7] update github actions setup & dependencies --- .github/workflows/ci.yml | 12 ++---------- requirements.txt | 4 ++-- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e33c6c..491351b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,19 +23,11 @@ jobs: - python-version: '3.12' coverage: 1 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - - name: Cache pip - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - ${{ runner.os }}- - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/requirements.txt b/requirements.txt index 2749581..d916e53 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ multidimensional-urlencode==0.0.4 nose==1.3.7 -requests==2.32.1 +requests==2.32.4 coverage==4.5.4 pook==1.3.0 -setuptools==70.0.0 +setuptools==78.1.1 From 9054b93480eca6065fbc5579729b456faf7e9ece Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Wed, 1 Oct 2025 14:03:51 +0300 Subject: [PATCH 4/7] fix req version --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index d916e53..d73e16e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,4 @@ nose==1.3.7 requests==2.32.4 coverage==4.5.4 pook==1.3.0 -setuptools==78.1.1 +setuptools==74.1.2 From 15eb05b4edd253bcfb56f5e5bb5f9f13268e10fa Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Wed, 1 Oct 2025 14:07:35 +0300 Subject: [PATCH 5/7] update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ccaf379..877513f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ def read(filename): setup( name='retailcrm', - version='5.1.2', + version='5.2.0', description='RetailCRM API client', long_description=read('README'), url='https://github.com/retailcrm/api-client-python', From 0f9cc5a7403c3eaa8ababe4a0aa7d8fb843851bf Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Wed, 1 Oct 2025 14:36:16 +0300 Subject: [PATCH 6/7] update build system --- LICENSE | 2 +- pyproject.toml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ setup.cfg | 4 ++++ setup.py | 1 - 4 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 pyproject.toml create mode 100644 setup.cfg diff --git a/LICENSE b/LICENSE index ecbb4f7..2177dd0 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015-2021 RetailDriver LLC +Copyright (c) 2015-2025 RetailDriver LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..7696c58 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,46 @@ +[build-system] +requires = ["setuptools >= 74.1.2"] +build-backend = "setuptools.build_meta" + +[project] +name = "retailcrm" +version = "5.2.0" +authors = [ + { name="Alex Lushpai", email="lushpai@gmail.com" }, +] +maintainers = [ + { name="Alex Lushpai", email="lushpai@gmail.com" }, +] +description = "RetailCRM API client" +keywords = ["api", "ecom", "retailcrm"] +readme = "README.md" +requires-python = ">=3.8" +dependencies = [ + "multidimensional-urlencode==0.0.4", + "nose==1.3.7", + "requests==2.32.4", + "coverage==4.5.4", + "pook==1.3.0", + "setuptools==74.1.2" +] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Other Environment", + "Intended Audience :: Developers", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "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 :: 3 :: Only", + "Topic :: Software Development :: Libraries :: Python Modules", +] +license = "MIT" +license-files = ["LICEN[CS]E*"] + +[project.urls] +Homepage = "https://github.com/retailcrm/api-client-python" +Issues = "https://github.com/retailcrm/api-client-python/issues" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..d8e9a6f --- /dev/null +++ b/setup.cfg @@ -0,0 +1,4 @@ +[metadata] +# This includes the license file(s) in the wheel. +# https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file +license_files = LICENSE \ No newline at end of file diff --git a/setup.py b/setup.py index 877513f..f607aba 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,6 @@ def read(filename): 'Development Status :: 5 - Production/Stable', 'Environment :: Other Environment', 'Intended Audience :: Developers', - 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 3', From 0d6c7a27664feb35526972b0fff0ae346bafb344 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Wed, 1 Oct 2025 14:55:20 +0300 Subject: [PATCH 7/7] update build configuration --- pyproject.toml | 6 +++--- requirements.txt | 3 ++- setup.py | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7696c58..19d6cc9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools >= 74.1.2"] -build-backend = "setuptools.build_meta" +requires = ["hatchling >= 1.26"] +build-backend = "hatchling.build" [project] name = "retailcrm" @@ -21,7 +21,7 @@ dependencies = [ "requests==2.32.4", "coverage==4.5.4", "pook==1.3.0", - "setuptools==74.1.2" + "hatchling >= 1.26" ] classifiers = [ "Development Status :: 5 - Production/Stable", diff --git a/requirements.txt b/requirements.txt index d73e16e..508eb50 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,5 @@ nose==1.3.7 requests==2.32.4 coverage==4.5.4 pook==1.3.0 -setuptools==74.1.2 +setuptools<81 +hatchling >= 1.26 diff --git a/setup.py b/setup.py index f607aba..2778cf1 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ def read(filename): license='MIT', packages=['retailcrm', 'retailcrm/versions'], package_data={}, - install_requires=['requests', 'multidimensional_urlencode', 'nose', 'coverage', 'pook', 'setuptools'], + install_requires=['requests', 'multidimensional_urlencode', 'nose', 'coverage', 'pook', 'setuptools', 'hatchling'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Other Environment',