Skip to content

Commit 69cd144

Browse files
authored
camply 0.1.0 (#5)
* YellowstoneLodging class update * Initial Progress on Integration * more progress * API Spoofing * docs * logo * svg * no topline * YAML progress * Images * small tweaks * yellowstone progress * svg * Yellowstone Parity * Code Cleanup * Backoff * PyPi * Testing + Cleanup * Set Campgrounds @ Init * latest progress, moving to new machine * Camply: Updated CLI * CLI String Variables * README updates - examples * README Update: ToC * workflow * move file * workflows * --exit-zero * install camply * str union * Simplified Dependencies * install dependencies first * SECURITY.md * screenshot + docs * typo * CLI Tweaks * numpy 1.5.0 * undo numpy * 2.7 testing * shrug * back to 3.6 * 3.4? * 3.5 * 3.6 * badge * camply badges * Updated TOC * search-forever * pylint update * pylint update 2 * more pylint updates * commandline unit tests * smaller search * Uppdated Documentation * toc * README Update * Dockerfile * Dockerfile * remove yaml * makelist * PYPI Documentation * more docs * doczz * API_KEY namespace * remove scrape * documentations * dependency info * --rec-area * f-string cleanup * code quality cleanup * complexity 1/3 * complexity reduction * bug report * README update * README update * --notifiy-first-try * FUNDING.yaml * .yml * .yml rename * .yml rename 2 * testing shield * docker image CI * on push to camply * example map * on all push * CodeQL * CodeQL on main * PyPI * windows testing * test on windows cmd * grammar * polish * polish 2 * notify_first_try * first notify 5 * choose campsites to log at random * 5 notify first * return the first 5 * remove requirements.txt
1 parent f27543a commit 69cd144

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+4360
-604
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: juftin
2+
custom: [ "https://paypal.me/juftin", "https://venmo.com/juftin" ]
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Bug Report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Environment (please complete the following information):**
27+
- OS: [e.g. Windows, Mac, Linux, Docker]
28+
- Python Version [e.g. 3.6, 3.9]
29+
- Camply Version [e.g. 0.1.0]
30+
31+
**Additional context**
32+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
schedule:
7+
- cron: '28 17 * * 6'
8+
9+
jobs:
10+
analyze:
11+
name: Analyze
12+
runs-on: ubuntu-latest
13+
permissions:
14+
actions: read
15+
contents: read
16+
security-events: write
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
language: [ 'python' ]
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v2
26+
27+
- name: Initialize CodeQL
28+
uses: github/codeql-action/init@v1
29+
with:
30+
languages: ${{ matrix.language }}
31+
32+
- name: Perform CodeQL Analysis
33+
uses: github/codeql-action/analyze@v1
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ "**" ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Build the Docker image
18+
run: docker build . --file Dockerfile --tag juftin/camply:$(date +%s)

.github/workflows/pylint.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: PyLint
2+
3+
on:
4+
push:
5+
branches: [ "**" ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python 3.8
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: 3.8
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install pylint
22+
pip install . --use-feature=in-tree-build
23+
- name: Analysing the code with pylint
24+
run: |
25+
python -m pylint ./camply `ls -R|grep .py$|xargs` --exit-zero

.github/workflows/pytest.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ "**" ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
ubuntu:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: [ 3.6, 3.7, 3.8, 3.9 ]
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Python Environment ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
python -m pip install flake8 pytest pylint
26+
pip install .
27+
- name: "Lint (flake8)"
28+
run: |
29+
# stop the build if there are Python syntax errors or undefined names
30+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
31+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
32+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
33+
- name: "Unit Tests (pytest)"
34+
run: |
35+
pytest tests/
36+
- name: "Unit Tests (commandline)"
37+
run: |
38+
camply recreation-areas --search "Yosemite National Park"
39+
camply campgrounds --rec-area 2991
40+
camply campgrounds --search "Fire Tower Lookout" --state CA
41+
camply campsites --rec-area 2991 --start-date 2021-09-15 --end-date 2021-09-16
42+
camply campsites --campground 252037 --start-date 2021-09-15 --end-date 2021-09-16
43+
44+
windows:
45+
runs-on: windows-latest
46+
strategy:
47+
fail-fast: false
48+
matrix:
49+
python-version: [ 3.6, 3.7, 3.8, 3.9 ]
50+
steps:
51+
- uses: actions/checkout@v2
52+
- name: Set up Python Environment ${{ matrix.python-version }}
53+
uses: actions/setup-python@v2
54+
with:
55+
python-version: ${{ matrix.python-version }}
56+
- name: Install dependencies
57+
run: |
58+
python -m pip install --upgrade pip
59+
python -m pip install flake8 pytest pylint
60+
pip install .
61+
shell: cmd
62+
- name: "Lint (flake8)"
63+
run: |
64+
# stop the build if there are Python syntax errors or undefined names
65+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
66+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
67+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
68+
shell: cmd
69+
- name: "Unit Tests (pytest)"
70+
run: |
71+
pytest tests/
72+
shell: cmd
73+
- name: "Unit Tests (commandline)"
74+
run: |
75+
camply recreation-areas --search "Yosemite National Park"
76+
camply campgrounds --rec-area 2991
77+
camply campgrounds --search "Fire Tower Lookout" --state CA
78+
camply campsites --rec-area 2991 --start-date 2021-09-15 --end-date 2021-09-16
79+
camply campsites --campground 252037 --start-date 2021-09-15 --end-date 2021-09-16
80+
shell: cmd

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,10 @@ __pycache__/
77
.idea/
88

99
# .env File
10-
!examle.*.env
1110
*.env
11+
12+
# BUILD FILES
13+
dist/
14+
build/
15+
poetry.lock
16+
*.egg-info

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Changelog
2+
3+
All notable changes to `camply` will be documented in this file, this project adheres to semantic
4+
versioning.
5+
6+
## [Unreleased]
7+
8+
### Added
9+
10+
- Camply is brand new, awaiting feedback before making changes.
11+
12+
### Fixed
13+
14+
- Any bugs that surface will quickly have fixes quickly deployed before version
15+
`1.0.0` is released.
16+
17+
## [0.1.0] - 2021-05-18
18+
19+
### Added
20+
21+
- Command Line Interface
22+
- PyPI Package
23+
- Docker Hub Image
24+
- Integrations with https://recreation.gov and https://yellowstonenationalparklodges.com
25+
26+
[unreleased]: https://github.com/juftin/camply/compare/main...integration
27+
28+
[0.1.0]: https://github.com/juftin/camply/releases/tag/v0.1.0

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM python:3.8-slim
2+
3+
MAINTAINER Justin Flannery <juftin@juftin.com>
4+
LABEL version="0.1.0"
5+
LABEL description="camply, the campsite finder"
6+
7+
COPY . /tmp/camply
8+
RUN cd /tmp/camply/ && python /tmp/camply/setup.py install && rm -rf /tmp/camply/
9+
10+
ENV HOME=/home/camply
11+
RUN mkdir ${HOME}
12+
WORKDIR ${HOME}
13+
14+
CMD camply

0 commit comments

Comments
 (0)