Skip to content

Commit 73ba5bd

Browse files
authored
Merge pull request #20 from AI-Hypercomputer/lukebaumann-patch-1
Preparing for releasing on PyPI.
2 parents e10992a + 55a1ed0 commit 73ba5bd

File tree

4 files changed

+98
-34
lines changed

4 files changed

+98
-34
lines changed

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Changelog
2+
3+
<!--
4+
5+
Changelog follow the https://keepachangelog.com/ standard (at least the headers)
6+
7+
This allow to:
8+
9+
* auto-parsing release notes during the automated releases from github-action:
10+
https://github.com/marketplace/actions/pypi-github-auto-release
11+
* Have clickable headers in the rendered markdown
12+
13+
To release a new version (e.g. from `1.0.0` -> `2.0.0`):
14+
15+
* Create a new `# [2.0.0] - YYYY-MM-DD` header and add the current
16+
`[Unreleased]` notes.
17+
* At the end of the file:
18+
* Define the new link url:
19+
`[2.0.0]: https://github.com/google-research/my_project/compare/v1.0.0...v2.0.0`
20+
* Update the `[Unreleased]` url: `v1.0.0...HEAD` -> `v2.0.0...HEAD`
21+
22+
-->
23+
24+
## [Unreleased]
25+
* Updated `setup.py` to `pyproject.toml`
26+
* Added this changelog
27+
28+
## [0.0.6] - 2024-10-10
29+
* Decreased logging severity for most logs
30+
* Persistence enabled
31+
* General argument type fixes
32+
33+
[Unreleased]: https://github.com/AI-Hypercomputer/pathways-utils/compare/v0.0.6...HEAD
34+

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
Package of Pathways-on-Cloud utilities
1+
# Package of Pathways-on-Cloud utilities
22

3-
For customers to utilize Pathways-on-Cloud, there are several in changes that need to be made to the user job. We want to encapsulate these changes to a single Python package for two primary reasons. First, most of the changes are temporary patches that will not be needed long-term. Second, several of the changes follow anti-patterns and we want to confine them to a single repository.
3+
For customers to utilize Pathways-on-Cloud, there are several changes needed by
4+
the user job. We encapsulate these changes in a single Python package for two
5+
primary reasons. First, some of the changes are temporary patches that will not
6+
be needed long-term. Second, several of the changes follow anti-patterns and
7+
are now confined to a single repository.

pyproject.toml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
[project]
2+
# Project metadata. Available keys are documented at:
3+
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata
4+
name = "pathwaysutils"
5+
readme = "README.md"
6+
requires-python = ">=3.10"
7+
license = {file = "LICENSE"}
8+
authors = [{name = "Pathways-on-Cloud Utilities Developers", email="[email protected]"}]
9+
classifiers = [ # List of https://pypi.org/classifiers/
10+
"License :: OSI Approved :: Apache Software License",
11+
]
12+
keywords = []
13+
14+
dependencies = [
15+
"absl-py",
16+
"fastapi",
17+
"google-cloud-logging",
18+
"jax>=0.4.26",
19+
"orbax-checkpoint",
20+
"uvicorn",
21+
]
22+
23+
# `version` is automatically set by flit to use `my_project.__version__`
24+
# `description` is automatically set by flit to use `my_project.__doc__`
25+
dynamic = ["version", "description"]
26+
27+
[project.urls]
28+
homepage = "https://github.com/AI-Hypercomputer/pathways-utils"
29+
repository = "https://github.com/AI-Hypercomputer/pathways-utils"
30+
changelog = "https://github.com/AI-Hypercomputer/pathways-utils/blob/main/CHANGELOG.md"
31+
# documentation = ""
32+
33+
[project.optional-dependencies]
34+
# Development deps (unittest, linting, formating,...)
35+
# Installed through `pip install -e .[dev]`
36+
dev = [
37+
"pytest",
38+
"pytest-xdist",
39+
"pylint>=2.6.0",
40+
"pyink",
41+
]
42+
43+
[tool.pyink]
44+
# Formatting configuration to follow Google style-guide
45+
line-length = 80
46+
unstable = true
47+
pyink-indentation = 2
48+
pyink-use-majority-quotes = true
49+
50+
[build-system]
51+
requires = ["flit_core >=3.8,<4"]
52+
build-backend = "flit_core.buildapi"
53+
54+
[tool.flit.sdist]
55+
exclude = [
56+
"**/*_test.py",
57+
]
58+

setup.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)