Skip to content

Commit

Permalink
bump version 0.2.0 => 0.2.1
Browse files Browse the repository at this point in the history
- include LICENSE to avoid install error
  • Loading branch information
tomotaka committed Aug 3, 2020
1 parent 30614e4 commit 30fe36f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
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]>"]

Expand Down
24 changes: 20 additions & 4 deletions setup.py
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'
)

0 comments on commit 30fe36f

Please sign in to comment.