File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ publish: distclean version package test
3333 @git push origin ` cat VERSION`
3434
3535$(generatedcode ) : VERSION
36- python3 setup.py donothing
36+ # this will generate the version subpackage inside clams package
37+ python3 setup.py --help
3738
3839# generating jsonschema depends on mmif-python and pydantic
3940docs : mmif := $(shell grep mmif-python requirements.txt)
Original file line number Diff line number Diff line change 11#! /usr/bin/env python3
2- import distutils .cmd
32import os
43from os import path
54import shutil
2524init_mod .write (f'__version__ = "{ version } "' )
2625init_mod .close ()
2726
28-
29- class DoNothing (distutils .cmd .Command ):
30- description = "run base code until `setuptools.setup()` line and exits 0."
31- user_options = []
32-
33- def initialize_options (self ) -> None :
34- pass
35-
36- def finalize_options (self ) -> None :
37- pass
38-
39- def run (self ):
40- pass
41-
42-
43- cmdclass ['donothing' ] = DoNothing
44-
4527setuptools .setup (
4628 name = name ,
4729 version = version ,
@@ -51,12 +33,12 @@ def run(self):
5133 long_description = long_desc ,
5234 long_description_content_type = "text/markdown" ,
5335 url = "https://clams.ai" ,
36+ license = "Apache-2.0" ,
5437 classifiers = [
5538 'Development Status :: 5 - Production/Stable' ,
5639 'Framework :: Flask' ,
5740 'Framework :: Pytest' ,
5841 'Intended Audience :: Developers' ,
59- 'License :: Apache-2.0' ,
6042 'Programming Language :: Python :: 3 :: Only' ,
6143 ],
6244 cmdclass = cmdclass ,
You can’t perform that action at this time.
0 commit comments