Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packaging updates #1241

Merged
merged 3 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
# This workflow will upload a Python Package using Hatch when a release is created

name: Publish Python Package

Expand All @@ -20,12 +19,11 @@ jobs:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pipx install hatch
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PACKAGE_API_ID }}
TWINE_PASSWORD: ${{ secrets.PACKAGE_API_SECRET }}
HATCH_INDEX_USER: ${{ secrets.PACKAGE_API_ID }}
HATCH_INDEX_AUTH: ${{ secrets.PACKAGE_API_SECRET }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
hatch build
hatch publish
2 changes: 1 addition & 1 deletion .github/workflows/unit_testing_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
# os: [macos-latest, windows-latest, ubuntu-latest]
python-version: ['3.10', '3.11', '3.12', '3.13-dev']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14-dev']
# runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
Expand Down
165 changes: 0 additions & 165 deletions dev_setup.py

This file was deleted.

99 changes: 99 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "crowdstrike-falconpy"
dynamic = ["version"]
description = "The CrowdStrike Falcon SDK for Python"
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.7"
authors = [
{ name = "CrowdStrike", email = "[email protected]" },
]
maintainers = [
{ name = "Joshua Hiller", email = "[email protected]" },
]
keywords = [
"api",
"crowdstrike",
"crowdstrike-falcon",
"devsecops",
"falcon",
"oauth2",
"sdk"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Flake8",
"Intended Audience :: Developers",
"License :: OSI Approved :: The Unlicense (Unlicense)",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: OS Independent",
"Operating System :: POSIX",
"Operating System :: POSIX :: Linux",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Security",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Systems Administration",
"Topic :: Utilities",
]
dependencies = [
"requests",
"urllib3",
]

[project.optional-dependencies]
dev = [
"bandit",
"coverage",
"flake8",
"pydocstyle",
"pylint",
"pytest",
"pytest-cov"
]

[project.urls]
Documentation = "https://www.falconpy.io"
Homepage = "https://github.com/CrowdStrike/falconpy"
Source = "https://github.com/CrowdStrike/falconpy/tree/main/src/falconpy"
Tracker = "https://github.com/CrowdStrike/falconpy/issues"

[tool.hatch.version]
source = "code"
path = "src/falconpy/_version.py"
expression = "_VERSION"

[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/build",
"/cut",
"/docs",
"/htmlcov",
"/samples",
"/util",
"/.gitignore",
"/requirements.txt",
"/requirements-dev.txt"
]

[tool.hatch.build.targets.wheel]
package = [
"src/falconpy"
]
include = ["src/falconpy"]
sources = ["src"]
2 changes: 0 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,3 @@ pytest-cov>=2.11.1 # via -r requirements-dev.in
pytest>=6.2.2 # via -r requirements-dev.in
ipython>=8.10.0 # via -r requirements-dev.in, pinned by Snyk to avoid SNYK-PYTHON-IPYTHON-3318382
pydocstyle>=6.1.0
setuptools~=70.3.0 # pinning to avoid failures with new iterations of setuptools
zipp>=3.19.1 # not directly required, pinned by Snyk
Loading
Loading