Skip to content

Commit a292241

Browse files
committed
fixed setup.py dummy subcommand issue
1 parent 5e4228c commit a292241

2 files changed

Lines changed: 3 additions & 20 deletions

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
3940
docs: mmif := $(shell grep mmif-python requirements.txt)

setup.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#! /usr/bin/env python3
2-
import distutils.cmd
32
import os
43
from os import path
54
import shutil
@@ -25,23 +24,6 @@
2524
init_mod.write(f'__version__ = "{version}"')
2625
init_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-
4527
setuptools.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,

0 commit comments

Comments
 (0)