-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- include LICENSE to avoid install error
- Loading branch information
Showing
2 changed files
with
21 additions
and
5 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "python-sox" | ||
version = "0.2.0" | ||
version = "0.2.1" | ||
description = "" | ||
authors = ["Tomotaka Ito <[email protected]>"] | ||
|
||
|
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,23 +1,39 @@ | ||
#!/usr/bin/python | ||
# -*- coding: utf-8 -*- | ||
import re | ||
from setuptools import setup, find_packages | ||
|
||
|
||
def _requires_from_file(filename): | ||
return open(filename).read().splitlines() | ||
# def _requires_from_file(filename): | ||
# return open(filename).read().splitlines() | ||
|
||
|
||
|
||
def parse_requirements_txt(f): | ||
pat_hash = re.compile(r'--hash=[^:]+:[a-fA-F0-9]+') | ||
with open(f) as fh: | ||
content = fh.read() | ||
content = re.sub(pat_hash, "", content) | ||
content = content.replace("\\\n", "") | ||
lines = content.split("\n") | ||
lines = [ line.strip() for line in lines ] | ||
lines = [ line for line in lines if line != "" ] | ||
lines = [ line.split(";")[0] for line in lines ] | ||
|
||
return lines | ||
|
||
|
||
setup( | ||
name='python-sox', | ||
version='0.2.0', | ||
version='0.2.1', | ||
description='Sensor Over XMPP library for python', | ||
author='Hide. Tokuda Laboratory', | ||
author_email='[email protected]', | ||
url='', | ||
packages=find_packages(), | ||
license=open('LICENSE').read(), | ||
include_package_data=True, | ||
install_requires=_requires_from_file('requirements.txt'), | ||
install_requires=parse_requirements_txt('requirements.txt'), | ||
tests_requires=['nose'], | ||
test_suite='nose.collector' | ||
) |