From 36f7ad0bead41c12a4d1bb2ef617008b473be3c0 Mon Sep 17 00:00:00 2001 From: KOLANICH Date: Sat, 9 Apr 2022 22:07:43 +0300 Subject: [PATCH] Fixed `setup.cfg` and added `pyproject.toml` Co-Authored-by: dgelessus --- pyproject.toml | 3 +++ setup.cfg | 13 ++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..02eb14a --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools >= 38.6.0", "wheel >= 0.23.0"] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg index 7b04720..b2522a4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,9 +3,10 @@ name = kaitaistruct version = attr: kaitaistruct.__version__ author = Kaitai Project author_email = greycat@kaitai.io -url = http://kaitai.io +url = https://kaitai.io description = Kaitai Struct declarative parser generator for binary data: runtime library for Python -long_description = file: README.rst +long_description = file: README.md +long_description_content_type = text/markdown license = MIT keywords = kaitai, struct, construct, ksy, declarative, data structure, data format, file format, packet format, binary, parser, parsing, unpack, development classifiers = @@ -31,6 +32,11 @@ zip_safe = True include_package_data = True py_modules = kaitaistruct python_requires = >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.* +install_requires = + enum34; python_version < "3.4" +setup_requires = + setuptools >= 38.6.0 + wheel >= 0.23.0 [bdist_wheel] # This flag says that the code is written to work on both Python 2 and Python @@ -38,9 +44,6 @@ python_requires = >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.* # will need to generate wheels for each Python version that you support. universal=1 -[build-system] -requires = ["setuptools", "wheel"] - [pycodestyle] max-line-length = 140 statistics = True