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/.gitignore b/.gitignore index be9fa10..fae2747 100644 --- a/.gitignore +++ b/.gitignore @@ -4,8 +4,9 @@ /*.egg-info /dist/ /venv/ +/.venv/ /.vscode/ /build/ .python-version .coverage -coverage.xml \ No newline at end of file +coverage.xml 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..19d6cc9 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,46 @@ +[build-system] +requires = ["hatchling >= 1.26"] +build-backend = "hatchling.build" + +[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", + "hatchling >= 1.26" +] +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/requirements.txt b/requirements.txt index 2749581..508eb50 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,7 @@ 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<81 +hatchling >= 1.26 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 ccaf379..2778cf1 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', @@ -25,12 +25,11 @@ 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', 'Intended Audience :: Developers', - 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 3',