Skip to content

Commit 30fe36f

Browse files
committed
bump version 0.2.0 => 0.2.1
- include LICENSE to avoid install error
1 parent 30614e4 commit 30fe36f

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "python-sox"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
description = ""
55
authors = ["Tomotaka Ito <[email protected]>"]
66

setup.py

+20-4
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,39 @@
11
#!/usr/bin/python
22
# -*- coding: utf-8 -*-
3+
import re
34
from setuptools import setup, find_packages
45

56

6-
def _requires_from_file(filename):
7-
return open(filename).read().splitlines()
7+
# def _requires_from_file(filename):
8+
# return open(filename).read().splitlines()
9+
10+
11+
12+
def parse_requirements_txt(f):
13+
pat_hash = re.compile(r'--hash=[^:]+:[a-fA-F0-9]+')
14+
with open(f) as fh:
15+
content = fh.read()
16+
content = re.sub(pat_hash, "", content)
17+
content = content.replace("\\\n", "")
18+
lines = content.split("\n")
19+
lines = [ line.strip() for line in lines ]
20+
lines = [ line for line in lines if line != "" ]
21+
lines = [ line.split(";")[0] for line in lines ]
22+
23+
return lines
824

925

1026
setup(
1127
name='python-sox',
12-
version='0.2.0',
28+
version='0.2.1',
1329
description='Sensor Over XMPP library for python',
1430
author='Hide. Tokuda Laboratory',
1531
author_email='[email protected]',
1632
url='',
1733
packages=find_packages(),
1834
license=open('LICENSE').read(),
1935
include_package_data=True,
20-
install_requires=_requires_from_file('requirements.txt'),
36+
install_requires=parse_requirements_txt('requirements.txt'),
2137
tests_requires=['nose'],
2238
test_suite='nose.collector'
2339
)

0 commit comments

Comments
 (0)