diff --git a/.github/workflows/tests_and_coverage.yml b/.github/workflows/tests_and_coverage.yml index 1591554..bebadf4 100644 --- a/.github/workflows/tests_and_coverage.yml +++ b/.github/workflows/tests_and_coverage.yml @@ -10,18 +10,18 @@ jobs: strategy: matrix: os: [macos-latest, ubuntu-latest, windows-latest] - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} - name: Install the library shell: bash - run: python setup.py install + run: pip install . - name: Install dependencies shell: bash diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..aa64341 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,33 @@ +[build-system] +requires = ['setuptools==68.0.0'] +build-backend = 'setuptools.build_meta' + +[project] +name = 'cbfa' +version = '0.0.3' +authors = [ + { name='Evgeniy Blinov', email='zheni-b@yandex.ru' }, +] +description = 'Class-based views for the FastAPI' +readme = 'README.md' +requires-python = '>=3.7' +classifiers = [ + 'Operating System :: MacOS :: MacOS X', + 'Operating System :: Microsoft :: Windows', + 'Operating System :: POSIX', + 'Operating System :: POSIX :: Linux', + 'Programming Language :: Python', + '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', + 'License :: OSI Approved :: MIT License', + 'Intended Audience :: Developers', + 'Topic :: Software Development :: Libraries', + 'Framework :: FastAPI', +] + +[project.urls] +'Source' = 'https://github.com/pomponchik/cbfa' +'Tracker' = 'https://github.com/pomponchik/cbfa/issues' diff --git a/requirements_dev.txt b/requirements_dev.txt index df2bb62..b709443 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -2,4 +2,5 @@ pytest==7.4.2 coverage==7.2.7 twine==4.0.2 wheel==0.40.0 +build==0.9.0 ruff==0.0.290 diff --git a/setup.py b/setup.py deleted file mode 100644 index c0c9677..0000000 --- a/setup.py +++ /dev/null @@ -1,36 +0,0 @@ -from setuptools import setup, find_packages - - -with open('README.md', 'r', encoding='utf8') as readme_file: - readme = readme_file.read() - -requirements = [] - -setup( - name='cbfa', - version='0.0.3', - author='Evgeniy Blinov', - author_email='zheni-b@yandex.ru', - description='Class-based views for the FastAPI', - long_description=readme, - long_description_content_type='text/markdown', - url='https://github.com/pomponchik/cbfa', - packages=find_packages(exclude='tests'), - install_requires=requirements, - classifiers=[ - 'Operating System :: MacOS :: MacOS X', - 'Operating System :: Microsoft :: Windows', - 'Operating System :: POSIX', - 'Operating System :: POSIX :: Linux', - 'Programming Language :: Python', - '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', - 'License :: OSI Approved :: MIT License', - 'Intended Audience :: Developers', - 'Topic :: Software Development :: Libraries', - 'Framework :: FastAPI', - ], -)