Browse Source

support pep 561 (#88)

master
Ofek Lev 3 years ago
committed by GitHub
parent
commit
5f061fff9d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      HISTORY.rst
  2. 1
      MANIFEST.in
  3. 0
      coincurve/py.typed
  4. 6
      setup.py

1
HISTORY.rst

@ -13,6 +13,7 @@ master
- Upgrade libsecp256k1 to the latest available version
- Upgrade libgmp to the latest available version
- Introduce ``COINCURVE_UPSTREAM_REF`` environment variable to select an alternative libsecp256k1 version when building from source
- Support PEP 561 type hints
14.0.0
^^^^^^

1
MANIFEST.in

@ -1,3 +1,4 @@
include coincurve/py.typed
include setup_support.py
recursive-include _cffi_build *.py *.h
graft libsecp256k1

0
coincurve/py.typed

6
setup.py

@ -226,13 +226,16 @@ class develop(_develop):
_develop.run(self)
package_data = {'coincurve': ['py.typed']}
if BUILDING_FOR_WINDOWS:
class Distribution(_Distribution):
def is_pure(self):
return False
setup_kwargs = dict(package_data={'coincurve': ['*.dll']}, include_package_data=True)
package_data['coincurve'].append('libsecp256k1.dll')
setup_kwargs = dict()
else:
class Distribution(_Distribution):
@ -272,6 +275,7 @@ setup(
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,

Loading…
Cancel
Save