diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..7e01ab2 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ['setuptools', 'wheel'] +build-backend = 'setuptools.build_meta' diff --git a/setup.cfg b/setup.cfg index 0be943d..295519c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,23 @@ [metadata] +name = simplefractions +version = 1.2.0 +url = "https://github.com/mdickinson/simplefractions" +author = Mark Dickinson +author_email = dickinsm@gmail.com +classifiers = + License :: OSI Approved :: Apache Software License + Operating System :: OS Independent + Programming Language :: Python :: 3 + Topic :: Scientific/Engineering :: Mathematics license_files = LICENSE +description = "Find the simplest fraction for a given float or interval" +long_description = file: README.md +long_description_content_type = text/markdown +keywords = fractions, continued fractions, approximation + +[options] +packages = find: +python_requires = >= 3.6 [flake8] max-line-length = 88 diff --git a/setup.py b/setup.py deleted file mode 100644 index 0c796b2..0000000 --- a/setup.py +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 2020 Mark Dickinson. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import setuptools - -with open("README.md", "r", encoding="utf-8") as readme_file: - long_description = readme_file.read() - - -setuptools.setup( - name="simplefractions", - version="1.1.1", - author="Mark Dickinson", - author_email="dickinsm@gmail.com", - description="Find the simplest fraction for a given float or interval", - long_description=long_description, - long_description_content_type="text/markdown", - url="https://github.com/mdickinson/simplefractions", - packages=setuptools.find_packages(), - classifiers=[ - "License :: OSI Approved :: Apache Software License", - "Operating System :: OS Independent", - "Programming Language :: Python :: 3", - "Topic :: Scientific/Engineering :: Mathematics", - ], - python_requires=">=3.6", -)