Skip to content

Commit 79c83f7

Browse files
committed
Initial commit
0 parents  commit 79c83f7

8 files changed

Lines changed: 99 additions & 0 deletions

File tree

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Distribution / packaging
2+
.Python
3+
env/
4+
build/
5+
develop-eggs/
6+
dist/
7+
downloads/
8+
eggs/
9+
.eggs/
10+
lib/
11+
lib64/
12+
parts/
13+
sdist/
14+
var/
15+
*.egg-info/
16+
.installed.cfg
17+
*.egg
18+
/tests/*
19+
logs/
20+
__pycache__/

LICENSE

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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# geocachingapi-python
2+
Python library to control the Geocaching API

geocachingapi/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"""Python client for Ziggo Next."""
2+
from .geocachingapi import GeocachingApi

geocachingapi/__version__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"""Python client for accessing the Geocaching API"""
2+
__version__ = "0.0.1"

geocachingapi/const.py

Whitespace-only changes.

geocachingapi/geocachingapi.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""Class for managing one Geocaching API integration."""
2+
class GeocachingApi:
3+
def __init__(self) -> None:
4+
pass

setup.py

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import setuptools
2+
import os
3+
import re
4+
import sys
5+
6+
with open("README.md", "r") as fh:
7+
long_description = fh.read()
8+
9+
def get_version():
10+
"""Get current version from code."""
11+
regex = r"__version__\s=\s\"(?P<version>[\d\.]+?)\""
12+
path = ("geocachingapi", "__version__.py")
13+
return re.search(regex, read(*path)).group("version")
14+
15+
def read(*parts):
16+
"""Read file."""
17+
filename = os.path.join(os.path.abspath(os.path.dirname(__file__)), *parts)
18+
sys.stdout.write(filename)
19+
with open(filename, encoding="utf-8", mode="rt") as fp:
20+
return fp.read()
21+
22+
setuptools.setup(
23+
name="geocachingapi",
24+
version=get_version(),
25+
author="Rudolf Offereins",
26+
author_email="r.offereins@gmail.com",
27+
description="Python client for controlling the Geocaching API",
28+
long_description=long_description,
29+
long_description_content_type="text/markdown",
30+
url="https://github.com/Sholofly/geocachingapi-python",
31+
packages=setuptools.find_packages(include=["geocachingapi"]),
32+
license="MIT license",
33+
install_requires=[],
34+
keywords=["geocaching", "api"],
35+
classifiers=[
36+
"Development Status :: 3 - Alpha",
37+
"Programming Language :: Python :: 3",
38+
"License :: OSI Approved :: MIT License",
39+
"Operating System :: OS Independent",
40+
"Natural Language :: English",
41+
"Intended Audience :: Developers",
42+
"Programming Language :: Python :: 3.6",
43+
"Programming Language :: Python :: 3.7",
44+
"Programming Language :: Python :: 3",
45+
"Topic :: Software Development :: Libraries :: Python Modules",
46+
],
47+
python_requires='>=3.6',
48+
zip_safe=False,
49+
include_package_data=True,
50+
)

0 commit comments

Comments
 (0)