Skip to content

Commit

Permalink
Merge pull request #44 from saxbophone/josh/43-cleanup
Browse files Browse the repository at this point in the history
Cleanup some mess left over after fixing the packaging process
  • Loading branch information
saxbophone committed Nov 1, 2018
2 parents f916d23 + 8d7602d commit e2a9167
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
1 change: 0 additions & 1 deletion .isort.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ line_length=79
multi_line_output=5
not_skip=__init__.py
known_first_party=basest
known_third_party=pypandoc
lines_after_imports=2
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# basest-python
Converts symbols from any number base to any other number base, in Python
Arbitrary base binary-to-text encoder (any base to any base), in Python.

## What?
In short, **basest** is *based on* (pun *definitely* intended :wink:) the concept of binary-to-text conversion, that is where binary or 8-bit data is converted or serialised into a text-based representation format that can be safely passed through a medium that would otherwise destroy or corrupt the meaning of the binary data.
Expand Down
19 changes: 5 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,18 @@


def parse_requirements(filepath):
""" load requirements from a pip requirements file """
lineiter = (line.strip() for line in open(filepath))
return [line for line in lineiter if line and not line.startswith('#')]


def retrieve_deps(filepath):
"""
Given a file path that points to a requirements file that pip can
understand, parse it using pip's parser and return the requirements it
contains as a list.
Load requirements from a pip requirements file
"""
return [
str(dep.req) for dep in parse_requirements(filepath, session=False)
]
lines = (line.strip() for line in open(filepath))
return [line for line in lines if line and not line.startswith('#')]


setup(
name='basest',
version='0.7.1',
version='0.7.2.dev1',
description=(
'Converts symbols from any number base to any other number base'
'Arbitrary base binary-to-text encoder (any base to any base)'
),
long_description=open(
os.path.join(os.path.dirname(__file__), 'README.md')
Expand Down

0 comments on commit e2a9167

Please sign in to comment.