Skip to content

Commit 1a9f77a

Browse files
committedApr 8, 2020
Commit changes from kaitai-io#39
1 parent b54805c commit 1a9f77a

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed
 

‎pyproject.toml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel", "read_version[toml]>=0.3.0", "pathlib2; python_version < '3'"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[read_version]
6+
version = "kaitaistruct:__version__"

‎setup.cfg

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[metadata]
22
name = kaitaistruct
3-
version = attr: kaitaistruct.__version__
43
author = Kaitai Project
54
author_email = greycat@kaitai.io
65
url = http://kaitai.io
@@ -20,6 +19,7 @@ classifiers =
2019
Programming Language :: Python :: 3.5
2120
Programming Language :: Python :: 3.6
2221
Programming Language :: Python :: 3.7
22+
Programming Language :: Python :: 3.8
2323
Programming Language :: Python :: Implementation :: CPython
2424
Programming Language :: Python :: Implementation :: PyPy
2525

@@ -28,16 +28,20 @@ zip_safe = True
2828
include_package_data = True
2929
py_modules = kaitaistruct
3030
python_requires = >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*
31+
install_requires =
32+
enum34; python_version < "3.4"
33+
setup_requires =
34+
setuptools>=42
35+
wheel
36+
read_version[toml]>=0.3.0
37+
pathlib2; python_version < "3"
3138

3239
[bdist_wheel]
3340
# This flag says that the code is written to work on both Python 2 and Python
3441
# 3. If at all possible, it is good practice to do this. If you cannot, you
3542
# will need to generate wheels for each Python version that you support.
3643
universal=1
3744

38-
[build-system]
39-
requires = ["setuptools", "wheel"]
40-
4145
[pycodestyle]
4246
max-line-length = 140
43-
statistics = True
47+
statistics = True

‎setup.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
import os
21
from setuptools import setup
3-
from setuptools.config import read_configuration
42

5-
this_dir = os.path.dirname(__file__)
6-
cfg = read_configuration(os.path.join(this_dir, 'setup.cfg'))
7-
cfg["options"].update(cfg["metadata"])
8-
cfg = cfg["options"]
9-
10-
setup(**cfg)
3+
if __name__ == "__main__":
4+
setup()

0 commit comments

Comments
 (0)