forked from TimothyClaeys/pycose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (54 loc) · 1.93 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import os
from setuptools import setup, find_packages
def _read_requirements(file_name):
"""
Returns list of required modules for 'install_requires' parameter. Assumes
requirements file contains only module lines and comments.
"""
requirements = []
with open(os.path.join(file_name)) as f:
for line in f:
if not line.startswith('#'):
requirements.append(line)
return requirements
INSTALL_REQUIREMENTS = _read_requirements('requirements.txt')
# README as long description
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, 'README.md')) as file:
LONG_DESCRIPTION = file.read()
setup(
name='cose',
version='0.9.dev8',
packages=find_packages(exclude=['tests', 'docs']),
python_requires='>=3.6',
include_package_data=True,
package_data={
'': [
'requirements.txt',
'images/*.png',
],
},
install_requires=INSTALL_REQUIREMENTS,
long_description_content_type='text/markdown',
long_description=LONG_DESCRIPTION,
description='CBOR Object Signing and Encryption (COSE) implementation',
keywords=['COSE', 'Internet of Things', 'CBOR', 'object security', 'EDHOC', 'OSCORE', 'cryptography'],
url='https://pycose.readthedocs.io/en/latest/',
author='Timothy Claeys',
platforms=['platform-independent'],
author_email='[email protected]',
license='BSD-3',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Internet',
'Topic :: Communications',
'Topic :: Software Development',
'Topic :: System :: Networking',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
)