-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
and 1 formatting issue
- Loading branch information
Showing
4 changed files
with
18 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[build-system] | ||
requires = ["setuptools>=42", "wheel", "read_version[toml]>=0.3.0", "pathlib2; python_version < '3'"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.read_version] | ||
version = "kaitaistruct:__version__" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[metadata] | ||
name = kaitaistruct | ||
version = attr: kaitaistruct.__version__ | ||
version = attr: __version__ | ||
author = Kaitai Project | ||
author_email = [email protected] | ||
url = http://kaitai.io | ||
|
@@ -20,6 +20,7 @@ classifiers = | |
Programming Language :: Python :: 3.5 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: Implementation :: CPython | ||
Programming Language :: Python :: Implementation :: PyPy | ||
|
||
|
@@ -28,16 +29,20 @@ 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>=42 | ||
wheel | ||
read_version[toml]>=0.3.0 | ||
pathlib2; python_version < "3" | ||
|
||
[bdist_wheel] | ||
# This flag says that the code is written to work on both Python 2 and Python | ||
# 3. If at all possible, it is good practice to do this. If you cannot, you | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
import os | ||
from setuptools import setup | ||
from setuptools.config import read_configuration | ||
|
||
this_dir = os.path.dirname(__file__) | ||
cfg = read_configuration(os.path.join(this_dir, 'setup.cfg')) | ||
cfg["options"].update(cfg["metadata"]) | ||
cfg = cfg["options"] | ||
|
||
setup(**cfg) | ||
if __name__ == "__main__": | ||
setup() |