Browse Source

preparing for pypi release

Mathew Guest 6 months ago
parent
commit
076e609b80
6 changed files with 37 additions and 9 deletions
  1. 0 0
      LICENSE.txt
  2. 0 0
      MANIFEST.in
  3. 6 0
      app_skellington/_util.py
  4. 1 2
      app_skellington/cli.py
  5. 3 0
      setup.cfg
  6. 27 7
      setup.py

LICENSE-MIT → LICENSE.txt


+ 0 - 0
MANIFEST.in


+ 6 - 0
app_skellington/_util.py

@@ -64,6 +64,12 @@ def get_asset(module, filepath):
         filepath: the relative filepath of the file to look for in the
             package directory.
     """
+    # NOTE(MG) setuptools suggests using pkg_resources ResourceManager API
+    # to perform this.
+    # import pkg_resources
+    # my_data = pkg_resources.resource_string(__name__, "foo.dat")
+    # https://setuptools.readthedocs.io/en/latest/pkg_resources.html#resourcemanager-api
+
     if isinstance(module, str):
         module_file = sys.modules[module].__file__
     elif isinstance(module, module):

+ 1 - 2
app_skellington/cli.py

@@ -66,8 +66,7 @@ class CommandTree:
         self._single_command = None
 
     def print_tree(self):
-        import pprint
-        pprint.pprint(self.entries)
+        raise NotImplemented
 
     def add_argument(self, *args, **kwargs):
         """

+ 3 - 0
setup.cfg

@@ -0,0 +1,3 @@
+[metadata]
+description-file = README.md
+

+ 27 - 7
setup.py

@@ -21,19 +21,39 @@ __project__ = 'app_skellington'
 __version__ = '0.1.0'
 
 setup(
-    name = __project__,
-    version = __version__,
-    description = 'A high-powered 2-level CLI framework',
-    author = 'Mathew Guest',
-    author_email = 'mathewguest@gmail.com',
-    url = 'https://git-mirror.zavage-software.com',
+    name            = __project__,
+    version         = __version__,
+    description     = 'A high-powered 2-level CLI framework',
+    author          = 'Mathew Guest',
+    author_email    = 't3h.zavage@gmail.com',
+    url             = 'https://git-mirror.zavage-software.com/Mirror/app_skellington',
+    license         = 'MIT',
+
+    python_requires = '>=3',
+
+    classifiers = [
+        'Development Status :: 3 - Alpha',
+        'Environment :: Console',
+        'Framework :: Pytest',
+        'Intended Audience :: Developers',
+        'Intended Audience :: System Administrators',
+        'License :: OSI Approved :: MIT License',
+        'Natural Language :: English',
+        'Operating System :: MacOS',
+        'Operating System :: Microsoft',
+        'Operating System :: Microsoft :: Windows',
+        'Operating System :: OS Independent',
+        'Operating System :: POSIX',
+        'Operating System :: POSIX :: Linux',
+        'Topic :: Software Development :: Libraries',
+        'Topic :: Utilities'
+    ],
 
     # Third-party dependencies; will be automatically installed
     install_requires = (
       'appdirs',
       'configobj',
       'colorlog',
-      'pprint',
     ),
 
     # Local packages to be installed (our packages)