2727from setuptools import find_packages
2828from setuptools import setup
2929from setuptools .command import install
30- from setuptools .command import test
3130
3231PLATFORM = platform .system ()
3332
@@ -142,16 +141,6 @@ def run(self):
142141 install .install .run (self )
143142
144143
145- class TestCommand (test .test ):
146- """Prepends path to generated sources before running unit tests."""
147-
148- def run (self ):
149- # Generate ctypes bindings in-place so that they can be imported in tests.
150- self .reinitialize_command ('build_mjbindings' , inplace = 1 )
151- self .run_command ('build_mjbindings' )
152- test .test .run (self )
153-
154-
155144def find_data_files (package_dir , patterns , excludes = ()):
156145 """Recursively finds files whose names match the given shell patterns."""
157146 paths = set ()
@@ -192,10 +181,7 @@ def is_excluded(s):
192181 author = 'DeepMind' ,
193182 author_email = 'mujoco@deepmind.com' ,
194183 url = 'https://github.com/google-deepmind/dm_control' ,
195- license = 'Apache License 2.0' ,
196- classifiers = [
197- 'License :: OSI Approved :: Apache Software License' ,
198- ],
184+ license = 'Apache-2.0' ,
199185 keywords = 'machine learning control physics MuJoCo AI' ,
200186 python_requires = '>=3.9' ,
201187 install_requires = [
@@ -205,9 +191,9 @@ def is_excluded(s):
205191 'glfw' ,
206192 'labmaze' ,
207193 'lxml' ,
208- 'mujoco >= 3.3.4 ' ,
194+ 'mujoco >= 3.3.5 ' ,
209195 'numpy >= 1.9.0' ,
210- 'protobuf >= 3.19.4' , # TensorFlow requires protobuf<3.20 (b/182876485)
196+ 'protobuf >= 3.19.4' ,
211197 'pyopengl >= 3.1.4' ,
212198 'pyparsing >= 3.0.0' ,
213199 'requests' ,
@@ -220,10 +206,9 @@ def is_excluded(s):
220206 },
221207 tests_require = [
222208 'mock' ,
223- 'nose ' ,
209+ 'pytest ' ,
224210 'pillow>=10.2.0' ,
225211 ],
226- test_suite = 'nose.collector' ,
227212 packages = find_packages (),
228213 package_data = {
229214 'dm_control' : find_data_files (
@@ -247,7 +232,6 @@ def is_excluded(s):
247232 cmdclass = {
248233 'build_mjbindings' : BuildMJBindingsCommand ,
249234 'install' : InstallCommand ,
250- 'test' : TestCommand ,
251235 },
252236 entry_points = {},
253237)
0 commit comments