Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 2e37593

Browse files
2xyoSamuel Hassine
andauthored
[client] Fix packaging (#19)
Co-authored-by: Samuel Hassine <[email protected]>
1 parent 1d913fa commit 2e37593

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
command: pip3 install -r requirements.txt --user
3737
- run:
3838
name: build
39-
command: python3 setup.py sdist
39+
command: python3 setup.py sdist bdist_wheel
4040
- persist_to_workspace:
4141
root: ~/opencti-client
4242
paths:

setup.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,11 @@
55
from setuptools import setup
66
from setuptools.command.install import install
77

8-
try:
9-
from pypandoc import convert
10-
11-
read_md = lambda f: convert(f, "rst")
12-
except ImportError:
13-
print("warning: pypandoc module not found, could not convert Markdown to RST")
14-
read_md = lambda f: open(f, "r").read()
15-
168
VERSION = "3.1.1"
179

10+
with open("README.md", "r") as fh:
11+
long_description = fh.read()
12+
1813

1914
class VerifyVersionCommand(install):
2015
description = "verify that the git tag matches our version"
@@ -32,7 +27,8 @@ def run(self):
3227
name="pycti",
3328
version=VERSION,
3429
description="Python API client for OpenCTI.",
35-
long_description="Official Python client for the OpenCTI platform.",
30+
long_description=long_description,
31+
long_description_content_type="text/markdown",
3632
author="OpenCTI",
3733
author_email="[email protected]",
3834
maintainer="OpenCTI",
@@ -65,6 +61,6 @@ def run(self):
6561
"python-magic==0.4.15;sys.platform=='linux' or sys.platform=='darwin'",
6662
"python-magic-bin==0.4.14;sys.platform=='win32'",
6763
],
68-
cmdclass={"verify": VerifyVersionCommand,},
69-
extras_require={"dev": ["black", "wheel"],}, # Optional
64+
cmdclass={"verify": VerifyVersionCommand},
65+
extras_require={"dev": ["black", "wheel"]}, # Optional
7066
)

0 commit comments

Comments
 (0)