Skip to content

Commit

Permalink
py37+ only
Browse files Browse the repository at this point in the history
  • Loading branch information
penguinolog committed Nov 18, 2020
1 parent 46221b0 commit 04d6ed3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Expand Up @@ -88,14 +88,14 @@ jobs:

- stage: test
<<: *python37
- stage: test
<<: *pypy3
# - stage: test
# <<: *pypy3

- stage: deploy
# This prevents job from appearing in test plan unless commit is tagged:
if: tag IS present
# Run on pypy to build not cythonized wheel
<<: *pypy3
<<: *python37
name: Build universal and cythonized bdist_wheel. Deploy bdist and sdist.
services:
- docker
Expand Down
6 changes: 4 additions & 2 deletions binfield/binfield.py
Expand Up @@ -16,6 +16,8 @@
Implements BinField in Python
"""

from __future__ import annotations

import copy
import math
import typing
Expand Down Expand Up @@ -94,7 +96,7 @@ def _mapping_filter(key: str, val: typing.Any) -> bool:
:param key: namespace key
:type key: str
:param val: nespace value
:param val: namespace value
:type val: typing.Any
:rtype: bool
"""
Expand Down Expand Up @@ -405,7 +407,7 @@ def __new__(
sname: str,
sbases: typing.Tuple[type],
sns: typing.Dict[str, typing.Any],
) -> "SubMeta":
) -> SubMeta:
for base in sbases:
if base is not BinField and issubclass(base, BinField):
raise TypeError("Cannot extend BinField")
Expand Down
8 changes: 4 additions & 4 deletions setup.py
Expand Up @@ -37,7 +37,7 @@

# noinspection PyUnresolvedReferences
def get_simple_vars_from_src(
src: str,
src: str
) -> "typing.Dict[str, typing.Union[str, bytes, int, float, complex, list, set, dict, tuple, None, bool, Ellipsis]]":
"""Get simple (string/number/boolean and None) assigned values from source.
Expand Down Expand Up @@ -121,10 +121,10 @@ def get_simple_vars_from_src(
KEYWORDS = [
"binary",
"binfield",
"development",
"development"
]

SETUP_ARGS: typing.Dict[str, typing.Union[str, typing.List[str], typing.Dict[str, typing.List[str]]]] = dict(
setuptools.setup(
name="BinField",
author=VARIABLES["__author__"],
author_email=VARIABLES["__author_email__"],
Expand All @@ -133,6 +133,7 @@ def get_simple_vars_from_src(
license=VARIABLES["__license__"],
description=VARIABLES["__description__"],
long_description=LONG_DESCRIPTION,
long_description_content_type="text/x-rst",
classifiers=CLASSIFIERS,
keywords=KEYWORDS,
python_requires=">=3.7.0",
Expand All @@ -148,4 +149,3 @@ def get_simple_vars_from_src(
install_requires=REQUIRED,
package_data={PACKAGE_NAME: ["py.typed"]},
)
setuptools.setup(**SETUP_ARGS)

0 comments on commit 04d6ed3

Please sign in to comment.