-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into renerichter-rl
- Loading branch information
Showing
21 changed files
with
1,446 additions
and
777 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,32 @@ | ||
## Bug reports | ||
Please be as specific as you can, ideally with code to recreate the issue. | ||
|
||
|
||
# Code contribution workflow | ||
First off, thanks for taking the time! | ||
Please feel free to contact me with questions. | ||
|
||
1. Fork the repo, then clone it and install in the editable mode: | ||
```bash | ||
git clone git@github.com:YOURNAME/tiler.git && cd tiler | ||
pip install -e .[all] | ||
``` | ||
|
||
2. Add your changes! | ||
|
||
3. After you've finished with your changes, please run linter, tests and check that coverage didn't go down too much: | ||
```bash | ||
black tiler tests | ||
coverage run -m pytest | ||
coverage report | ||
``` | ||
|
||
4. If you have made any API and/or documentation changes, please regenerate docs by running the script: | ||
```bash | ||
cd misc | ||
./docs.sh | ||
``` | ||
|
||
5. Once you want to share what you've changed, please commit, push make a pull request to the main repo. | ||
|
||
6. Github will run lint and tests, but please don't rely on that and test before pull request :) |
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,29 +1,34 @@ | ||
name: Upload Python Package | ||
name: Publish package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
|
||
pypi-publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
|
||
- name: Install build package | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install setuptools wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
python -m pip install build --user | ||
- name: Build distribution | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* | ||
python -m build --sdist --wheel --outdir dist/ . | ||
- name: Publish to PyPI | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@master | ||
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
This file was deleted.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools >= 40.6.0", | ||
"setuptools_scm[toml] >= 4, <6", | ||
"setuptools_scm_git_archive", | ||
"wheel" | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "tiler/version.py" | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
relative_files = true | ||
source = ['tiler'] | ||
omit = ['tiler/version.py'] | ||
|
||
[tool.coverage.report] | ||
show_missing = true | ||
fail_under = 95 | ||
|
||
[tool.black] | ||
line-length = 88 | ||
target-version = ['py38'] |
This file was deleted.
Oops, something went wrong.
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,41 @@ | ||
[metadata] | ||
name = tiler | ||
version = attr: tiler.__version__ | ||
description = N-dimensional NumPy array tiling and merging with easy overlapping, padding and tapering support | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/the-lay/tiler | ||
author = the-lay | ||
author_email = ilja.gubin@gmail.com | ||
license = MIT | ||
license_file = LICENSE.md | ||
classifiers = | ||
Development Status :: 4 - Beta | ||
Intended Audience :: Developers | ||
Intended Audience :: Science/Research | ||
Topic :: Software Development :: Libraries :: Python Modules | ||
License :: OSI Approved :: MIT License | ||
Programming Language :: Python :: 3 :: Only | ||
project_urls = | ||
Documentation = https://the-lay.github.io/tiler/ | ||
Source = https://github.com/the-lay/tiler | ||
Issues = https://github.com/the-lay/tiler/issues | ||
|
||
[options] | ||
packages = find: | ||
platforms = any | ||
python_requires = >= 3.6 | ||
install_requires = | ||
numpy | ||
tqdm | ||
|
||
[options.extras_require] | ||
test = | ||
pytest | ||
coverage[toml] | ||
black | ||
docs = | ||
pdoc==8.0.1 | ||
all = | ||
%(docs)s | ||
%(test)s |
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,36 +1,6 @@ | ||
#!/usr/bin/env python | ||
import setuptools | ||
|
||
from setuptools import setup, find_packages | ||
|
||
# version fetch | ||
from tiler import __version__ | ||
|
||
# readme fetch | ||
with open('README.md', 'r') as f: | ||
long_description = f.read() | ||
|
||
setup(name='tiler', | ||
version=__version__, | ||
description='N-dimensional NumPy array tiling and merging with easy overlapping, padding and tapering support', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
license='MIT', | ||
author='the-lay', | ||
author_email='ilja.gubin@gmail.com', | ||
url='https://github.com/the-lay/tiler', | ||
platforms=['any'], | ||
install_requires=[ | ||
'numpy', | ||
'tqdm' | ||
], | ||
packages=find_packages(), | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: Science/Research', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python :: 3 :: Only', | ||
] | ||
) | ||
|
||
if __name__ == "__main__": | ||
setuptools.setup() |
Oops, something went wrong.