Skip to content

Commit 626cd51

Browse files
authored
Merge pull request #5 from ocefpaf/mymodule-is-not-uploadable
2 parents a379409 + 36132c2 commit 626cd51

17 files changed

+71
-67
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
build/
88
dist/
99
docs/source/tutorial.ipynb
10-
mymodule/_version.py
10+
ioos_pkg_skeleton/_version.py

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ matrix:
1212
include:
1313
- name: "python-3.6"
1414
env: PY=3.6
15-
- name: "python-3.7"
16-
env: PY=3.7
15+
- name: "python-3.8"
16+
env: PY=3.8
1717
- name: "coding_standards"
18-
env: PY=3.7
18+
env: PY=3
1919
- name: "tarball"
20-
env: PY=3.7
20+
env: PY=3
2121
- name: "docs"
22-
env: PY=3.7
22+
env: PY=3
2323

2424
before_install:
2525
# Install miniconda and create TEST env.
@@ -42,7 +42,7 @@ install:
4242
script:
4343
- if [[ $TRAVIS_JOB_NAME == python-* ]]; then
4444
cp -r tests/ /tmp ;
45-
pushd /tmp && pytest -n 2 -rxs --cov=mymodule tests && popd ;
45+
pushd /tmp && pytest -n 2 -rxs --cov=ioos_pkg_skeleton tests && popd ;
4646
fi
4747

4848
- if [[ $TRAVIS_JOB_NAME == 'tarball' ]]; then

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
include *.txt
22
include README.md
33

4-
recursive-include mymodule *.py
4+
recursive-include ioos_pkg_skeleton *.py

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## MYMODULE
1+
## ioos_pkg_skeleton
22

