From 19d1484542c45fc38f32098015ad84bc8a79806b Mon Sep 17 00:00:00 2001 From: Constantine Evans Date: Wed, 27 Dec 2023 10:49:21 -0800 Subject: [PATCH] update build process --- pyproject.toml | 47 ++++++++++++++++++++++++++++++++- setup.cfg | 71 -------------------------------------------------- 2 files changed, 46 insertions(+), 72 deletions(-) delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index 0d52245..d500287 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=46.1.0", "setuptools_scm[toml]>=5", "wheel"] +requires = ["setuptools>=60", "setuptools_scm[toml]>=8", "wheel"] build-backend = "setuptools.build_meta" [tool.setuptools_scm] @@ -16,6 +16,51 @@ testpaths = ["tests"] [project] name = "alhambra_mixes" +dynamic = ["version"] +description = "Many-component mix library for molecular programming" +authors = [{name = "Constantine Evans", email="mixes@mb.costi.net"}] +license = { file = "LICENCE.txt" } +classifiers = [ + "Development Status :: 4 - Beta", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "License :: OSI Approved :: BSD License", + "Intended Audience :: Science/Research", + "Topic :: Scientific/Engineering", + "Typing :: Typed"] +dependencies = [ + "attrs >= 22.1", + "numpy", + "pandas", + "openpyxl", + "pint >= 0.20", + "tabulate", + "toml", + "typing_extensions >= 4.2" +] +readme = "README.md" + +[project.optional-dependencies] +docs = [ + "numpydoc", + "matplotlib", + "sphinx-book-theme", + "sphinx-autoapi", + "myst-parser" + ] +testing = [ + "setuptools", + "pytest", + "pytest-cov" +] + + +[tool.setuptools.packages.find] +where = ["src"] + + [tool.black] target_version = ["py39"] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index a039684..0000000 --- a/setup.cfg +++ /dev/null @@ -1,71 +0,0 @@ -[metadata] -name = alhambra_mixes -description = Many-component mix library for molecular programming -author = Constantine Evans -license = BSD 3-Clause -author_email = const@costinet.org -platforms=any - -long_description = file: README.md -long_description_content_type = text/markdown; charset=UTF-8 - -classifiers = - Development Status :: 4 - Beta - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.11 - License :: OSI Approved :: BSD License - Intended Audience :: Science/Research - Topic :: Scientific/Engineering - Typing :: Typed - -[options] -include_package_data = True -zip_safe = True -package_dir = - =src -packages = find_namespace: -install_requires = - attrs >= 22.1 - numpy - pandas - openpyxl - pint >= 0.20 - tabulate - toml - typing_extensions >= 4.2 -python_requires = >=3.8 -setup_requires = - setuptools_scm - wheel - -[options.extras_require] -docs = - numpydoc - matplotlib - sphinx-book-theme - sphinx-autoapi - myst-parser -testing = - setuptools - pytest - pytest-cov - -[options.packages.find] -where = src -exclude = - tests - -[flake8] -max_line_length = 127 -extend_ignore = E203, W503, F403, F405 -exclude = - .tox - build - dist - .eggs - docs/conf.py - -[bdist_wheel] -universal = 1