You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
More packaging crap.
Did I tell you how much I hate python packaging? fragments.py: track recent change in class decorators.
This commit is contained in:
@@ -7,5 +7,5 @@ include __pkginfo__.py
|
||||
recursive-include uncompyle6 *.py
|
||||
include bin/uncompyle6
|
||||
include bin/pydisassemble
|
||||
recursive-include test *.py
|
||||
recursive-include test *.py *.pyc
|
||||
recursive-include pytest *.py
|
||||
|
9
Makefile
9
Makefile
@@ -44,9 +44,9 @@ clean: clean_pyc
|
||||
$(PYTHON) ./setup.py $@
|
||||
(cd test && $(MAKE) clean)
|
||||
|
||||
#: Create source (tarball) and binary (egg) distribution
|
||||
#: Create source (tarball) and wheel distribution
|
||||
dist:
|
||||
$(PYTHON) ./setup.py sdist bdist_egg
|
||||
$(PYTHON) ./setup.py sdist bdist_wheel
|
||||
|
||||
#: Remove .pyc files
|
||||
clean_pyc:
|
||||
@@ -73,6 +73,11 @@ bdist_egg:
|
||||
$(PYTHON) ./setup.py bdist_egg
|
||||
|
||||
|
||||
#: Create binary wheel distribution
|
||||
bdist_wheel:
|
||||
$(PYTHON) ./setup.py bdist_wheel
|
||||
|
||||
|
||||
# It is too much work to figure out how to add a new command to distutils
|
||||
# to do the following. I'm sure distutils will someday get there.
|
||||
DISTCLEAN_FILES = build dist *.pyc
|
||||
|
@@ -40,8 +40,6 @@ install_requires = ['spark-parser >= 1.1.1']
|
||||
license = 'MIT'
|
||||
mailing_list = 'python-debugger@googlegroups.com'
|
||||
modname = 'uncompyle6'
|
||||
packages = ['uncompyle6', 'uncompyle6.opcodes', 'uncompyle6.semantics', 'uncompyle6.scanners',
|
||||
'uncompyle6.parsers']
|
||||
py_modules = None
|
||||
short_desc = 'Python byte-code disassembler and source-code converter'
|
||||
web = 'https://github.com/rocky/python-uncompyle6/'
|
||||
|
8
setup.py
8
setup.py
@@ -5,10 +5,10 @@
|
||||
from __pkginfo__ import \
|
||||
author, author_email, install_requires, \
|
||||
license, long_description, classifiers, \
|
||||
modname, packages, py_modules, entry_points, \
|
||||
entry_points, modname, py_modules, \
|
||||
short_desc, web, zip_safe
|
||||
|
||||
from setuptools import setup
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
exec(open('uncompyle6/version.py').read())
|
||||
|
||||
@@ -21,9 +21,9 @@ setup(
|
||||
install_requires = install_requires,
|
||||
license = license,
|
||||
long_description = long_description,
|
||||
py_modules = py_modules,
|
||||
name = modname,
|
||||
packages = packages,
|
||||
packages = find_packages(),
|
||||
py_modules = py_modules,
|
||||
test_suite = 'nose.collector',
|
||||
url = web,
|
||||
setup_requires = ['nose>=1.0'],
|
||||
|
@@ -657,7 +657,10 @@ class FragmentsWalker(pysource.SourceWalker, object):
|
||||
if self.version > 3.0:
|
||||
currentclass = node[1][0].pattr
|
||||
buildclass = node[0]
|
||||
subclass = buildclass[1][0].attr
|
||||
if buildclass[1][0] == 'kwargs':
|
||||
subclass = buildclass[1][1].attr
|
||||
else:
|
||||
subclass = buildclass[1][0].attr
|
||||
subclass_info = node[0]
|
||||
else:
|
||||
buildclass = node[0]
|
||||
|
Reference in New Issue
Block a user