-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
45 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,47 +2,6 @@ | |
requires = ["setuptools>=61", "cffi>=1.3.0", "requests"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "coincurve" | ||
version = "19.0.0" | ||
authors = [ | ||
{ name="Ofek Lev", email="[email protected]" }, | ||
] | ||
description = "Cross-platform Python CFFI bindings for libsecp256k1" | ||
license = { file="LICENSE-MIT" } | ||
keywords = ["secp256k1", "crypto", "elliptic curves", "bitcoin", "ethereum", "cryptocurrency"] | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"asn1crypto", | ||
"cffi>=1.3.0" | ||
] | ||
classifiers = [ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Natural Language :: English', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 3', | ||
'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', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
'Programming Language :: Python :: Implementation :: PyPy', | ||
'Topic :: Software Development :: Libraries', | ||
'Topic :: Security :: Cryptography', | ||
] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/ofek/coincurve" | ||
"Bug Tracker" = "https://github.com/ofek/coincurve/issues" | ||
"Documentation" = "https://ofek.dev/coincurve/" | ||
"Issues" = "https://github.com/ofek/coincurve/issues" | ||
"Source" = "https://github.com/ofek/coincurve" | ||
|
||
[tool.pytest.ini_options] | ||
addopts = [ | ||
"--import-mode=importlib", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
_bdist_wheel = None | ||
|
||
sys.path.append(os.path.abspath(os.path.dirname(__file__))) | ||
from setup_support import absolute, build_flags, detect_dll, has_system_lib # noqa: E402 | ||
from setup_support import absolute, build_flags, detect_dll, has_system_lib | ||
|
||
BUILDING_FOR_WINDOWS = detect_dll() | ||
|
||
|
@@ -65,7 +65,7 @@ def download_library(command): | |
content.seek(0) | ||
with tarfile.open(fileobj=content) as tf: | ||
dirname = tf.getnames()[0].partition('/')[0] | ||
tf.extractall() | ||
tf.extractall() # noqa: S202 | ||
shutil.move(dirname, libdir) | ||
else: | ||
raise SystemExit('Unable to download secp256k1 library: HTTP-Status: %d', status_code) | ||
|
@@ -287,7 +287,6 @@ def has_c_libraries(self): | |
extension.__dict__['extra_link_args'][i] = f'{v}.lib' | ||
|
||
setup_kwargs = dict( | ||
setup_requires=['cffi>=1.3.0', 'requests'], | ||
ext_modules=[extension], | ||
cmdclass={ | ||
'build_clib': build_clib, | ||
|
@@ -318,7 +317,6 @@ def has_c_libraries(self): | |
|
||
|
||
setup_kwargs = dict( | ||
setup_requires=['cffi>=1.3.0', 'requests'], | ||
ext_package='coincurve', | ||
cffi_modules=['_cffi_build/build.py:ffi'], | ||
cmdclass={ | ||
|
@@ -335,10 +333,51 @@ def has_c_libraries(self): | |
name='coincurve', | ||
version='19.0.0', | ||
|
||
description='Cross-platform Python CFFI bindings for libsecp256k1', | ||
long_description=open('README.md', 'r').read(), | ||
long_description_content_type='text/markdown', | ||
author_email='Ofek Lev <[email protected]>', | ||
license='MIT OR Apache-2.0', | ||
|
||
python_requires='>=3.8', | ||
install_requires=['asn1crypto', 'cffi>=1.3.0'], | ||
|
||
packages=find_packages(exclude=('_cffi_build', '_cffi_build.*', 'libsecp256k1', 'tests')), | ||
package_data=package_data, | ||
|
||
distclass=Distribution, | ||
zip_safe=False, | ||
|
||
project_urls={ | ||
'Documentation': 'https://ofek.dev/coincurve/', | ||
'Issues': 'https://github.com/ofek/coincurve/issues', | ||
'Source': 'https://github.com/ofek/coincurve', | ||
}, | ||
keywords=[ | ||
'secp256k1', | ||
'crypto', | ||
'elliptic curves', | ||
'bitcoin', | ||
'ethereum', | ||
'cryptocurrency', | ||
], | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Natural Language :: English', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 3', | ||
'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', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
'Programming Language :: Python :: Implementation :: PyPy', | ||
'Topic :: Software Development :: Libraries', | ||
'Topic :: Security :: Cryptography', | ||
], | ||
**setup_kwargs | ||
) |