Skip to content

Commit

Permalink
small updates from learned lessons
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Oct 5, 2023
1 parent 80c2e6c commit 8f8a8fb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ compile_commands.json
.cache
/bin
/lib
/dist
/build
pyvenv.cfg
MANIFEST
dist
build
*.egg-info
*getargv.cpython-*-darwin.so
getargv.html
/pyrightconfig.json
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ include src/getargv/_getargvmodule.c
include src/getargv/__init__.pyi
include src/getargv/__init__.py
include src/getargv/py.typed
include src/getargv/_getargv.pyi
include README.md
include LICENSE.txt
include setup.py
Expand Down
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
version := $(shell python -c 'import tomli; print(tomli.load(open("pyproject.toml", mode="rb"))["project"]["version"])')
version := $(shell awk '/version = /{print $3}' pyproject.toml | tr -d '"')

.PHONY: activate db version upload-production upload-test build build-sdist sign check test clean console load devel docs
.PHONY: activate deps db version upload-production upload-test build build-sdist sign check test clean console load devel docs

activate:
@echo run this: source bin/activate

deactivate:
@echo run this: deactivate

deps:
pip install build

db: compile_commands.json

compile_commands.json:
Expand Down Expand Up @@ -41,7 +47,7 @@ test: devel
python tests/testgetargv.py

clean:
rm -rf build dist getargv.egg-info src/getargv.egg-info MANIFEST src/_getargv.cpython-*-darwin.so
rm -rf build dist getargv.egg-info src/getargv.egg-info MANIFEST src/_getargv.cpython-*-darwin.so .cache .mypy_cache getargv.html

console load: devel
python -ic 'import getargv'
Expand Down
2 changes: 2 additions & 0 deletions src/getargv/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,5 @@ from _getargv import *

def as_string(pid: int, encoding: Encodings, skip: int = 0, nuls: bool = False) -> str: ...
def as_string_list(pid: int, encoding: Encodings) -> list[str]: ...
def as_bytes(pid: int, skip: int = 0, nuls: bool = False) -> bytes: ...
def as_list(pid: int) -> list[bytes]: ...

0 comments on commit 8f8a8fb

Please sign in to comment.