Skip to content

Commit

Permalink
Update all references to the GitHub organization: amzn -> amazon-ion
Browse files Browse the repository at this point in the history
  • Loading branch information
popematt committed Jan 19, 2023
1 parent dbd59b1 commit 5226aff
Show file tree
Hide file tree
Showing 13 changed files with 71 additions and 71 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[submodule "ion-tests"]
path = vectors
url = https://github.com/amzn/ion-tests
url = https://github.com/amazon-ion/ion-tests
branch = master
[submodule "ion-c"]
path = ion-c
url = https://github.com/amzn/ion-c
url = https://github.com/amazon-ion/ion-c
branch = master
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ information to effectively respond to your bug report or contribution.

We welcome you to use the GitHub issue tracker to report bugs or suggest features.

When filing an issue, please check [existing open](https://github.com/amzn/ion-python/issues), or [recently closed](https://github.com/amzn/ion-python/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already
When filing an issue, please check [existing open](https://github.com/amazon-ion/ion-python/issues), or [recently closed](https://github.com/amazon-ion/ion-python/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:

* A reproducible test case or series of steps
Expand Down Expand Up @@ -41,7 +41,7 @@ GitHub provides additional document on [forking a repository](https://help.githu


## Finding contributions to work on
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels ((enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/amzn/ion-python/labels/help%20wanted) issues is a great place to start.
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels ((enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/amazon-ion/ion-python/labels/help%20wanted) issues is a great place to start.


## Code of Conduct
Expand All @@ -56,6 +56,6 @@ If you discover a potential security issue in this project we ask that you notif

## Licensing

See the [LICENSE](https://github.com/amzn/ion-python/blob/master/LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
See the [LICENSE](https://github.com/amazon-ion/ion-python/blob/master/LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.

We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes.
14 changes: 7 additions & 7 deletions C_EXTENSION.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ print(timeit.timeit(setup=setup, stmt=code, number=1))
```

#### Experiment Result
`test-driver-report.ion(10n)` are reports generated by [ion-test-driver](https://github.com/amzn/ion-test-driver) which consists of Ion structs and strings.<br/>
`test-driver-report.ion(10n)` are reports generated by [ion-test-driver](https://github.com/amazon-ion/ion-test-driver) which consists of Ion structs and strings.<br/>
`log.ion(10n)` are logs that contain a variety of scalar types, annotations, and nested containers.<br/>

|Files|C extension|Ion Python|Improvement|
Expand All @@ -59,7 +59,7 @@ print(timeit.timeit(setup=setup, stmt=code, number=1))

## Setup

Ensure that cmake is installed. The setup for Ion Python C extension is the same as the original [Ion Python Setup](https://github.com/amzn/ion-python#development). If it runs into any issue during initialization, it will fall back to regular Ion Python. **No extra action needed.**
Ensure that cmake is installed. The setup for Ion Python C extension is the same as the original [Ion Python Setup](https://github.com/amazon-ion/ion-python#development). If it runs into any issue during initialization, it will fall back to regular Ion Python. **No extra action needed.**

C extension is built under `ion-python/amazon/ion` and named according to the following format (may be slightly different depending on your platform) `ionc.cpython-$py_version-$platform.$suffix` (e.g., ionc.cpython-39-darwin.so)

Expand Down Expand Up @@ -93,7 +93,7 @@ After setup, C extension will be built and imported to simpleion module. If ther
### 1. Common Binary Encoding Differences between C Extension and Original Ion Python
Note that both binary encodings are **equivalent**; one encoding is not more "correct" than the other.<br/>

#### 1.1 Different ways to represent a struct's length. Refer to [Amazon Ion Binary Encoding](https://amzn.github.io/ion-docs/docs/binary.html#13-struct) for details.<br/>
#### 1.1 Different ways to represent a struct's length. Refer to [Amazon Ion Binary Encoding](https://amazon-ion.github.io/ion-docs/docs/binary.html#13-struct) for details.<br/>
For Ion struct `{a:2}`:
```text
Text IVM ion_symbol_table::{ symbols:[”a”]} { “a”: 2 }
Expand All @@ -112,10 +112,10 @@ ion Python \xee\x99\x81\x83 \xde\x95 \x87\xbe\x92 \x86annot1\x86annot2\

### 2. Known Issues

1. C extension only supports at most 9 for timestamp precision. Refer to [amzn/ion-python#160](https://github.com/amzn/ion-python/issues/160) for details.
2. C extension only supports at most 34 decimal digits. Refer to [amzn/ion-python#159](https://github.com/amzn/ion-python/issues/159) for details.
3. C extension has a limitation to read large Clob data. Refer to [amzn/ion-python#207](https://github.com/amzn/ion-python/issues/207) for details.
4. For any memory leak issue, please comment on [amzn/ion-python#155](https://github.com/amzn/ion-python/issues/155).
1. C extension only supports at most 9 for timestamp precision. Refer to [amazon-ion/ion-python#160](https://github.com/amazon-ion/ion-python/issues/160) for details.
2. C extension only supports at most 34 decimal digits. Refer to [amazon-ion/ion-python#159](https://github.com/amazon-ion/ion-python/issues/159) for details.
3. C extension has a limitation to read large Clob data. Refer to [amazon-ion/ion-python#207](https://github.com/amazon-ion/ion-python/issues/207) for details.
4. For any memory leak issue, please comment on [amazon-ion/ion-python#155](https://github.com/amazon-ion/ion-python/issues/155).

## TODO

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Amazon Ion Python
An implementation of [Amazon Ion](https://amzn.github.io/ion-docs/)
An implementation of [Amazon Ion](https://amazon-ion.github.io/ion-docs/)
for Python.

[![Build Status](https://travis-ci.org/amzn/ion-python.svg?branch=master)](https://travis-ci.org/amzn/ion-python)
[![Build Status](https://travis-ci.org/amazon-ion/ion-python.svg?branch=master)](https://travis-ci.org/amazon-ion/ion-python)
[![Documentation Status](https://readthedocs.org/projects/ion-python/badge/?version=latest)](https://ion-python.readthedocs.io/en/latest/?badge=latest)

This package is designed to work with **Python 3**. It is intended to work with all stable minor versions. Newer language features will be used as deemed valuable. Support may be dropped for versions more than six months past EOL.
Expand All @@ -18,7 +18,7 @@ python3 -m pip install amazon.ion

Start with the [simpleion](https://ion-python.readthedocs.io/en/latest/amazon.ion.html#module-amazon.ion.simpleion)
module, which provides four APIs (`dump`, `dumps`, `load`, `loads`) that will be familiar to users of Python's
built-in JSON parsing module. Simpleion module's performance is improved by an optional [C extension](https://github.com/amzn/ion-python/blob/master/C_EXTENSION.md).
built-in JSON parsing module. Simpleion module's performance is improved by an optional [C extension](https://github.com/amazon-ion/ion-python/blob/master/C_EXTENSION.md).

For example:

Expand All @@ -31,7 +31,7 @@ For example:
'$ion_1_0 {abc:123}'
```

For additional examples, consult the [cookbook](http://amzn.github.io/ion-docs/guides/cookbook.html).
For additional examples, consult the [cookbook](https://amazon-ion.github.io/ion-docs/guides/cookbook.html).

## Git Setup
This repository contains two [git submodules](https://git-scm.com/docs/git-submodule).
Expand All @@ -41,7 +41,7 @@ The easiest way to clone the `ion-python` repository and initialize its `ion-tes
submodule is to run the following command.

```
$ git clone --recursive https://github.com/amzn/ion-python.git ion-python
$ git clone --recursive https://github.com/amazon-ion/ion-python.git ion-python
```

Alternatively, the submodule may be initialized independently from the clone
Expand Down Expand Up @@ -116,5 +116,5 @@ The following build, deployment, or release tasks are required:
with Ion python and provide a client-side Ion playground.

## Known Issues
[tests/test_vectors.py](https://github.com/amzn/ion-python/blob/master/tests/test_vectors.py#L95) defines skipList variables
[tests/test_vectors.py](https://github.com/amazon-ion/ion-python/blob/master/tests/test_vectors.py#L95) defines skipList variables
referencing test vectors that are not expected to work at this time.
4 changes: 2 additions & 2 deletions amazon/ion/ioncmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static int int_attr_by_name(PyObject* obj, char* attr_name) {
return c_int;
}

// an Alternative to calculate timedelta, see https://github.com/amzn/ion-python/issues/225
// an Alternative to calculate timedelta, see https://github.com/amazon-ion/ion-python/issues/225
static int offset_seconds(PyObject* timedelta) {
PyObject* py_seconds = PyObject_CallMethod(timedelta, "total_seconds", NULL);
PyObject* py_seconds_int = PyObject_CallMethod(py_seconds, "__int__", NULL);
Expand Down Expand Up @@ -1103,7 +1103,7 @@ iERR ionc_read_value(hREADER hreader, ION_TYPE t, PyObject* container, BOOL in_s
case tid_NULL_INT:
{
ION_TYPE null_type;
// Hack for ion-c issue https://github.com/amzn/ion-c/issues/223
// Hack for ion-c issue https://github.com/amazon-ion/ion-c/issues/223
if (original_t != tid_SYMBOL_INT) {
IONCHECK(ion_reader_read_null(hreader, &null_type));
}
Expand Down
2 changes: 1 addition & 1 deletion amazon/ion/writer_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def _symbol_needs_quotes(text):
return text in _ADDITIONAL_SYMBOLS_REQUIRING_QUOTES or _UNQUOTED_SYMBOL_REGEX.search(text) is None

def _serialize_symbol_value(value, suffix=b''):
# TODO Support not quoting operators in s-expressions: http://amzn.github.io/ion-docs/docs/symbols.html
# TODO Support not quoting operators in s-expressions: https://amazon-ion.github.io/ion-docs/docs/symbols.html
try:
text = value.text
if text is None:
Expand Down
2 changes: 1 addition & 1 deletion amazon/ionbenchmark/ion_benchmark_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
from amazon.ionbenchmark.API import API
from amazon.ionbenchmark.Format import Format
from amazon.ionbenchmark.util import str_to_bool, format_percentage, format_decimal, TOOL_VERSION
# Related pypy incompatible issue - https://github.com/amzn/ion-python/issues/227
# Related pypy incompatible issue - https://github.com/amazon-ion/ion-python/issues/227
pypy = platform.python_implementation() == 'PyPy'
if not pypy:
import tracemalloc
Expand Down
2 changes: 1 addition & 1 deletion install.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}
_CURRENT_ION_C_DIR = './ion-c'

_IONC_REPO_URL = "https://github.com/amzn/ion-c.git"
_IONC_REPO_URL = "https://github.com/amazon-ion/ion-c.git"
_IONC_DIR = abspath(join(dirname(os.path.abspath(__file__)), 'ion-c'))
_IONC_LOCATION = abspath(join(dirname(os.path.abspath(__file__)), 'ion-c', 'build', 'release'))
_IONC_INCLUDES_LOCATIONS = {
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def run_setup():
name='amazon.ion',
version='0.10.1',
description='A Python implementation of Amazon Ion.',
url='http://github.com/amzn/ion-python',
url='http://github.com/amazon-ion/ion-python',
author='Amazon Ion Team',
author_email='ion-team@amazon.com',
license='Apache License 2.0',
Expand Down

0 comments on commit 5226aff

Please sign in to comment.