-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4f784b
commit 0e00aa9
Showing
7 changed files
with
66 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Publish Python | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
build_sdist: | ||
name: Build source distribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- run: python setup.py sdist | ||
working-directory: python | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: undr-sdist | ||
path: python/dist/*.tar.gz | ||
upload_pypi: | ||
name: Upload to PyPI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: undr-sdist | ||
path: dist | ||
- uses: pypa/gh-action-pypi-publish@v1.5.0 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ __pycache__ | |
*.egg-info | ||
scripts/**/input | ||
scripts/**/output | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,38 @@ | ||
# undrdg | ||
UNDRDG provides building blocks to convert existing datasets to the UNDR format. | ||
|
||
UNDR Dataset Generator | ||
The scripts used to convert the datasets that we re-distribute can be found in _scripts_. The converted datasets can be browsed at https://www.undr.space. | ||
|
||
## Contribute | ||
# Use UNDRDG in your own project | ||
|
||
```sh | ||
python3 -m pip install undrdg | ||
``` | ||
|
||
See _scripts_ for usage examples. | ||
|
||
# Add scripts to this directory | ||
|
||
```sh | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
pip install -e . | ||
pip install -r scripts/requirements.txt | ||
``` | ||
|
||
# Contribute to UNDRDG | ||
|
||
1. Install the development version | ||
|
||
```sh | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
pip remove undrdg # to avoid name clashes | ||
pip install -e . | ||
``` | ||
|
||
2. Edit files in _undrg_. Changes are automatically reflected in scripts that import the library. | ||
|
||
3. Format and lint. | ||
|
||
```sh | ||
isort .; black .; pyright . | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
matplotlib | ||
#undrdg | ||
undrdg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
__version__ = "0.1.0" | ||
__version__ = "0.1.1" | ||
"""UNDRDG's version, conforms to Semantic Versioning 2.0.0. | ||
""" |