Skip to content

Commit 7a36235

Browse files
committed
Switch from setuptools to hatch
1 parent 69e8420 commit 7a36235

19 files changed

Lines changed: 379 additions & 125 deletions

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 FirebirdSQL
3+
Copyright (c) 2019-present The Firebird Project <www.firebirdsql.org>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,32 @@ The UUID RFC pre-defines four namespaces:
2424

2525
## ISO OID
2626

27-
An OID is a globally unique [ISO](http://www.iso.org/iso/en/ISOOnline.frontpage) identifier. There are multiple ways that this identifier may be represented, and Firebird Foundation has chosen to represent OID registered here using a form that consists only of numbers and dots (e.g., "1.3.6.1.4.1.53446.1"). OIDs are paths in a tree structure, with the left-most number representing the root and the right-most number representing a leaf.
28-
29-
Each OID is created by a Registration Authority. Each of these authorities may, in turn, delegate assignment of new OIDs under it to other registration authorities that work under its auspices, and so on down the line. Eventually, one of these authorities assigns a unique (to it) number that corresponds to a leaf node on the tree. The leaf may represent a registration authority (in which case the OID identifies the authority), or an instance of an object. A registration authority owns the namespace consisting of its sub-tree.
30-
31-
The [Firebird Foundation Incorporated](https://firebirdsql.org/en/firebird-foundation) obtained a [PEN](https://www.iana.org/assignments/enterprise-numbers/enterprise-numbers) (Private Enterprise Number) from [IANA](https://www.iana.org), and thus become a registered owner of OID _1.3.6.1.4.1.53446_ (iso.org.dod.internet.private.enterprise.firebird-foundation-inc). This repository is used to manage sub-tree of OIDs under this namespace, that are used by Firebird Foundation and the [Firebird Project](https://www.firebirdsql.org).
27+
An OID is a globally unique [ISO](http://www.iso.org/iso/en/ISOOnline.frontpage) identifier.
28+
There are multiple ways that this identifier may be represented, and Firebird Foundation has
29+
chosen to represent OID registered here using a form that consists only of numbers and dots
30+
(e.g., "1.3.6.1.4.1.53446.1"). OIDs are paths in a tree structure, with the left-most number
31+
representing the root and the right-most number representing a leaf.
32+
33+
Each OID is created by a Registration Authority. Each of these authorities may, in turn,
34+
delegate assignment of new OIDs under it to other registration authorities that work under its
35+
auspices, and so on down the line. Eventually, one of these authorities assigns a unique (to it)
36+
number that corresponds to a leaf node on the tree. The leaf may represent a registration authority
37+
(in which case the OID identifies the authority), or an instance of an object. A registration
38+
authority owns the namespace consisting of its sub-tree.
39+
40+
The [Firebird Foundation Incorporated](https://firebirdsql.org/en/firebird-foundation) obtained
41+
a [PEN](https://www.iana.org/assignments/enterprise-numbers/enterprise-numbers) (Private Enterprise
42+
Number) from [IANA](https://www.iana.org), and thus become a registered owner of OID _1.3.6.1.4.1.53446_
43+
(iso.org.dod.internet.private.enterprise.firebird-foundation-inc). This repository is used to manage
44+
sub-tree of OIDs under this namespace, that are used by Firebird Foundation and
45+
the [Firebird Project](https://www.firebirdsql.org).
3246

3347
# How it works
3448

35-
The OID hierarchy is controlled by a set of YAML files, each file describing one level in the tree hierarchy (that is, the root node of the child tree and all assigned nodes for children). The `root.oid` file describes the OID of highest level (assigned by IANA).
49+
The OID hierarchy is controlled by a set of YAML files, each file describing one level
50+
in the tree hierarchy (that is, the root node of the child tree and all assigned nodes
51+
for children). The [root.oid](https://github.com/FirebirdSQL/firebird-uuid/blob/master/root.oid) file
52+
in this repository describes the OID of highest level (assigned by IANA).
3653

3754
Each file has the following format:
3855

@@ -62,7 +79,10 @@ children:
6279
6380
**All fields must be present, and if not specified otherwise, they must have a value.**
6481
65-
Fields `name`,`description`,`contact`,`email` and `site` in `children` record SHOULD have the same values like fields of the same name in `node` record of the YAML file describing the child node. If they differ in content, the values present in `node` record take precedence over values present in `children` record.
82+
Fields `name`,`description`,`contact`,`email` and `site` in `children` record SHOULD have
83+
the same values like fields of the same name in `node` record of the YAML file describing
84+
the child node. If they differ in content, the values present in `node` record take precedence
85+
over values present in `children` record.
6686

6787
# Using OIDs to generate UUIDs
6888

@@ -82,3 +102,7 @@ python:
82102
UUID('6f8c9fea-acfa-5b49-af8a-11aca8d0c4a0')
83103
```
84104

105+
# Python package for work with Firebird OID namespace
106+
107+
The Firebird Project provides [firebird-uuid](https://pypi.org/project/firebird-uuid/) Python package
108+
for work with OID hierarchy definitions in format defined above.

python/CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Change Log
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
5+
and this project adheres to [Semantic Versioning](http://semver.org/).
6+
7+
## [Unreleased] - yyyy-mm-dd
8+
9+
### Changed
10+
11+
- Update dependency to firebird-base >=1.6.1
12+
- Build system changed from setuptools to hatch
13+
- Package version is now defined in firebird.uuid.__about__.py (__version__)
14+
15+
### Added
16+
17+
- Stub pytest test
18+
19+
## [0.2.0] - 2023-03-02
20+
21+
### Changed
22+
23+
- Refactoring
24+
25+
### Added
26+
27+
- Documentation.
28+
29+
## [0.1.0] - 2022-11-28
30+
31+
Initial release.
32+

python/LICENSE

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
MIT License
22

3-
Copyright (c) 2018-2020 Firebird Project (www.firebirdsql.org)
3+
Copyright (c) 2022-present The Firebird Project <www.firebirdsql.org>
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
1111

12-
The above copyright notice and this permission notice shall be included in all
12+
The above copyright notice and this permission notice shall be included in all
1313
copies or substantial portions of the Software.
1414

15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
16+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
17+
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
18+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
20+
OR OTHER DEALINGS IN THE SOFTWARE.

python/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# firebird-uuid
2+
3+
[![PyPI - Version](https://img.shields.io/pypi/v/firebird-uuid.svg)](https://pypi.org/project/firebird-uuid)
4+
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/firebird-uuid.svg)](https://pypi.org/project/firebird-uuid)
5+
[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)
6+
7+
This package provides official tools for working with the OID namespace managed by the Firebird Project.
8+
9+
-----
10+
11+
**Table of Contents**
12+
13+
- [Installation](#installation)
14+
- [License](#license)
15+
- [Documentation](#documentation)
16+
17+
## Installation
18+
19+
```console
20+
pip install firebird-uuid
21+
```
22+
23+
## License
24+
25+
`firebird-uuid` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
26+
27+
## Documentation
28+
29+
The documentation for this package is available at [https://firebird-uuid.readthedocs.io](https://firebird-uuid.readthedocs.io)

python/README.rst

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

python/docs/changelog.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
Changelog
33
#########
44

5+
Version 0.3.0
6+
=============
7+
8+
* Switch from setuptools to `hatch <https://hatch.pypa.io/latest/>`_.
9+
* Update dependency to firebird-base >=1.6.1
10+
* Package version is now defined in firebird.uuid.__about__.py (__version__)
11+
512
Version 0.2.0
613
=============
714

python/docs/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# https://www.sphinx-doc.org/en/master/usage/configuration.html
55

66
import sphinx_bootstrap_theme
7+
from firebird.uuid.__about__ import __version__
78

89
# -- Project information -----------------------------------------------------
910
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
@@ -13,10 +14,10 @@
1314
author = 'Pavel Císař'
1415

1516
# The short X.Y version
16-
version = '0.2.0'
17+
version = __version__
1718

1819
# The full version, including alpha/beta/rc tags
19-
release = '0.2.0'
20+
release = __version__
2021

2122
# -- General configuration ---------------------------------------------------
2223
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

python/docs/index.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
Firebird UUID Management
33
########################
44

5-
The `firebird-uuid` package provides official tools to work with OID namespace maintained
6-
by `Firebird Project`_.
7-
5+
The `firebird-uuid` package provides the official tools for working with the OID namespace
6+
managed by the `Firebird project`_.
87

98
Content
109
*******

python/docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
sphinx-bootstrap-theme>=0.8.1
2-
sphinx-autodoc-typehints>=1.19.4
3-
sphinx>=5.3
2+
sphinx-autodoc-typehints>=1.24.0
3+
sphinx>=7.1
44
./python

0 commit comments

Comments
 (0)