Skip to content

Commit

Permalink
Fix package to work with new pypi.org
Browse files Browse the repository at this point in the history
Wow! That was quicker than expected!
  • Loading branch information
saxbophone committed Oct 31, 2018
1 parent 86dc6ca commit f6ea8c0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
2 changes: 2 additions & 0 deletions basest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@


__all__ = ['core', 'encoders', 'exceptions']

name = 'basest'
19 changes: 12 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

import os

from pip.req import parse_requirements
from pypandoc import convert_text
from setuptools import find_packages, setup


Expand All @@ -28,6 +26,12 @@ def readme(filepath):
)


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
Expand All @@ -41,11 +45,12 @@ def retrieve_deps(filepath):

setup(
name='basest',
version='0.7.0',
version='0.7.1',
description=(
'Converts symbols from any number base to any other number base'
),
long_description=readme('README.md'),
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
long_description_content_type='text/markdown',
url='https://github.com/saxbophone/basest-python',
author='Joshua Saxby',
author_email='[email protected]',
Expand Down Expand Up @@ -73,10 +78,10 @@ def retrieve_deps(filepath):
],
keywords='number base encoder decoder conversion encoding decoding',
packages=find_packages(),
install_requires=retrieve_deps('python_requirements/base.txt'),
install_requires=parse_requirements('python_requirements/base.txt'),
extras_require={
'test': retrieve_deps('python_requirements/test.txt'),
'build': retrieve_deps('python_requirements/build.txt'),
'test': parse_requirements('python_requirements/test.txt'),
'build': parse_requirements('python_requirements/build.txt'),
},
package_data={
'': ['README.md', 'LICENSE'],
Expand Down

0 comments on commit f6ea8c0

Please sign in to comment.