-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix package to work with new pypi.org
Wow! That was quicker than expected!
- Loading branch information
1 parent
86dc6ca
commit f6ea8c0
Showing
2 changed files
with
14 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,5 @@ | |
|
||
|
||
__all__ = ['core', 'encoders', 'exceptions'] | ||
|
||
name = 'basest' |
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 |
---|---|---|
|
@@ -13,8 +13,6 @@ | |
|
||
import os | ||
|
||
from pip.req import parse_requirements | ||
from pypandoc import convert_text | ||
from setuptools import find_packages, setup | ||
|
||
|
||
|
@@ -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 | ||
|
@@ -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]', | ||
|
@@ -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'], | ||
|