Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
cnheider committed Mar 19, 2019
1 parent b5ca5c4 commit 4701247
Show file tree
Hide file tree
Showing 7 changed files with 345 additions and 361 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -10,6 +10,7 @@ parts
__pycache__/
.idea/
#*.py[cod]
*.orig

venv/
*.db
Expand Down
273 changes: 133 additions & 140 deletions NissePackage.py
Expand Up @@ -4,146 +4,139 @@


class NissePackage:

@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 'Nisse'

@property
def url(self) -> str:
return 'https://github.com/cnheider/nisse'

@property
def download_url(self):
return self.url + '/releases'

@property
def readme_type(self):
return 'text/markdown'

@property
def packages(self):
return find_packages(
exclude=[
# 'neodroid/environments'
]
@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 "Nisse"

@property
def url(self) -> str:
return "https://github.com/cnheider/nisse"

@property
def download_url(self):
return self.url + "/releases"

@property
def readme_type(self):
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 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 easing return of multiple values"

@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 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 easing return of multiple values'

@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()

@property
def version(self):
return get_version()
4 changes: 2 additions & 2 deletions nisse/__init__.py
Expand Up @@ -2,6 +2,6 @@
# -*- coding: utf-8 -*-


__author__ = 'cnheider'
__author__ = "cnheider"

from .data_iterator import *
from .data_iterator import *

0 comments on commit 4701247

Please sign in to comment.