From 6e9d2f6b73ae4b3abbbe096f9bf9297edaf21308 Mon Sep 17 00:00:00 2001 From: Andrei Lapets Date: Mon, 6 Nov 2023 20:51:28 -0500 Subject: [PATCH] Update correct package file and fix its location; remove unused package files. --- .../pyproject.standalone.toml | 47 ------------------ pyproject.toml | 48 +++++++++++++++++-- setup.cfg | 28 ----------- setup.py | 7 --- tox.ini | 47 ------------------ 5 files changed, 45 insertions(+), 132 deletions(-) delete mode 100644 prebuilt-wheels/truckle-config-file/pyproject.standalone.toml delete mode 100644 setup.cfg delete mode 100644 setup.py delete mode 100644 tox.ini diff --git a/prebuilt-wheels/truckle-config-file/pyproject.standalone.toml b/prebuilt-wheels/truckle-config-file/pyproject.standalone.toml deleted file mode 100644 index f9b5228..0000000 --- a/prebuilt-wheels/truckle-config-file/pyproject.standalone.toml +++ /dev/null @@ -1,47 +0,0 @@ -[project] -name = "mclbn256" -version = "1.3.0" -description = """\ - Python bindings for the BN254/256 pairing-friendly curve \ - supported by the MCl library.\ - """ -license = {text = "MIT"} -authors = [ - {name = "Wyatt Howe"}, - {email = "Wyatt@nthparty.com"} -] -readme = "README.rst" -requires-python = ">=3.6" - -[project.urls] -Repository = "https://github.com/nthparty/mclbn256" -Documentation = "https://mclbn256.readthedocs.io" - -[project.optional-dependencies] -docs = [ - "toml~=0.10.2", - "sphinx~=4.2.0", - "sphinx-rtd-theme~=1.0.0" -] -test = [ - "pytest~=7.0", - "pytest-cov~=3.0" -] -lint = [ - "pylint~=2.14.0" -] -coveralls = [ - "coveralls~=3.3.1" -] -publish = [ - "twine~=4.0" -] - -[build-system] -requires = [ - "truckle==0.1.4", -] -build-backend = "setuptools.build_meta" - -[tool.pytest.ini_options] -addopts = "--doctest-modules --ignore=docs --cov=mclbn256 --cov-report term-missing" diff --git a/pyproject.toml b/pyproject.toml index 9ebf206..57a9b18 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,47 @@ +[project] +name = "mclbn256" +version = "1.3.3" +description = """\ + Python bindings for the BN254/256 pairing-friendly curve \ + supported by the MCl library.\ + """ +license = {text = "MIT"} +authors = [ + {name = "Wyatt Howe"}, + {email = "wyatt@nthparty.com"} +] +readme = "README.rst" +requires-python = ">=3.6" + +[project.urls] +Repository = "https://github.com/nthparty/mclbn256" +Bug Tracker = "https://github.com/nthparty/mclbn256/issues" + +[project.optional-dependencies] +docs = [ + "toml~=0.10.2", + "sphinx~=4.2.0", + "sphinx-rtd-theme~=1.0.0" +] +test = [ + "pytest~=7.0", + "pytest-cov~=3.0" +] +lint = [ + "pylint~=2.14.0" +] +coveralls = [ + "coveralls~=3.3.1" +] +publish = [ + "twine~=4.0" +] + [build-system] -# These are the assumed default build requirements from pip: -# https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support -requires = ["setuptools>=43.0.0", "wheel"] +requires = [ + "truckle==0.1.4" +] build-backend = "setuptools.build_meta" + +[tool.pytest.ini_options] +addopts = "--doctest-modules --ignore=docs --cov=mclbn256 --cov-report term-missing" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 7fff087..0000000 --- a/setup.cfg +++ /dev/null @@ -1,28 +0,0 @@ -[metadata] -name = mclbn256 -version = 1.3.3 -author = Wyatt Howe -author_email = wyatt@nthparty.com -description = Python bindings for the BN254/256 pairing-friendly curve supported by the MCl library. -long_description = file: README.rst -long_description_content_type = text/x-rst -url = https://github.com/nthparty/mclbn256 -project_urls = - Bug Tracker = https://github.com/nthparty/mclbn256/issues -classifiers = - Programming Language :: Python :: 3 - Operating System :: OS Independent -license_files = LICENSE - -[options] -package_dir = - = . -packages = find: -python_requires = >=3.6 - -[options.packages.find] -where = . - -[options.package_data] -mclbn256 = *.dylib, *.so, *.dll -mclbn256.lib = *.dylib, *.so, *.dll diff --git a/setup.py b/setup.py deleted file mode 100644 index 776679a..0000000 --- a/setup.py +++ /dev/null @@ -1,7 +0,0 @@ -from setuptools import setup, Distribution - -class BinaryDistribution(Distribution): - # required for setuptools to autodetect the right naming - has_ext_modules = lambda _ : True - -setup(distclass=BinaryDistribution) diff --git a/tox.ini b/tox.ini deleted file mode 100644 index ab06581..0000000 --- a/tox.ini +++ /dev/null @@ -1,47 +0,0 @@ -# this file is *not* meant to cover or endorse the use of tox or pytest or -# testing in general, -# -# It's meant to show the use of: -# -# - check-manifest -# confirm items checked into vcs are in your sdist -# - python setup.py check -# confirm required package meta-data in setup.py -# - readme_renderer (when using a ReStructuredText README) -# confirms your long_description will render correctly on PyPI. -# -# and also to help confirm pull requests to this project. - -[tox] -envlist = py{37,38,39,310} - -# Define the minimal tox version required to run; -# if the host tox is less than this the tool with create an environment and -# provision it with a tox that satisfies it under provision_tox_env. -# At least this version is needed for PEP 517/518 support. -minversion = 3.3.0 - -# Activate isolated build environment. tox will use a virtual environment -# to build a source distribution from the source tree. For build tools and -# arguments use the pyproject.toml file as specified in PEP-517 and PEP-518. -isolated_build = true - -[testenv] -deps = - check-manifest >= 0.42 - # If your project uses README.rst, uncomment the following: - # readme_renderer - flake8 - pytest -commands = - check-manifest --ignore 'tox.ini,tests/**' - # This repository uses a Markdown long_description, so the -r flag to - # `setup.py check` is not needed. If your project contains a README.rst, - # use `python setup.py check -m -r -s` instead. - python setup.py check -m -s - flake8 . - py.test tests {posargs} - -[flake8] -exclude = .tox,*.egg,build,data -select = E,W,F