Skip to content

Commit

Permalink
support pep 561 (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed Jan 19, 2021
1 parent 00f941d commit 5f061ff
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions HISTORY.rst
Expand Up @@ -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
^^^^^^
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
@@ -1,3 +1,4 @@
include coincurve/py.typed
include setup_support.py
recursive-include _cffi_build *.py *.h
graft libsecp256k1
Empty file added coincurve/py.typed
Empty file.
6 changes: 5 additions & 1 deletion setup.py
Expand Up @@ -226,13 +226,16 @@ def run(self):
_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):
Expand Down Expand Up @@ -272,6 +275,7 @@ def has_c_libraries(self):
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,
Expand Down

0 comments on commit 5f061ff

Please sign in to comment.