Skip to content

Commit

Permalink
chg: The project is now using Trusted Publishing with Pypi. Updated d…
Browse files Browse the repository at this point in the history
…ependencies.
  • Loading branch information
cedricbonhomme committed Feb 18, 2025
1 parent 4cbafc8 commit 121982c
Show file tree
Hide file tree
Showing 10 changed files with 629 additions and 55 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
release:
types:
- published

name: release

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pyAndroZoo

permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Poetry
run: python -m pip install --upgrade pip poetry
- name: Build artifacts
run: poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Release History
===============

0.3.1 (2025-02-18)
------------------

- Updated dependencies.
- The project is now using Trusted Publishing with Pypi.


0.3 (2017-03-29)
----------------

Expand Down
8 changes: 0 additions & 8 deletions MANIFEST.in

This file was deleted.

2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,5 @@ Contact
-------
`Cédric Bonhomme <https://www.cedricbonhomme.org>`_
Copyright (C) 2017-2025 Cédric Bonhomme - https://github.com/cedricbonhomme
529 changes: 529 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyandrozoo/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
from urllib.parse import urlparse, urlunparse, urlencode, parse_qs

import grequests
import grequests # type: ignore[import-untyped]

ANDROZOO_URL = 'https://androzoo.uni.lu/api/download'

Expand Down
63 changes: 63 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"


[project]
name = "pyAndroZoo"
version = "0.3.1"
description = "A Python library to access the AndroZoo data set."
authors = [
{name = "Cédric Bonhomme",email = "[email protected]"}
]
license = "GPL-3.0-or-later"
readme = "README.rst"
keywords = ["android", "androzoo", "malware"]

requires-python = ">=3.10,<4.0"
dependencies = [
"grequests (>=0.7.0)"
]

[project.urls]
Homepage = "https://github.com/ICC-analysis/pyAndroZoo"
Repository = "https://github.com/ICC-analysis/pyAndroZoo"
Changelog = "https://github.com/ICC-analysis/pyAndroZoo/blob/master/CHANGELOG.rst"


[tool.poetry]
requires-poetry = ">=2.0"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Security",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)"
]


[tool.mypy]
python_version = "3.13"
check_untyped_defs = true
ignore_errors = false
ignore_missing_imports = true
strict_optional = true
no_implicit_optional = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unreachable = true

show_error_context = true
pretty = true

exclude = "build|dist|docs"

[tool.isort]
profile = "black"
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

43 changes: 0 additions & 43 deletions setup.py

This file was deleted.

0 comments on commit 121982c

Please sign in to comment.