From 6facf5104ec872dd361f8ef85e0c4d47f8362adf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 19 Feb 2020 10:07:46 +0100 Subject: [PATCH] chg: Restore setup.py --- poetry.lock | 10 +++++----- pyproject.toml | 1 + setup.py | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 5 deletions(-) create mode 100644 setup.py diff --git a/poetry.lock b/poetry.lock index 92f6ca0..312fd37 100644 --- a/poetry.lock +++ b/poetry.lock @@ -51,7 +51,7 @@ format = ["idna", "jsonpointer (>1.13)", "rfc3987", "strict-rfc3339", "webcolors format_nongpl = ["idna", "jsonpointer (>1.13)", "webcolors", "rfc3986-validator (>0.1.0)", "rfc3339-validator"] [[package]] -category = "dev" +category = "main" description = "Optional static typing for Python" name = "mypy" optional = false @@ -67,7 +67,7 @@ typing-extensions = ">=3.7.4" dmypy = ["psutil (>=4.0)"] [[package]] -category = "dev" +category = "main" description = "Experimental type system extensions for programs checked with the mypy typechecker." name = "mypy-extensions" optional = false @@ -102,7 +102,7 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" version = "1.14.0" [[package]] -category = "dev" +category = "main" description = "a fork of Python 2 and 3 ast modules with type comment support" name = "typed-ast" optional = false @@ -110,7 +110,7 @@ python-versions = "*" version = "1.4.1" [[package]] -category = "dev" +category = "main" description = "Backported and Experimental Type Hints for Python 3.5+" name = "typing-extensions" optional = false @@ -131,7 +131,7 @@ docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"] testing = ["jaraco.itertools", "func-timeout"] [metadata] -content-hash = "ef4e5039d063d0403020f47105c54aed18448fa66964e04c6b199ac2892b1260" +content-hash = "f54dc98e227f5457c031ab19e76fcf41eb2a2435fa79d46ca7dbb4e20b3fe59b" python-versions = "^3.6" [metadata.files] diff --git a/pyproject.toml b/pyproject.toml index d6ab4c4..4713aeb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,6 +31,7 @@ exclude = ["pymispgalaxies/data/misp-galaxy/tools/**/*"] [tool.poetry.dependencies] python = "^3.6" jsonschema = "^3.2.0" +mypy = "^0.761" [tool.poetry.dev-dependencies] nose = "^1.3.7" diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..6397cb0 --- /dev/null +++ b/setup.py @@ -0,0 +1,33 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +from setuptools import setup + + +setup( + name='pymispgalaxies', + version='0.1', + author='Raphaël Vinot', + author_email='raphael.vinot@circl.lu', + maintainer='Raphaël Vinot', + url='https://github.com/MISP/PyMISPGalaxies', + description='Python API for the MISP Galaxies.', + packages=['pymispgalaxies'], + classifiers=[ + 'License :: OSI Approved :: BSD License', + 'Development Status :: 5 - Production/Stable', + 'Environment :: Console', + 'Intended Audience :: Science/Research', + 'Intended Audience :: Telecommunications Industry', + 'Programming Language :: Python', + 'Topic :: Security', + 'Topic :: Internet', + ], + tests_requires=['nose'], + test_suite='nose.collector', + package_data={'pymispgalaxies': ['data/misp-galaxy/schema_*.json', + 'data/misp-galaxy/clusters/*.json', + 'data/misp-galaxy/galaxies/*.json', + 'data/misp-galaxy/misp/*.json', + 'data/misp-galaxy/vocabularies/common/*.json', + 'data/misp-galaxy/vocabularies/threat-actor/*.json']} +)