33
[![Build Status](https://travis-ci.com/ioos/ioos-python-package-skeleton.svg?branch=master)](https://travis-ci.com/ioos/ioos-python-package-skeleton)
44

@@ -13,32 +13,32 @@ URLs for the docs and code.
1313
For `conda` users you can
1414

1515
```shell
16-
conda install --channel conda-forge mymodule
16+
conda install --channel conda-forge ioos_pkg_skeleton
1717
```
1818

1919
or, if you are a `pip` users
2020

2121
```shell
22-
pip install mymodule
22+
pip install ioos_pkg_skeleton
2323
```
2424

2525
### Example
2626

2727
```python
28-
from mymodule import mymodule
28+
from ioos_pkg_skeleton import ioos_pkg_skeleton
2929

3030

31-
mymodule()
31+
ioos_pkg_skeleton.meaning_of_life_url()
3232
```
3333

3434

3535
## Get in touch
3636

37-
Report bugs, suggest features or view the source code on [GitHub](https://github.com/ioos/mymodule/issues).
37+
Report bugs, suggest features or view the source code on [GitHub](https://github.com/ioos/ioos_pkg_skeleton/issues).
3838

3939

4040
## License and copyright
4141

42-
mymodule is licensed under BSD 3-Clause "New" or "Revised" License (BSD-3-Clause).
42+
ioos_pkg_skeleton is licensed under BSD 3-Clause "New" or "Revised" License (BSD-3-Clause).
4343

44-
Development occurs on GitHub at <https://github.com/ioos/mymodule>.
44+
Development occurs on GitHub at <https://github.com/ioos/ioos_pkg_skeleton>.

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# You can set these variables from the command line.
55
SPHINXOPTS =
66
SPHINXBUILD = python -msphinx
7-
SPHINXPROJ = mymodule
7+
SPHINXPROJ = ioos_pkg_skeleton
88
SOURCEDIR = source
99
BUILDDIR = build
1010

docs/source/conf.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33
#
4-
# MYMODULE documentation build configuration file, created by
4+
# ioos_pkg_skeleton documentation build configuration file, created by
55
# sphinx-quickstart on Mon Oct 9 21:28:42 2017.
66
#
77
# This file is execfile()d with the current directory set to its
@@ -52,15 +52,15 @@
5252
master_doc = "index"
5353

5454
# General information about the project.
55-
project = "MYMODULE"
55+
project = "ioos_pkg_skeleton"
5656
copyright = "2017, Filipe Fernandes"
5757
author = "Filipe Fernandes"
5858

5959
# The version info for the project you're documenting, acts as replacement for
6060
# |version| and |release|, also used in various other places throughout the
6161
# built documents.
6262
#
63-
from mymodule import __version__ as VERSION # noqa
63+
from ioos_pkg_skeleton import __version__ as VERSION # noqa
6464

6565

6666
version = VERSION
@@ -99,9 +99,9 @@
9999
#
100100
html_theme_options = {
101101
"logo": "logo.png",
102-
"logo_name": "MYMODULE",
102+
"logo_name": "ioos_pkg_skeleton",
103103
"github_user": "ioos",
104-
"github_repo": "MYMODULE",
104+
"github_repo": "ioos_pkg_skeleton",
105105
"github_banner": True,
106106
"travis_button": True,
107107
"fixed_sidebar": True,
@@ -132,7 +132,7 @@
132132
# -- Options for HTMLHelp output ------------------------------------------
133133

134134
# Output file base name for HTML help builder.
135-
htmlhelp_basename = "MYMODULEdoc"
135+
htmlhelp_basename = "ioos_pkg_skeletondoc"
136136

137137

138138
# -- Options for LaTeX output ---------------------------------------------
@@ -158,8 +158,8 @@
158158
latex_documents = [
159159
(
160160
master_doc,
161-
"MYMODULE.tex",
162-
"MYMODULE Documentation",
161+
"ioos_pkg_skeleton.tex",
162+
"ioos_pkg_skeleton Documentation",
163163
"Filipe Fernandes",
164164
"manual",
165165
)
@@ -170,7 +170,9 @@
170170

171171
# One entry per manual page. List of tuples
172172
# (source start file, name, description, authors, manual section).
173-
man_pages = [(master_doc, "MYMODULE", "MYMODULE Documentation", [author], 1)]
173+
man_pages = [
174+
(master_doc, "ioos_pkg_skeleton", "ioos_pkg_skeleton Documentation", [author], 1)
175+
]
174176

175177

176178
# -- Options for Texinfo output -------------------------------------------
@@ -181,10 +183,10 @@
181183
texinfo_documents = [
182184
(
183185
master_doc,
184-
"MYMODULE",
185-
"MYMODULE Documentation",
186+
"ioos_pkg_skeleton",
187+
"ioos_pkg_skeleton Documentation",
186188
author,
187-
"MYMODULE",
189+
"ioos_pkg_skeleton",
188190
"One line description of project.",
189191
"Miscellaneous",
190192
)

docs/source/how2package4ioos.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Almost all python packages are structure as following:
2121
| | |-_static
2222
| |-build
2323
|-tests
24-
|-mymodule
24+
|-ioos_pkg_skeleton
2525
|-notebooks
2626
|-README.md
2727
|-LICENSE.txt
@@ -86,7 +86,7 @@ from setuptools import setup
8686

8787
setup(
8888
use_scm_version={
89-
"write_to": "mymodule/_version.py",
89+
"write_to": "ioos_pkg_skeleton/_version.py",
9090
"write_to_template": '__version__ = "{version}"',
9191
"tag_regex": r"^(?P<prefix>v)?(?P<version>[^\+]+)(?P<suffix>.*)?$",
9292
}
@@ -112,7 +112,7 @@ The former will have the package metadata and tools configuration while the latt
112112

113113
```cfg
114114
[metadata]
115-
name = mymodule
115+
name = ioos_pkg_skeleton
116116
description = My Awesome module
117117
author = AUTHOR NAME
118118
author_email = [email protected]
@@ -161,7 +161,7 @@ ignore =
161161
max-line-length = 105
162162
select = C,E,F,W,B,B950
163163
ignore = E203, E501, W503
164-
exclude = mymodule/_version.py
164+
exclude = ioos_pkg_skeleton/_version.py
165165
```
166166

167167
The metadata and options fields are almost the same information that used to go in the `setup.py`.
@@ -184,7 +184,7 @@ include *.txt
184184
include LICENSE # Please consider the Windows users and use .txt
185185
include README.md
186186
187-
recursive-include mymodule *.py
187+
recursive-include ioos_pkg_skeleton *.py
188188
```
189189

190190
## Do we still need a `requirements.txt` file?
@@ -285,7 +285,7 @@ install:
285285
script:
286286
- if [[ $TRAVIS_JOB_NAME == python-* ]]; then
287287
cp -r tests/ /tmp ;
288-
pushd /tmp && pytest -n 2 -rxs --cov=mymodule tests && popd ;
288+
pushd /tmp && pytest -n 2 -rxs --cov=ioos_pkg_skeleton tests && popd ;
289289
fi
290290

291291
- if [[ $TRAVIS_JOB_NAME == 'tarball' ]]; then
@@ -373,7 +373,7 @@ repos:
373373
hooks:
374374
- id: isort
375375
additional_dependencies: [toml]
376-
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]
376+
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]
377377
378378
- repo: https://github.com/asottile/seed-isort-config
379379
rev: v2.1.1
@@ -410,7 +410,7 @@ pre-commit run --all-files
410410
and ignoring it in a commit if you don't want it to run:
411411

412412
```
413-
git commit mymodule/some-dot-pwhy.py --no-verify
413+
git commit ioos_pkg_skeleton/some-dot-pwhy.py --no-verify
414414
```
415415

416416
## Github Actions
@@ -481,4 +481,6 @@ Please check out https://www.pyopensci.org/
481481
## TODO
482482
483483
- auto PyPI publication
484+
https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
485+
484486
- conda-forge publication

docs/source/index.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ Package Guidelines
66

77
how2package4ioos.md
88

9-
mymodule
10-
========
9+
ioos_pkg_skeleton
10+
=================
1111

12-
What is MYMODULE?
13-
-----------------
12+
What is ioos_pkg_skeleton?
13+
--------------------------
1414

1515
The best module ever written!
1616

@@ -20,7 +20,7 @@ The best module ever written!
2020
:caption: Contents:
2121

2222
tutorial.ipynb
23-
mymodule
23+
ioos_pkg_skeleton
2424

2525
Indices and tables
2626
==================

docs/source/ioos_pkg_skeleton.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
:mod:`ioos_pkg_skeleton API`
2+
----------------------------
3+
4+
.. automodule:: ioos_pkg_skeleton.ioos_pkg_skeleton
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

docs/source/mymodule.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)