diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 639e94e..e62c2d8 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,7 +10,7 @@ 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 @@ -18,10 +18,10 @@ jobs: uses: actions/setup-python@v1 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/Dockerfile b/Dockerfile deleted file mode 100644 index 2751c5f..0000000 --- a/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM python:3.7 - -# working directory -WORKDIR /usr/src/app - -# copy requirement file to working directory -COPY . . - -RUN pip install --no-cache-dir -r requirements_dev.txt diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..170be77 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,33 @@ +[build-system] +requires = ['setuptools==68.0.0'] +build-backend = 'setuptools.build_meta' + +[project] +name = 'fazy' +version = '0.0.9' +authors = [ + { name='Evgeniy Blinov', email='zheni-b@yandex.ru' }, +] +description = 'Lazy f-strings for everyone' +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', + 'Programming Language :: Python :: 3.12', + 'License :: OSI Approved :: MIT License', + 'Intended Audience :: Developers', + 'Topic :: Software Development :: Libraries', +] + +[project.urls] +'Source' = 'https://github.com/pomponchik/fazy' +'Tracker' = 'https://github.com/pomponchik/fazy/issues' diff --git a/requirements_dev.txt b/requirements_dev.txt index 7f71ff4..abe3089 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -2,5 +2,6 @@ pytest==7.2.2 coverage==7.2.2 wheel==0.40.0 twine==4.0.2 +build==0.9.0 ruff==0.0.290 mypy==1.4.1 diff --git a/setup.py b/setup.py deleted file mode 100644 index 28a67bb..0000000 --- a/setup.py +++ /dev/null @@ -1,37 +0,0 @@ -import sys -from setuptools import setup, find_packages - -with open('README.md', 'r', encoding='utf8') as readme_file: - readme = readme_file.read() - -requirements = [] -if sys.version_info < (3, 8): - requirements.append('typing-extensions==4.1.0') - -setup( - name='fazy', - version='0.0.8', - author='Evgeniy Blinov', - author_email='zheni-b@yandex.ru', - description='Lazy f-strings for everyone', - long_description=readme, - long_description_content_type='text/markdown', - url='https://github.com/pomponchik/fazy', - 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', - ], -)