hike 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hike-0.0.1/.gitignore +10 -0
- hike-0.0.1/.python-version +1 -0
- hike-0.0.1/Makefile +112 -0
- hike-0.0.1/PKG-INFO +13 -0
- hike-0.0.1/README.md +5 -0
- hike-0.0.1/pyproject.toml +26 -0
- hike-0.0.1/requirements-dev.lock +12 -0
- hike-0.0.1/requirements.lock +12 -0
- hike-0.0.1/src/hike/__init__.py +2 -0
hike-0.0.1/.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13.1
|
hike-0.0.1/Makefile
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
app := hike
|
|
2
|
+
src := src/
|
|
3
|
+
tests := tests/
|
|
4
|
+
run := rye run
|
|
5
|
+
test := rye test
|
|
6
|
+
python := $(run) python
|
|
7
|
+
lint := rye lint -- --select I
|
|
8
|
+
fmt := rye fmt
|
|
9
|
+
mypy := $(run) mypy
|
|
10
|
+
|
|
11
|
+
##############################################################################
|
|
12
|
+
# Local "interactive testing" of the code.
|
|
13
|
+
.PHONY: run
|
|
14
|
+
run: # Run the code in a testing context
|
|
15
|
+
$(run) $(app)
|
|
16
|
+
|
|
17
|
+
##############################################################################
|
|
18
|
+
# Setup/update packages the system requires.
|
|
19
|
+
.PHONY: setup
|
|
20
|
+
setup: # Set up the repository for development
|
|
21
|
+
rye sync
|
|
22
|
+
$(run) pre-commit install
|
|
23
|
+
|
|
24
|
+
.PHONY: update
|
|
25
|
+
update: # Update all dependencies
|
|
26
|
+
rye sync --update-all
|
|
27
|
+
|
|
28
|
+
.PHONY: resetup
|
|
29
|
+
resetup: realclean # Recreate the virtual environment from scratch
|
|
30
|
+
make setup
|
|
31
|
+
|
|
32
|
+
##############################################################################
|
|
33
|
+
# Checking/testing/linting/etc.
|
|
34
|
+
.PHONY: lint
|
|
35
|
+
lint: # Check the code for linting issues
|
|
36
|
+
$(lint) $(src) $(tests)
|
|
37
|
+
|
|
38
|
+
.PHONY: codestyle
|
|
39
|
+
codestyle: # Is the code formatted correctly?
|
|
40
|
+
$(fmt) --check $(src) $(tests)
|
|
41
|
+
|
|
42
|
+
.PHONY: typecheck
|
|
43
|
+
typecheck: # Perform static type checks with mypy
|
|
44
|
+
$(mypy) --scripts-are-modules $(src) $(tests)
|
|
45
|
+
|
|
46
|
+
.PHONY: stricttypecheck
|
|
47
|
+
stricttypecheck: # Perform a strict static type checks with mypy
|
|
48
|
+
$(mypy) --scripts-are-modules --strict $(src) $(tests)
|
|
49
|
+
|
|
50
|
+
.PHONY: test
|
|
51
|
+
test: # Run the unit tests
|
|
52
|
+
$(test) -v
|
|
53
|
+
|
|
54
|
+
.PHONY: checkall
|
|
55
|
+
checkall: codestyle lint stricttypecheck test # Check all the things
|
|
56
|
+
|
|
57
|
+
##############################################################################
|
|
58
|
+
# Package/publish.
|
|
59
|
+
.PHONY: package
|
|
60
|
+
package: # Package the library
|
|
61
|
+
rye build
|
|
62
|
+
|
|
63
|
+
.PHONY: spackage
|
|
64
|
+
spackage: # Create a source package for the library
|
|
65
|
+
rye build --sdist
|
|
66
|
+
|
|
67
|
+
.PHONY: testdist
|
|
68
|
+
testdist: package # Perform a test distribution
|
|
69
|
+
rye publish --yes --skip-existing --repository testpypi --repository-url https://test.pypi.org/legacy/
|
|
70
|
+
|
|
71
|
+
.PHONY: dist
|
|
72
|
+
dist: package # Upload to pypi
|
|
73
|
+
rye publish --yes --skip-existing
|
|
74
|
+
|
|
75
|
+
##############################################################################
|
|
76
|
+
# Utility.
|
|
77
|
+
.PHONY: repl
|
|
78
|
+
repl: # Start a Python REPL in the venv.
|
|
79
|
+
$(python)
|
|
80
|
+
|
|
81
|
+
.PHONY: delint
|
|
82
|
+
delint: # Fix linting issues.
|
|
83
|
+
$(lint) --fix $(src) $(tests)
|
|
84
|
+
|
|
85
|
+
.PHONY: pep8ify
|
|
86
|
+
pep8ify: # Reformat the code to be as PEP8 as possible.
|
|
87
|
+
$(fmt) $(src) $(tests)
|
|
88
|
+
|
|
89
|
+
.PHONY: tidy
|
|
90
|
+
tidy: delint pep8ify # Tidy up the code, fixing lint and format issues.
|
|
91
|
+
|
|
92
|
+
.PHONY: clean
|
|
93
|
+
clean: # Clean the build directories
|
|
94
|
+
rm -rf dist
|
|
95
|
+
|
|
96
|
+
.PHONY: realclean
|
|
97
|
+
realclean: clean # Clean the venv and build directories
|
|
98
|
+
rm -rf .venv
|
|
99
|
+
|
|
100
|
+
.PHONY: help
|
|
101
|
+
help: # Display this help
|
|
102
|
+
@grep -Eh "^[a-z]+:.+# " $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.+# "}; {printf "%-20s %s\n", $$1, $$2}'
|
|
103
|
+
|
|
104
|
+
##############################################################################
|
|
105
|
+
# Housekeeping tasks.
|
|
106
|
+
.PHONY: housekeeping
|
|
107
|
+
housekeeping: # Perform some git housekeeping
|
|
108
|
+
git fsck
|
|
109
|
+
git gc --aggressive
|
|
110
|
+
git remote update --prune
|
|
111
|
+
|
|
112
|
+
### Makefile ends here
|
hike-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: hike
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Coming eventually
|
|
5
|
+
Author-email: Dave Pearson <davep@davep.org>
|
|
6
|
+
Requires-Python: >=3.9
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
|
|
9
|
+
# hike
|
|
10
|
+
|
|
11
|
+
Coming at some point in the future.
|
|
12
|
+
|
|
13
|
+
[//]: # (README.md ends here)
|
hike-0.0.1/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "hike"
|
|
3
|
+
version = "0.0.1"
|
|
4
|
+
description = "Coming eventually"
|
|
5
|
+
authors = [
|
|
6
|
+
{ name = "Dave Pearson", email = "davep@davep.org" }
|
|
7
|
+
]
|
|
8
|
+
dependencies = []
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">= 3.9"
|
|
11
|
+
|
|
12
|
+
[build-system]
|
|
13
|
+
# https://github.com/astral-sh/rye/issues/1446
|
|
14
|
+
requires = ["hatchling==1.26.3", "hatch-vcs"]
|
|
15
|
+
# requires = ["hatchling"]
|
|
16
|
+
build-backend = "hatchling.build"
|
|
17
|
+
|
|
18
|
+
[tool.rye]
|
|
19
|
+
managed = true
|
|
20
|
+
dev-dependencies = []
|
|
21
|
+
|
|
22
|
+
[tool.hatch.metadata]
|
|
23
|
+
allow-direct-references = true
|
|
24
|
+
|
|
25
|
+
[tool.hatch.build.targets.wheel]
|
|
26
|
+
packages = ["src/hike"]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# generated by rye
|
|
2
|
+
# use `rye lock` or `rye sync` to update this lockfile
|
|
3
|
+
#
|
|
4
|
+
# last locked with the following flags:
|
|
5
|
+
# pre: false
|
|
6
|
+
# features: []
|
|
7
|
+
# all-features: false
|
|
8
|
+
# with-sources: false
|
|
9
|
+
# generate-hashes: false
|
|
10
|
+
# universal: false
|
|
11
|
+
|
|
12
|
+
-e file:.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# generated by rye
|
|
2
|
+
# use `rye lock` or `rye sync` to update this lockfile
|
|
3
|
+
#
|
|
4
|
+
# last locked with the following flags:
|
|
5
|
+
# pre: false
|
|
6
|
+
# features: []
|
|
7
|
+
# all-features: false
|
|
8
|
+
# with-sources: false
|
|
9
|
+
# generate-hashes: false
|
|
10
|
+
# universal: false
|
|
11
|
+
|
|
12
|
+
-e file:.
|