Skip to content

Commit

Permalink
Merge pull request #191 from geopython/issue-175
Browse files Browse the repository at this point in the history
fix distributions for pure ISO and WCMP1
  • Loading branch information
tomkralidis authored Nov 25, 2022
2 parents b19eb75 + 464c467 commit ea4c94d
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 20 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ cd my-env
. bin/activate
git clone https://github.com/geopython/pygeometa.git
cd pygeometa
python setup.py build
python setup.py install
python3 setup.py build
python3 setup.py install
```

## Running
Expand Down Expand Up @@ -113,7 +113,7 @@ Same as installing a package. Use a virtualenv. Also install developer
requirements:

```bash
pip install -r requirements-dev.txt
pip3 install -r requirements-dev.txt
```

### Adding a Metadata Schema to the Core
Expand Down Expand Up @@ -156,10 +156,10 @@ vi pygeometa/schemas/foo/__init__.py

```bash
# via setuptools
python setup.py test
python3 setup.py test
# manually
cd tests
python run_tests.py
python3 run_tests.py
```

## Releasing
Expand All @@ -175,7 +175,7 @@ git tag -a x.y.z -m 'tagging release x.y.z'
# push tag
git push --tags
rm -fr build dist *.egg-info
python setup.py sdist bdist_wheel --universal
python3 setup.py sdist bdist_wheel --universal
twine upload dist/*
```

Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cd pygeometa
# download pygeometa from GitHub
git clone https://github.com/geopython/pygeometa.git
# install required dependencies
pip install -r requirements-dev.txt
pip3 install -r requirements-dev.txt
cd pygeometa/doc
# build the website
mkdocs build
Expand Down
14 changes: 7 additions & 7 deletions docs/content/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ You require Python 3 or greater to use pygeometa.
The easiest way to install pygeometa is using pip:

```bash
pip install pygeometa
pip3 install pygeometa
```

This will install the latest stable release. If you are looking to work with
Expand Down Expand Up @@ -90,8 +90,8 @@ cd my-env
. bin/activate
git clone https://github.com/geopython/pygeometa.git
cd pygeometa
python setup.py build
python setup.py install
python3 setup.py build
python3 setup.py install
```

### Using the API from Python
Expand Down Expand Up @@ -127,7 +127,7 @@ Same as installing a package. Use a virtualenv. Also install developer
requirements:

```bash
pip install -r requirements-dev.txt
pip3 install -r requirements-dev.txt
```

### Adding a Metadata Schema to the Core
Expand Down Expand Up @@ -171,16 +171,16 @@ vi pygeometa/schemas/foo/__init__.py

```bash
# via distutils
python setup.py test
python3 setup.py test
# manually
cd tests
python run_tests.py
python3 run_tests.py
```

## Releasing

```bash
python setup.py sdist bdist_wheel --universal
python3 setup.py sdist bdist_wheel --universal
twine upload dist/*
```

Expand Down
3 changes: 1 addition & 2 deletions pygeometa/schemas/iso19139/main.j2
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,7 @@
{% endif %}
<gmd:transferOptions>
<gmd:MD_DigitalTransferOptions>
{% set formats = prune_transfer_option(record['distribution'], record['identification']['language']) %}
{% for v in formats %}
{% for v in record['distribution'].values() %}
<gmd:onLine>
<gmd:CI_OnlineResource>
<gmd:linkage>
Expand Down
3 changes: 1 addition & 2 deletions pygeometa/schemas/iso19139_2/main.j2
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,7 @@
{% endif %}
<gmd:transferOptions>
<gmd:MD_DigitalTransferOptions>
{% set formats = prune_transfer_option(record['distribution'], record['identification']['language']) %}
{% for v in formats %}
{% for v in record['distribution'].values() %}
<gmd:onLine>
<gmd:CI_OnlineResource>
<gmd:linkage>
Expand Down
3 changes: 1 addition & 2 deletions pygeometa/schemas/wmo_cmp/main.j2
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,7 @@
{% endif %}
<gmd:transferOptions>
<gmd:MD_DigitalTransferOptions>
{% set formats = prune_transfer_option(record['distribution'], record['identification']['language']) %}
{% for v in formats %}
{% for v in record['distribution'].values() %}
<gmd:onLine>
<gmd:CI_OnlineResource>
<gmd:linkage>
Expand Down

0 comments on commit ea4c94d

Please sign in to comment.