Skip to content

Commit 05288a2

Browse files
committed
Initial commit
0 parents  commit 05288a2

10 files changed

+544
-0
lines changed

.gitignore

+139
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
43+
.coverage
44+
.coverage.*
45+
.cache
46+
nosetests.xml
47+
coverage.xml
48+
*.cover
49+
*.py,cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
.pybuilder/
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
97+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
98+
__pypackages__/
99+
100+
# Celery stuff
101+
celerybeat-schedule
102+
celerybeat.pid
103+
104+
# SageMath parsed files
105+
*.sage.py
106+
107+
# Environments
108+
.env
109+
.venv
110+
env/
111+
venv/
112+
ENV/
113+
env.bak/
114+
venv.bak/
115+
116+
# Spyder project settings
117+
.spyderproject
118+
.spyproject
119+
120+
# Rope project settings
121+
.ropeproject
122+
123+
# mkdocs documentation
124+
/site
125+
126+
# mypy
127+
.mypy_cache/
128+
.dmypy.json
129+
dmypy.json
130+
131+
# Pyre type checker
132+
.pyre/
133+
134+
# pytype static type analyzer
135+
.pytype/
136+
137+
# Cython debug symbols
138+
cython_debug/
139+

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Gerald Sornsen
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Makefile

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
PROJ_BASE=$(shell pwd)
2+
PYTHONVER=python3.8
3+
PYTHONVENV=$(PROJ_BASE)/venv
4+
VENVPYTHON=$(PYTHONVENV)/bin/$(PYTHONVER)
5+
PYTEST=$(PYTHONVENV)/bin/pytest
6+
7+
.PHONY: install
8+
install: bootstrap
9+
@echo "Installing pyopenweather"
10+
$(VENVPYTHON) setup.py install
11+
@echo "\nYou may want to activate the virtual environmnent with 'source venv/bin/activate'\n"
12+
13+
.PHONY: develop
14+
develop: bootstrap
15+
@echo "Installing pyopenweather, with editible modules ('python setup.py develop')"
16+
$(VENVPYTHON) setup.py develop
17+
@echo "\nYou may want to activate the virtual environmnent with 'source venv/bin/activate'\n"
18+
19+
20+
.PHONY: bootstrap
21+
bootstrap:
22+
@echo "Creating virtual environment 'venv' for development."
23+
python3 -m virtualenv -p $(PYTHONVER) venv
24+
@echo "Installing python modules from requirements.txt"
25+
$(VENVPYTHON) -m pip install -r requirements.txt
26+
27+
28+
.PHONY: clean_build
29+
clean_build:
30+
@echo "Removing build artifacts"
31+
rm -rf $(PROJ_BASE)/build
32+
rm -rf $(PROJ_BASE)/dist
33+
rm -rf $(PROJ_BASE)/*.egg-info
34+
35+
.PHONY: build
36+
build: clean_build
37+
@echo "Building python source distribution and wheel"
38+
$(VENVPYTHON) setup.py sdist bdist_wheel
39+
40+
.PHONY: test
41+
test:
42+
$(VENVPYTHON) -m tox
43+
44+
.PHONY: docs
45+
docs:
46+
$(VENVPYTHON) -m pip install -r $(PROJ_BASE)/docs/requirements-docs.txt
47+
cd docs && make html
48+
49+
50+
.PHONY: upload
51+
upload:
52+
$(PYTHONVENV)/bin/twine upload -r pypi dist/*
53+
54+
.PHONY: clean
55+
clean:
56+
@echo "Removing Python virtual environment 'venv'."
57+
rm -rf $(PYTHONVENV)
58+
59+
.PHONY: sparkling
60+
sparkling: clean
61+
rm -rf *.whl
62+
find . -name \*~ | xargs rm -f
63+
rm -rf dist build src/*.egg-info
64+
rm -rf **/__pycache__
65+
rm -rf docs/_build/*
66+
rm -f src/version.py
67+
rm -rf htmlcov

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# pyopenweather

pyopenweather/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '0.0.0'

0 commit comments

Comments
 (0)