Skip to content

Commit

Permalink
Migrate from setup.py to pyproject.html.
Browse files Browse the repository at this point in the history
  • Loading branch information
lschoe authored May 24, 2024
1 parent 8195bd3 commit 37f6b0d
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 50 deletions.
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
recursive-include mpyc *.py
recursive-exclude mpyc *.md
include LICENSE
include README.md
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The [MPyC homepage](https://www.win.tue.nl/~berry/mpyc/) has some more info and

Pure Python, no dependencies. Python 3.9+ (following [SPEC 0 -- Minimum Supported Dependencies](https://scientific-python.org/specs/spec-0000/)).

Run `pip install .` in the root directory (containing file `setup.py`).\
Run `pip install .` in the root directory (containing file `pyproject.toml`).\
Or, run `pip install -e .`, if you want to edit the MPyC source files.

Use `pip install numpy` to enable support for secure NumPy arrays in MPyC, along with vectorized implementations.
Expand Down
2 changes: 1 addition & 1 deletion docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ the `MPyC repo <https://github.com/lschoe/mpyc>`_ for a local copy including all
This way it will also be easy to get updates and switch between versions. The same content
is also available as a ZIP file `mpyc-master.zip <https://github.com/lschoe/mpyc/archive/refs/heads/master.zip>`_.

From the root directory of your local copy (containing ``setup.py``) you may then run::
From the root directory of your local copy (containing ``pyproject.toml``) you may then run::

pip install .

Expand Down
1 change: 0 additions & 1 deletion mpyc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"""

__version__ = '0.10.1'
__license__ = 'MIT License'

import os
import sys
Expand Down
45 changes: 45 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[build-system]
requires = ['setuptools>=62']
build-backend = 'setuptools.build_meta'

[tool.setuptools]
packages = ['mpyc']

[tool.setuptools.dynamic]
version = {attr = 'mpyc.__version__'}

[project]
name = 'mpyc'
dynamic = ['version']
authors = [{name = 'Berry Schoenmakers', email = '[email protected]'}]
description = 'MPyC for Multiparty Computation in Python'
readme = 'README.md'
keywords=['crypto', 'cryptography', 'multiparty computation', 'MPC',
'secret sharing', 'Shamir threshold scheme',
'pseudorandom secret sharing', 'PRSS']
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Framework :: AsyncIO',
'Framework :: Jupyter',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Security :: Cryptography',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Distributed Computing'
]
license = {text = 'MIT License'}
requires-python = '>=3.9'

[project.urls]
documentation = 'https://mpyc.readthedocs.io'
discussions = 'https://github.com/lschoe/mpyc/discussions'
'release notes' = 'https://github.com/lschoe/mpyc/releases'
homepage = 'https://www.win.tue.nl/~berry/mpyc/'
repository = 'https://github.com/lschoe/mpyc'
46 changes: 0 additions & 46 deletions setup.py

This file was deleted.

0 comments on commit 37f6b0d

Please sign in to comment.