Skip to content

Commit e400170

Browse files
committed
correctly join path and provide universal wheel support
1 parent a09cb86 commit e400170

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

setup.cfg

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[metadata]
22
description-file = README.md
33
name = twitter-toolbox
4-
version = 1.0.4
4+
version = 1.0.5
55
description = Twitter Toolbox for Python
66
long_description = Twitter Toolbox for Python
77
author = Hugo Hromic
88
author_email = hhromic@gmail.com
99
maintainer = Hugo Hromic
1010
maintainer_email = hhromic@gmail.com
1111
url = https://github.com/hhromic/python-twitter-toolbox
12-
download_url = https://github.com/hhromic/python-twitter-toolbox/tarball/1.0.4
12+
download_url = https://github.com/hhromic/python-twitter-toolbox/tarball/1.0.5
1313
install_requires = tweepy, colorlog
1414
requires = tweepy, colorlog
1515
provides = twtoolbox
@@ -20,3 +20,6 @@ platforms = all
2020

2121
[options.package_data]
2222
twtoolbox = defaults.cfg
23+
24+
[bdist_wheel]
25+
universal = 1

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
"""Main setup script."""
44

55
import ast
6+
from os import path
67
from setuptools import setup, find_packages
78

8-
CLI_TREE = ast.parse(open('twtoolbox/cli.py').read())
9+
CLI_TREE = ast.parse(open(path.join("twtoolbox", "cli.py")).read())
910
CONSOLE_SCRIPTS = ["%s = twtoolbox.cli:%s" % (fn.name.replace("_", "-"), fn.name)
1011
for fn in CLI_TREE.body
1112
if isinstance(fn, ast.FunctionDef) and fn.name.startswith('tt_')]

0 commit comments

Comments
 (0)