Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release v1 #102

Merged
merged 8 commits into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions cats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,14 @@ def parse_arguments():
cats -d 90 --loc OX1 -s at -c 'mycommand'

To report carbon footprint, pass the `--config` option to select a
configuration file and the `--profile` option to select a profile. An
configuration file and the `--profile` option to select a profile.
The configuration file is documented in the Quickstart section of the online
documentation. An
example config file is given below:

{config_text}
.. code-block:: yaml

The configuration file is documented in the Quickstart section of the online
documentation.
{config_text}
"""

parser = ArgumentParser(
Expand Down Expand Up @@ -226,7 +227,7 @@ def schedule_at(
"""
proc = subprocess.Popen(args, stdout=subprocess.PIPE)
try:
proc_output = subprocess.check_output(
subprocess.check_output(
(
at_command,
"-t",
Expand Down
10 changes: 2 additions & 8 deletions docs/source/api-reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,10 @@ please see :ref:`cli-reference`.
Modules
-------

``cats.__init__``
``cats``
^^^^^^^^^^^^^^^^^

.. automodule:: cats.__init__
:members:

``cats.__main__``
^^^^^^^^^^^^^^^^^

.. automodule:: cats.__main__
.. automodule:: cats
:members:

``cats.configure``
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
author = authors
copyright = f"2023, {authors}"
# The full version, including alpha/beta/rc tags
release = "0.1.0"
release = "1.0.0"
abhidg marked this conversation as resolved.
Show resolved Hide resolved

# Add media: image for logo and a favicon for the browser tab
html_logo = "_static/cats_dalle_img_200x200px_for_logo.png"
Expand Down
4 changes: 2 additions & 2 deletions docs/source/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ quantity of hardware the job using. This information is provided by
adding a section ``profiles`` to the :ref:`cats YAML configuration
file <configuration-file>`.

You can define an arbitraty number of profiles as subsection of the
You can define an arbitrary number of profiles as subsection of the
top-level ``profiles`` section:

.. literalinclude :: ../../cats/config.yml
Expand Down Expand Up @@ -106,6 +106,6 @@ at the command line:
--profile my_gpu_profile --gpu 4 --cpu 1

.. warning::
The ``--profile`` option is optional. Is not provided, ``cats`` uses the
The ``--profile`` option is optional. If not provided, ``cats`` uses the
first profile defined in the configuration file as the default
profile.
11 changes: 9 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

[project]
name = "climate-aware-task-scheduler"
version = "1.0rc1"
version = "1.0.0"
description = "Climate aware task scheduler"
authors = [
{ name = "Colin Sauze" },
Expand All @@ -25,7 +25,14 @@
license = { file = "LICENSE" }
requires-python = ">=3.9"
readme = "README.md"
classifiers = ["License :: OSI Approved :: MIT License"]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
abhidg marked this conversation as resolved.
Show resolved Hide resolved
"Environment :: Console",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
]
dependencies = ["requests-cache>=1.0", "PyYAML>=6.0"]

[project.optional-dependencies]
Expand Down