Skip to content

Commit

Permalink
Add setup.py and requirements.txt for non-poetry use
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanplasma committed Jul 31, 2020
1 parent 60da1ec commit c275c0a
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 9 deletions.
21 changes: 13 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
[tool.poetry]
name = "sigmalint"
version = "0.1.0"
version = "0.2.0"
description = "A simple linter for Sigma rules"
authors = ["Ryan Plas <ryan.plas@stage2sec.com>"]

[tool.poetry.dependencies]
python = "^3.8"
click = "^7.1.2"
pyyaml = "^5.3.1"
pyrx = "^0.3.0"
jsonschema = "^3.2.0"
python = "==3.*,>=3.8.0"
click = "==7.*,>=7.1.2"
pyyaml = "==5.*,>=5.3.1"
pyrx = "==0.*,>=0.3.0"
jsonschema = "==3.*,>=3.2.0"

[tool.poetry.scripts]
sigmalint = 'sigmalint.sigmalint:cli'

[tool.poetry.dev-dependencies]
pytest = "^5.4.3"
pytest-cov = "^2.10.0"
pytest = "==5.*,>=5.4.3"
pytest-cov = "==2.*,>=2.10.0"


[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

[tool.dephell.main]
from = {format = "poetry", path = "pyproject.toml"}
to = {format = "setuppy", path = "setup.py"}
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
click==7.*,>=7.1.2
jsonschema==3.*,>=3.2.0
pyrx==0.*,>=0.3.0
pytest==5.*,>=5.4.3
pytest-cov==2.*,>=2.10.0
pyyaml==5.*,>=5.3.1
32 changes: 32 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-

# DO NOT EDIT THIS FILE!
# This file has been autogenerated by dephell <3
# /~https://github.com/dephell/dephell

try:
from setuptools import setup
except ImportError:
from distutils.core import setup

readme = ''

setup(
long_description=readme,
name='sigmalint',
version='0.2.0',
description='A simple linter for Sigma rules',
python_requires='==3.*,>=3.8.0',
author='Ryan Plas',
author_email='ryan.plas@stage2sec.com',
entry_points={"console_scripts": ["sigmalint = sigmalint.sigmalint:cli"]},
packages=['sigmalint', 'sigmalint.schema'],
package_dir={"": "."},
package_data={},
install_requires=[
'click==7.*,>=7.1.2', 'jsonschema==3.*,>=3.2.0', 'pyrx==0.*,>=0.3.0',
'pyyaml==5.*,>=5.3.1'
],
extras_require={
"dev": ["pytest==5.*,>=5.4.3", "pytest-cov==2.*,>=2.10.0"]},
)
2 changes: 1 addition & 1 deletion sigmalint/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.0'
__version__ = '0.2.0'

0 comments on commit c275c0a

Please sign in to comment.