-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from ocefpaf/mymodule-is-not-uploadable
- Loading branch information
Showing
17 changed files
with
71 additions
and
67 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 |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
build/ | ||
dist/ | ||
docs/source/tutorial.ipynb | ||
mymodule/_version.py | ||
ioos_pkg_skeleton/_version.py |
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,4 +1,4 @@ | ||
include *.txt | ||
include README.md | ||
|
||
recursive-include mymodule *.py | ||
recursive-include ioos_pkg_skeleton *.py |
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
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ Almost all python packages are structure as following: | |
| | |-_static | ||
| |-build | ||
|-tests | ||
|-mymodule | ||
|-ioos_pkg_skeleton | ||
|-notebooks | ||
|-README.md | ||
|-LICENSE.txt | ||
|
@@ -86,7 +86,7 @@ from setuptools import setup | |
|
||
setup( | ||
use_scm_version={ | ||
"write_to": "mymodule/_version.py", | ||
"write_to": "ioos_pkg_skeleton/_version.py", | ||
"write_to_template": '__version__ = "{version}"', | ||
"tag_regex": r"^(?P<prefix>v)?(?P<version>[^\+]+)(?P<suffix>.*)?$", | ||
} | ||
|
@@ -112,7 +112,7 @@ The former will have the package metadata and tools configuration while the latt | |
|
||
```cfg | ||
[metadata] | ||
name = mymodule | ||
name = ioos_pkg_skeleton | ||
description = My Awesome module | ||
author = AUTHOR NAME | ||
author_email = [email protected] | ||
|
@@ -161,7 +161,7 @@ ignore = | |
max-line-length = 105 | ||
select = C,E,F,W,B,B950 | ||
ignore = E203, E501, W503 | ||
exclude = mymodule/_version.py | ||
exclude = ioos_pkg_skeleton/_version.py | ||
``` | ||
|
||
The metadata and options fields are almost the same information that used to go in the `setup.py`. | ||
|
@@ -184,7 +184,7 @@ include *.txt | |
include LICENSE # Please consider the Windows users and use .txt | ||
include README.md | ||
recursive-include mymodule *.py | ||
recursive-include ioos_pkg_skeleton *.py | ||
``` | ||
|
||
## Do we still need a `requirements.txt` file? | ||
|
@@ -285,7 +285,7 @@ install: | |
script: | ||
- if [[ $TRAVIS_JOB_NAME == python-* ]]; then | ||
cp -r tests/ /tmp ; | ||
pushd /tmp && pytest -n 2 -rxs --cov=mymodule tests && popd ; | ||
pushd /tmp && pytest -n 2 -rxs --cov=ioos_pkg_skeleton tests && popd ; | ||
fi | ||
|
||
- if [[ $TRAVIS_JOB_NAME == 'tarball' ]]; then | ||
|
@@ -373,7 +373,7 @@ repos: | |
hooks: | ||
- id: isort | ||
additional_dependencies: [toml] | ||
args: [--project=mymodule, --multi-line=3, --lines-after-imports=2, --lines-between-types=1, --trailing-comma, --force-grid-wrap=0, --use-parentheses, --line-width=88] | ||
args: [--project=ioos_pkg_skeleton, --multi-line=3, --lines-after-imports=2, --lines-between-types=1, --trailing-comma, --force-grid-wrap=0, --use-parentheses, --line-width=88] | ||
- repo: https://github.com/asottile/seed-isort-config | ||
rev: v2.1.1 | ||
|
@@ -410,7 +410,7 @@ pre-commit run --all-files | |
and ignoring it in a commit if you don't want it to run: | ||
|
||
``` | ||
git commit mymodule/some-dot-pwhy.py --no-verify | ||
git commit ioos_pkg_skeleton/some-dot-pwhy.py --no-verify | ||
``` | ||
|
||
## Github Actions | ||
|
@@ -481,4 +481,6 @@ Please check out https://www.pyopensci.org/ | |
## TODO | ||
- auto PyPI publication | ||
https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ | ||
- conda-forge publication |
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,7 @@ | ||
:mod:`ioos_pkg_skeleton API` | ||
---------------------------- | ||
|
||
.. automodule:: ioos_pkg_skeleton.ioos_pkg_skeleton | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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
4 changes: 2 additions & 2 deletions
4
mymodule/mymodule.py → ioos_pkg_skeleton/ioos_pkg_skeleton.py
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,7 +1,7 @@ | ||
""" | ||
mymodule | ||
ioos_pkg_skeleton | ||
My awesome mymodule | ||
My awesome ioos_pkg_skeleton | ||
""" | ||
|
||
import numpy as np | ||
|
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 |
---|---|---|
|
@@ -66,7 +66,7 @@ | |
"| | |-_static\n", | ||
"| |-build\n", | ||
"|-tests\n", | ||
"|-mymodule\n", | ||
"|-ioos_pkg_skeleton\n", | ||
"```\n", | ||
"\n", | ||
"Why are the tests outside of the module?" | ||
|
@@ -83,7 +83,7 @@ | |
"\n", | ||
"setup(\n", | ||
" use_scm_version={\n", | ||
" \"write_to\": \"mymodule/_version.py\",\n", | ||
" \"write_to\": \"ioos_pkg_skeleton/_version.py\",\n", | ||
" \"write_to_template\": '__version__ = \"{version}\"',\n", | ||
" \"tag_regex\": r\"^(?P<prefix>v)?(?P<version>[^\\+]+)(?P<suffix>.*)?$\",\n", | ||
" }\n", | ||
|
@@ -100,7 +100,7 @@ | |
"\n", | ||
"```cfg\n", | ||
"[metadata]\n", | ||
"name = mymodule\n", | ||
"name = ioos_pkg_skeleton\n", | ||
"description = My Awesome module\n", | ||
"author = AUTHOR NAME\n", | ||
"author_email = [email protected]\n", | ||
|
@@ -149,7 +149,7 @@ | |
"max-line-length = 105\n", | ||
"select = C,E,F,W,B,B950\n", | ||
"ignore = E203, E501, W503\n", | ||
"exclude = mymodule/_version.py\n", | ||
"exclude = ioos_pkg_skeleton/_version.py\n", | ||
"```" | ||
] | ||
}, | ||
|
@@ -211,7 +211,7 @@ | |
"include LICENSE # Please consider the Windows users and use .txt\n", | ||
"include README.md\n", | ||
"\n", | ||
"recursive-include mymodule *.py\n", | ||
"recursive-include ioos_pkg_skeleton *.py\n", | ||
"```" | ||
] | ||
}, | ||
|
@@ -332,7 +332,7 @@ | |
"script:\n", | ||
" - if [[ $TRAVIS_JOB_NAME == python-* ]]; then\n", | ||
" cp -r tests/ /tmp ;\n", | ||
" pushd /tmp && pytest -n 2 -rxs --cov=mymodule tests && popd ;\n", | ||
" pushd /tmp && pytest -n 2 -rxs --cov=ioos_pkg_skeleton tests && popd ;\n", | ||
" fi\n", | ||
"\n", | ||
"```" | ||
|
@@ -457,7 +457,7 @@ | |
" hooks:\n", | ||
" - id: isort\n", | ||
" additional_dependencies: [toml]\n", | ||
" args: [--project=mymodule, --multi-line=3, --lines-after-imports=2, --lines-between-types=1, --trailing-comma, --force-grid-wrap=0, --use-parentheses, --line-width=88]\n", | ||
" args: [--project=ioos_pkg_skeleton, --multi-line=3, --lines-after-imports=2, --lines-between-types=1, --trailing-comma, --force-grid-wrap=0, --use-parentheses, --line-width=88]\n", | ||
"\n", | ||
"- repo: https://github.com/asottile/seed-isort-config\n", | ||
" rev: v2.1.1\n", | ||
|
Oops, something went wrong.