Skip to content

Commit

Permalink
Merge pull request #72 from swimlane/revert-71-update_ci_deps
Browse files Browse the repository at this point in the history
Revert "fix: Removing old python setup files and updating ci"
  • Loading branch information
MSAdministrator authored Dec 24, 2023
2 parents f537a2c + 4d669bd commit ef1c448
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: python
package-name: atomic-operator
bump-minor-pre-major: true
bump-patch-for-minor-pre-major: true
include-v-in-tag: false
# The logic below handles the PyPi distribution:
Expand All @@ -30,9 +31,9 @@ jobs:
python-version: "3.10"
if: ${{ steps.release.outputs.release_created }}
- name: Set up poetry
uses: abatilo/actions-poetry@v2.3.0
uses: abatilo/actions-poetry@v2.2.0
with:
poetry-version: 1.7.1
poetry-version: 1.3.2
if: ${{ steps.release.outputs.release_created }}
- name: Publish
run: |
Expand Down
8 changes: 8 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
pytest
pylama==7.7.1
coverage
Jinja2==3.1.1
mkdocs>=1.2.4
mkdocs-material>=8.2.9
mkdocs-material-extensions>=1.0.3
mkdocstrings>=0.18.0
7 changes: 7 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyyaml==5.4.1
fire==0.4.0
requests==2.26.0
attrs==21.2.0
pypsrp==0.5.0
paramiko>=2.10.1
pick==1.2.0
93 changes: 93 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
import os

from setuptools import setup, find_packages

def parse_requirements(requirement_file):
with open(requirement_file) as f:
return f.readlines()


def read(rel_path: str) -> str:
here = os.path.abspath(os.path.dirname(__file__))
# intentionally *not* adding an encoding option to open, See:
# https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690
with open(os.path.join(here, rel_path)) as fp:
return fp.read()


here = os.path.abspath(os.path.dirname(__file__))

about = {}
with open(os.path.join(here, 'atomic_operator', '__meta__.py'), 'r') as f:
exec(f.read(), about)


PROJECT_URLS = {
"Documentation": "https://swimlane.com",
"Changelog": "https://github.com/swimlane/atomic-operator/blob/main/CHANGELOG.md",
"Bug Tracker": "https://github.com/swimlane/atomic-operator/issues",
"Source Code": "https://github.com/swimlane/atomic-operator",
"Funding": "https://github.com/sponsors/msadministrator",
}

CLASSIFIERS = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Intended Audience :: End Users/Desktop",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Security"
]

setup(
name=about['__title__'],
version=about['__version__'],
packages=find_packages(exclude=['tests*']),
license=about['__license__'],
description=about['__description__'],
long_description=open('README.md').read(),
long_description_content_type="text/markdown",
project_urls=PROJECT_URLS,
install_requires=[
'requests>=2.20.0; python_version >= "3.6"',
'charset_normalizer~=2.0.0; python_version >= "3"',
'chardet>=3.0.2,<5; python_version < "3"',
'idna>=2.5,<3; python_version < "3"',
'idna>=2.5,<4; python_version >= "3"',
'urllib3>=1.21.1,<1.27',
'certifi>=2017.4.17',
'windows-curses>=2.2.0,<3.0.0; platform_system=="Windows" and python_version >= "3.6"',
'attrs>=21.3.0; python_version >= "3.6"',
'pyyaml>=6.0; python_version >= "3.6"',
'fire>=0.4.0; python_version >= "3.6"',
'pypsrp>=0.5.0; python_version >= "3.6"',
'paramiko>=2.7.2; python_version >= "3.6"',
'pick>=1.2.0; python_version >= "3.6"'
],
keywords=['atomic-red-team', 'att&ck', 'test', 'mitre', 'executor'],
url=about['__url__'],
author=about['__author__'],
author_email=about['__author_email__'],
maintainer=about['__maintainer__'],
maintainer_email=about['__maintainer_email__'],
python_requires='>=3.6, <4',
classifiers=CLASSIFIERS,
package_data={
'atomic_operator': ['data/logging.yml']
},
entry_points={
'console_scripts': [
'atomic-operator = atomic_operator.__main__:main'
]
}
)

0 comments on commit ef1c448

Please sign in to comment.