You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +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
|
recursive-include uncompyle6 *.py
|
||||||
include bin/uncompyle6
|
include bin/uncompyle6
|
||||||
include bin/pydisassemble
|
include bin/pydisassemble
|
||||||
recursive-include test *.py
|
recursive-include test *.py *.pyc
|
||||||
recursive-include pytest *.py
|
recursive-include pytest *.py
|
||||||
|
9
Makefile
9
Makefile
@@ -44,9 +44,9 @@ clean: clean_pyc
|
|||||||
$(PYTHON) ./setup.py $@
|
$(PYTHON) ./setup.py $@
|
||||||
(cd test && $(MAKE) clean)
|
(cd test && $(MAKE) clean)
|
||||||
|
|
||||||
#: Create source (tarball) and binary (egg) distribution
|
#: Create source (tarball) and wheel distribution
|
||||||
dist:
|
dist:
|
||||||
$(PYTHON) ./setup.py sdist bdist_egg
|
$(PYTHON) ./setup.py sdist bdist_wheel
|
||||||
|
|
||||||
#: Remove .pyc files
|
#: Remove .pyc files
|
||||||
clean_pyc:
|
clean_pyc:
|
||||||
@@ -73,6 +73,11 @@ bdist_egg:
|
|||||||
$(PYTHON) ./setup.py 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
|
# 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.
|
# to do the following. I'm sure distutils will someday get there.
|
||||||
DISTCLEAN_FILES = build dist *.pyc
|
DISTCLEAN_FILES = build dist *.pyc
|
||||||
|
@@ -40,8 +40,6 @@ install_requires = ['spark-parser >= 1.1.1']
|
|||||||
license = 'MIT'
|
license = 'MIT'
|
||||||
mailing_list = 'python-debugger@googlegroups.com'
|
mailing_list = 'python-debugger@googlegroups.com'
|
||||||
modname = 'uncompyle6'
|
modname = 'uncompyle6'
|
||||||
packages = ['uncompyle6', 'uncompyle6.opcodes', 'uncompyle6.semantics', 'uncompyle6.scanners',
|
|
||||||
'uncompyle6.parsers']
|
|
||||||
py_modules = None
|
py_modules = None
|
||||||
short_desc = 'Python byte-code disassembler and source-code converter'
|
short_desc = 'Python byte-code disassembler and source-code converter'
|
||||||
web = 'https://github.com/rocky/python-uncompyle6/'
|
web = 'https://github.com/rocky/python-uncompyle6/'
|
||||||
|
8
setup.py
8
setup.py
@@ -5,10 +5,10 @@
|
|||||||
from __pkginfo__ import \
|
from __pkginfo__ import \
|
||||||
author, author_email, install_requires, \
|
author, author_email, install_requires, \
|
||||||
license, long_description, classifiers, \
|
license, long_description, classifiers, \
|
||||||
modname, packages, py_modules, entry_points, \
|
entry_points, modname, py_modules, \
|
||||||
short_desc, web, zip_safe
|
short_desc, web, zip_safe
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
exec(open('uncompyle6/version.py').read())
|
exec(open('uncompyle6/version.py').read())
|
||||||
|
|
||||||
@@ -21,9 +21,9 @@ setup(
|
|||||||
install_requires = install_requires,
|
install_requires = install_requires,
|
||||||
license = license,
|
license = license,
|
||||||
long_description = long_description,
|
long_description = long_description,
|
||||||
py_modules = py_modules,
|
|
||||||
name = modname,
|
name = modname,
|
||||||
packages = packages,
|
packages = find_packages(),
|
||||||
|
py_modules = py_modules,
|
||||||
test_suite = 'nose.collector',
|
test_suite = 'nose.collector',
|
||||||
url = web,
|
url = web,
|
||||||
setup_requires = ['nose>=1.0'],
|
setup_requires = ['nose>=1.0'],
|
||||||
|
@@ -657,7 +657,10 @@ class FragmentsWalker(pysource.SourceWalker, object):
|
|||||||
if self.version > 3.0:
|
if self.version > 3.0:
|
||||||
currentclass = node[1][0].pattr
|
currentclass = node[1][0].pattr
|
||||||
buildclass = node[0]
|
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]
|
subclass_info = node[0]
|
||||||
else:
|
else:
|
||||||
buildclass = node[0]
|
buildclass = node[0]
|
||||||
|
Reference in New Issue
Block a user