Commits

Ronald Oussoren  committed a4d8fc1

small tweaks

  • Participants
  • Parent commits d618cb0
  • Tags modulegraph-0.9

Comments (0)

Files changed (10)

 def get_version():
     fn = os.path.join(
         os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
-        'setup.py')
+        'setup.cfg')
     for ln in open(fn):
-        if ln.startswith('VERSION'):
+        if ln.startswith('version'):
             version = ln.split('=')[-1].strip()[1:-1]
             return version
 

File modulegraph_tests/test_modulegraph.py

 
     @expectedFailure
     def test_ensure_fromlist(self):
+        # 1. basic 'from module import name, name'
+        # 2. 'from module import *'
+        # 3. from module import os 
+        #    (where 'os' is not a name in 'module',
+        #     should create MissingModule node, and
+        #     should *not* refer to the global os)
         self.fail("ensure_fromlist")
 
     @expectedFailure
     def test_find_all_submodules(self):
+        # 1. basic
+        # 2. no packagepath (basic module)
+        # 3. extensions, python modules
+        # 4. with/without zipfile
+        # 5. files that aren't python modules/extensions
         self.fail("find_all_submodules")
 
     @expectedFailure

File modulegraph_tests/testdata/syspath.egg

Binary file added.

File modulegraph_tests/testdata/syspath.zip

Binary file added.

File modulegraph_tests/testdata/syspath/myext.pyd

+""" fake extension """

File modulegraph_tests/testdata/syspath/myext.so

+""" fake extension """

File modulegraph_tests/testdata/syspath/mymodule.py

+"""
+some module
+"""

File modulegraph_tests/testdata/syspath/mymodule3.py

+"""  fake module """

File modulegraph_tests/testdata/syspath/mypkg/__init__.py

+""" fake package """
     _opt_value(cfg, metadata, 'metadata', 'author_email')
     _opt_value(cfg, metadata, 'metadata', 'url')
     _opt_value(cfg, metadata, 'metadata', 'download_url')
-    _opt_value(cfg, metadata, 'metadata', 'classifiers', _as_list)
+    _opt_value(cfg, metadata, 'metadata', 'classifiers', _as_lines)
     _opt_value(cfg, metadata, 'metadata', 'platforms', _as_list)
     _opt_value(cfg, metadata, 'metadata', 'packages', _as_list)
     _opt_value(cfg, metadata, 'metadata', 'install_requires', _as_lines)