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

migrate to pyproject.toml #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pkg:
-rm dist/*
python3 setup.py sdist bdist_wheel
python3 -m build

pypi-test:
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
Expand Down
7 changes: 5 additions & 2 deletions iOSbackup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
import sys
import textwrap
from importlib import import_module
from importlib import import_module, metadata
import pprint
import tempfile
import sqlite3
Expand All @@ -23,7 +23,10 @@
from Crypto.Cipher import AES # https://www.dlitz.net/software/pycrypto/


__version__ = '0.9.925'
try:
__version__ = metadata.version("iOSbackup")
except metadata.PackageNotFoundError:
__version__ = "0.0+unknown"

module_logger = logging.getLogger(__name__)

Expand Down
39 changes: 39 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[project]
name = "iOSbackup"
version = "0.9.925"
description = "Reads and extracts files from password-encrypted iOS backups"
readme = "README.md"
authors = [{ name = "Avi Alkalay", email = "[email protected]" }]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: MacOS X",
"Environment :: Win32 (MS Windows)",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Legal Industry",
"Intended Audience :: Telecommunications Industry",
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: OS Independent",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: iOS",
"Programming Language :: Python :: 3",
"Topic :: Database",
"Topic :: Security :: Cryptography",
"Topic :: Software Development :: Embedded Systems",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Archiving :: Backup",
"Topic :: System :: Recovery Tools",
]
requires-python = ">=3.7"
dependencies = ["NSKeyedUnArchiver", "pycryptodome"]

[project.urls]
Homepage = "https://github.com/avibrazil/iOSbackup"

[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
43 changes: 0 additions & 43 deletions setup.py

This file was deleted.