-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from SpiNNakerManchester/pyproject.toml
Pyproject.toml
- Loading branch information
Showing
34 changed files
with
223 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
include CITATION.cff LICENSE.md requirements.txt pypi_to_import | ||
include LICENSE LICENSE_POLICY.md README.rst CITATION.cff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright (c) 2023 The University of Manchester | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Copyright (c) 2023 The University of Manchester | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
[metadata] | ||
name = spalloc | ||
version = attr: spalloc_client._version.__version__ | ||
description = A client for the spalloc_server SpiNNaker machine partitioning and allocation system. | ||
#long_description = file: README.rst | ||
#long_description_content_type = text/x-rst | ||
url = https://github.com/SpiNNakerManchester/spalloc | ||
license = Apache-2.0 | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Intended Audience :: Developers | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: Apache License 2.0 | ||
Natural Language :: English | ||
Operating System :: POSIX :: Linux | ||
Operating System :: Microsoft :: Windows | ||
Operating System :: MacOS | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.11 | ||
maintainer = SpiNNakerTeam | ||
maintainer_email = [email protected] | ||
keywords = | ||
spinnaker | ||
allocation | ||
packing management | ||
supercomputer | ||
|
||
[options] | ||
python_requires = >=3.7, <4 | ||
packages = find: | ||
zip_safe = True | ||
include_package_data = True | ||
install_requires = | ||
jsonschema | ||
SpiNNUtilities == 1!6.0.1 | ||
|
||
[options.packages.find] | ||
include = | ||
spalloc_client | ||
spalloc_client.* | ||
|
||
[options.extras_require] | ||
test = | ||
# pytest will be brought in by pytest-cov | ||
pytest-cov | ||
mock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,64 +12,22 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from setuptools import setup, find_packages | ||
|
||
__version__ = None | ||
exec(open("spalloc/_version.py").read()) | ||
assert __version__ | ||
|
||
setup( | ||
name="spalloc", | ||
version=__version__, | ||
packages=find_packages(), | ||
|
||
# Metadata for PyPi | ||
url="https://github.com/SpiNNakerManchester/spalloc", | ||
description="A client for the spalloc_server SpiNNaker machine " | ||
"partitioning and allocation system.", | ||
license="GPLv2", | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
|
||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
|
||
"License :: OSI Approved :: Apache License 2.0", | ||
|
||
"Natural Language :: English", | ||
|
||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: MacOS", | ||
|
||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
], | ||
keywords="spinnaker allocation packing management supercomputer", | ||
|
||
# Requirements | ||
install_requires=['SpiNNUtilities == 1!6.0.1'], | ||
# Scripts | ||
entry_points={ | ||
"console_scripts": [ | ||
"spalloc = spalloc.scripts.alloc:main", | ||
"spalloc-ps = spalloc.scripts.ps:main", | ||
"spalloc-job = spalloc.scripts.job:main", | ||
"spalloc-machine = spalloc.scripts.machine:main", | ||
"spalloc-where-is = spalloc.scripts.where_is:main", | ||
], | ||
}, | ||
# Booting directly needs rig; not recommended! Use SpiNNMan instead, as | ||
# that has an up-to-date boot image pre-built | ||
# Note rig does not work with python 3.11 and there are NO plans to fix it | ||
extras_require={ | ||
'boot': [ | ||
'rig', | ||
]}, | ||
maintainer="SpiNNakerTeam", | ||
maintainer_email="[email protected]" | ||
) | ||
import distutils.dir_util | ||
from setuptools import setup | ||
import os | ||
import sys | ||
|
||
|
||
if __name__ == '__main__': | ||
# Repeated installs assume files have not changed | ||
# https://github.com/pypa/setuptools/issues/3236 | ||
if len(sys.argv) > 0 and sys.argv[1] == 'egg_info': | ||
# on the first call to setpy.py remove files left by previous install | ||
this_dir = os.path.dirname(os.path.abspath(__file__)) | ||
build_dir = os.path.join(this_dir, "build") | ||
if os.path.isdir(build_dir): | ||
distutils.dir_util.remove_tree(build_dir) | ||
egg_dir = os.path.join(this_dir, "spalloc.egg-info") | ||
if os.path.isdir(egg_dir): | ||
distutils.dir_util.remove_tree(egg_dir) | ||
setup() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.