idank / bashlex

Python parser for bash
GNU General Public License v3.0
552 stars 94 forks source link

Cut a new release #38

Closed averms closed 5 years ago

averms commented 5 years ago

Last one was in 2016. Without the additions in the most recent commit, bashlex fails to install for me because it tries to install enum34, which gets used over the standard enum.

Collecting compiledb
  Downloading https://files.pythonhosted.org/packages/20/b8/b0912c8198baf67ebba62c46d21bbb16f03ff072eee782ee659dd11520ee/compiledb-0.9.8.tar.gz
Collecting click (from compiledb)
  Downloading https://files.pythonhosted.org/packages/f8/5c/f60e9d8a1e77005f664b76ff8aeaee5bc05d0a91798afd7f53fc998dbc47/Click-7.0.tar.gz (286kB)
    100% |████████████████████████████████| 286kB 5.8MB/s
Collecting bashlex (from compiledb)
  Using cached https://files.pythonhosted.org/packages/e6/83/8f35a0a430908e5c964fbf31a8e46fbac125d1bbf066a1e26110c618a3ff/bashlex-0.12.tar.gz
Collecting enum34 (from bashlex->compiledb)
  Downloading https://files.pythonhosted.org/packages/bf/3e/31d502c25302814a7c2f1d3959d2a3b3f78e509002ba91aea64993936876/enum34-1.1.6.tar.gz (40kB)
    100% |████████████████████████████████| 40kB 8.5MB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/Users/a3/.local/share/pythons/c/lib/python3.7/site-packages/setuptools/__init__.py", line 6, in <module>
        import distutils.core
      File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 16, in <module>
        from distutils.dist import Distribution
      File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 9, in <module>
        import re
      File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/re.py", line 143, in <module>
        class RegexFlag(enum.IntFlag):
    AttributeError: module 'enum' has no attribute 'IntFlag'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/lz/tm467dx170g12t9bg6mg9h8w0000gn/T/pip-install-vbmmlqvd/enum34/
idank commented 5 years ago

I pushed 0.13. Hope that fixes the errors you're seeing.