123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- from setuptools import find_packages
- from version import get_version
- class DraugrPackage:
- @property
- def test_dependencies(self) -> list:
- return [
- 'pytest',
- 'mock'
- ]
-
- @property
- def setup_dependencies(self) -> list:
- return [
- 'pytest-runner'
- ]
- @property
- def package_name(self) -> str:
- return 'Draugr'
- @property
- def url(self) -> str:
- return 'https://github.com/cnheider/draugr'
- @property
- def download_url(self) -> str:
- return self.url + '/releases'
- @property
- def readme_type(self) -> str:
- return 'text/markdown'
- @property
- def packages(self):
- return find_packages(
- exclude=[
- # 'neodroid/environments'
- ]
- )
- @property
- def author_name(self):
- return 'Christian Heider Nielsen'
- @property
- def author_email(self):
- return 'cnheider@yandex.com'
- @property
- def maintainer_name(self):
- return self.author_name
- @property
- def maintainer_email(self):
- return self.author_email
- @property
- def package_data(self):
- # data = glob.glob('environments/mab/**', recursive=True)
- return {
- # 'neodroid':[
- # *data
- # 'environments/mab/**',
- # 'environments/mab/**_Data/*',
- # 'environments/mab/windows/*'
- # 'environments/mab/windows/*_Data/*'
- # ]
- }
- @property
- def entry_points(self):
- return {
- 'console_scripts':[
- # "name_of_executable = module.with:function_to_execute"
- # 'neodroid-ppo = agents.ppo_agent:main',
- ]
- }
- @property
- def extras(self):
- these_extras = {
- # 'GUI':['kivy'],
- # 'mab':['neodroid-linux-mab; platform_system == "Linux"',
- # 'neodroid-win-mab platform_system == "Windows"']
- }
- all_dependencies = []
- for group_name in these_extras:
- all_dependencies += these_extras[group_name]
- these_extras['all'] = all_dependencies
- return these_extras
- @property
- def requirements(self) -> list:
- requirements_out = []
- with open('requirements.txt') as f:
- requirements = f.readlines()
- for requirement in requirements:
- requirements_out.append(requirement.strip())
- return requirements_out
- @property
- def description(self):
- return 'A package for plotting directly in your terminal'
- @property
- def readme(self):
- with open('README.md') as f:
- return f.read()
- @property
- def keyword(self):
- with open('KEYWORDS.md') as f:
- return f.read()
- @property
- def license(self):
- return 'Apache License, Version 2.0'
- @property
- def classifiers(self):
- return [
- 'Development Status :: 4 - Beta',
- 'Environment :: Console',
- 'Intended Audience :: End Users/Desktop',
- 'Intended Audience :: Developers',
- 'License :: OSI Approved :: Apache Software License',
- 'Operating System :: MacOS :: MacOS X',
- 'Operating System :: Microsoft :: Windows',
- 'Operating System :: POSIX',
- 'Operating System :: OS Independent',
- 'Programming Language :: Python :: 3',
- 'Natural Language :: English',
- # 'Topic :: Scientific/Engineering :: Artificial Intelligence'
- # 'Topic :: Software Development :: Bug Tracking',
- ]
- @property
- def version(self):
- return get_version()
|